Show / Hide Table of Contents

Interface IProductClient

The interface describing a client for access to products.

Namespace: StockSharp.Community
Assembly: StockSharp.Studio.Community.dll
Syntax
public interface IProductClient

Methods

AddPermission(Int64, Int64, Boolean)

Add permission for the specified user.

Declaration
void AddPermission(long productId, long userId, bool isManager)
Parameters
Type Name Description
Int64 productId

Идентификатор продукта.

Int64 userId

Идентификатор пользователя.

Boolean isManager

Is manager.

AddProduct(ProductInfoMessage)

Add product.

Declaration
ProductInfoMessage AddProduct(ProductInfoMessage info)
Parameters
Type Name Description
ProductInfoMessage info

Product info message.

Returns
Type Description
ProductInfoMessage

Product.

GetCategories()

To get all available product categories.

Declaration
IEnumerable<ProductCategoryMessage> GetCategories()
Returns
Type Description
IEnumerable<ProductCategoryMessage>

All available product categories.

GetFeedbacks(Int64, Int32, Int32)

Get feedbacks for specified product.

Declaration
IEnumerable<ProductFeedbackMessage> GetFeedbacks(long productId, int offset, int count)
Parameters
Type Name Description
Int64 productId

Идентификатор продукта.

Int32 offset

Смещение.

Int32 count

Count.

Returns
Type Description
IEnumerable<ProductFeedbackMessage>

Feedbacks.

GetPermissions(Int64)

Get permissions for the specified product.

Declaration
IEnumerable<(long, bool)> GetPermissions(long productId)
Parameters
Type Name Description
Int64 productId

Идентификатор продукта.

Returns
Type Description
IEnumerable<(, )<Int64, Boolean>>

Разрешения.

GetProducts(Int32, Int32)

To get products.

Declaration
IEnumerable<ProductInfoMessage> GetProducts(int offset, int count)
Parameters
Type Name Description
Int32 offset

Смещение.

Int32 count

Count.

Returns
Type Description
IEnumerable<ProductInfoMessage>

Продукты.

HasFeedback(Int64)

Есть ли отзыв для продукта.

Declaration
bool HasFeedback(long productId)
Parameters
Type Name Description
Int64 productId

Идентификатор продукта.

Returns
Type Description
Boolean

Результат проверки.

ProductsUpdated((Int64, String, String, String)[])

Publish release notes.

Declaration
void ProductsUpdated((long, string, string, string)[] updates)
Parameters
Type Name Description
(, , , )<Int64, String, String, String>[] updates

Release notes.

RemovePermission(Int64, Int64)

Remove permission for the specified user.

Declaration
void RemovePermission(long productId, long userId)
Parameters
Type Name Description
Int64 productId

Идентификатор продукта.

Int64 userId

Идентификатор пользователя.

RequestRefund(Int64)

Request refund.

Declaration
void RequestRefund(long productId)
Parameters
Type Name Description
Int64 productId

Идентификатор продукта.

RequestTrial(Int64)

Request trial.

Declaration
void RequestTrial(long productId)
Parameters
Type Name Description
Int64 productId

Идентификатор продукта.

SendBugReport(Int64, String, String, Int64[])

Send bug report for specified product.

Declaration
(long, long) SendBugReport(long productId, string title, string body, long[] attachments)
Parameters
Type Name Description
Int64 productId

Идентификатор продукта.

String title

Title.

String body

Comment.

Int64[] attachments

Вложения.

Returns
Type Description
(, )<Int64, Int64>

Report and message identifiers.

SendFeedback(Int64, Int32, String)

Отправить отзыв для продукта.

Declaration
(long, Nullable<long>) SendFeedback(long productId, int rating, string comment)
Parameters
Type Name Description
Int64 productId

Идентификатор продукта.

Int32 rating

Рейтинг.

String comment

Comment.

Returns
Type Description
(, )<Int64, Nullable<Int64>>

Feedback and message identifiers.

StubsPublished((String, String, String)[])

Update stub versions.

Declaration
void StubsPublished((string, string, string)[] info)
Parameters
Type Name Description
(, , )<String, String, String>[] info

Stub versions.

UpdateProduct(ProductInfoMessage)

Add product.

Declaration
void UpdateProduct(ProductInfoMessage info)
Parameters
Type Name Description
ProductInfoMessage info

Product info message.

Extension Methods

Paths.Serialize<T>(T, String)
Paths.Serialize<T>(T)
EditorExtensions.ToItemsSource(Object, Type, Nullable<Boolean>, Nullable<ListSortDirection>, Func<IItemsSourceItem, Boolean>, Func<Object, String>, Func<Object, String>)
XamlHelper.WpfCast<T>(Object)
XamlHelper.CopyToClipboard<T>(T)
XamlHelper.EnsureUIThread(Object)
☀
☾
In This Article
Back to top
Copyright © StockSharp.
☀
☾