C# Class Netsy.Services.FeedbackService

Implementation of the Feedback service
Inheritance: IFeedbackService
Mostrar archivo Open project: AnthonySteele/Netsy Class Usage Examples

Public Methods

Method Description
FeedbackService ( EtsyContext etsyContext ) : System

Initializes a new instance of the FeedbackService class

FeedbackService ( EtsyContext etsyContext, IDataRetriever dataRetriever ) : System

Initializes a new instance of the FeedbackService class

GetFeedback ( int feedbackId ) : IAsyncResult

Get a feedback record

GetFeedbackAsBuyer ( int userId, int offset, int limit ) : IAsyncResult

Get a list of all feedback where the user was a buyer in the transaction.

GetFeedbackAsBuyer ( string userName, int offset, int limit ) : IAsyncResult

Get a list of all feedback where the user was a buyer in the transaction.

GetFeedbackAsSeller ( int userId, int offset, int limit ) : IAsyncResult

Get a list of all feedback where the user was a seller in the transaction.

GetFeedbackAsSeller ( string userName, int offset, int limit ) : IAsyncResult

Get a list of all feedback where the user was a seller in the transaction.

GetFeedbackForOthers ( int userId, int offset, int limit ) : IAsyncResult

Get a list of all feedback that the user left feedback for someone else.

GetFeedbackForOthers ( string userName, int offset, int limit ) : IAsyncResult

Get a list of all feedback that the user left feedback for someone else.

GetFeedbackForUser ( int userId, int offset, int limit ) : IAsyncResult

Get a list of all feedback for a particular user.

GetFeedbackForUser ( string userName, int offset, int limit ) : IAsyncResult

Get a list of all feedback for a particular user.

Method Details

FeedbackService() public method

Initializes a new instance of the FeedbackService class
public FeedbackService ( EtsyContext etsyContext ) : System
etsyContext Netsy.DataModel.EtsyContext the etsy context to use
return System

FeedbackService() public method

Initializes a new instance of the FeedbackService class
public FeedbackService ( EtsyContext etsyContext, IDataRetriever dataRetriever ) : System
etsyContext Netsy.DataModel.EtsyContext the etsy context to use
dataRetriever IDataRetriever the data retriever to use
return System

GetFeedback() public method

Get a feedback record
public GetFeedback ( int feedbackId ) : IAsyncResult
feedbackId int the id of the record
return IAsyncResult

GetFeedbackAsBuyer() public method

Get a list of all feedback where the user was a buyer in the transaction.
public GetFeedbackAsBuyer ( int userId, int offset, int limit ) : IAsyncResult
userId int the user's numeric ID
offset int To page through large result sets, set offset to a multiple of limit
limit int Specify the number of results to return
return IAsyncResult

GetFeedbackAsBuyer() public method

Get a list of all feedback where the user was a buyer in the transaction.
public GetFeedbackAsBuyer ( string userName, int offset, int limit ) : IAsyncResult
userName string the user's name
offset int To page through large result sets, set offset to a multiple of limit
limit int Specify the number of results to return
return IAsyncResult

GetFeedbackAsSeller() public method

Get a list of all feedback where the user was a seller in the transaction.
public GetFeedbackAsSeller ( int userId, int offset, int limit ) : IAsyncResult
userId int the user's numeric ID
offset int To page through large result sets, set offset to a multiple of limit
limit int Specify the number of results to return
return IAsyncResult

GetFeedbackAsSeller() public method

Get a list of all feedback where the user was a seller in the transaction.
public GetFeedbackAsSeller ( string userName, int offset, int limit ) : IAsyncResult
userName string the user's name
offset int To page through large result sets, set offset to a multiple of limit
limit int Specify the number of results to return
return IAsyncResult

GetFeedbackForOthers() public method

Get a list of all feedback that the user left feedback for someone else.
public GetFeedbackForOthers ( int userId, int offset, int limit ) : IAsyncResult
userId int the user's numeric ID
offset int To page through large result sets, set offset to a multiple of limit
limit int Specify the number of results to return
return IAsyncResult

GetFeedbackForOthers() public method

Get a list of all feedback that the user left feedback for someone else.
public GetFeedbackForOthers ( string userName, int offset, int limit ) : IAsyncResult
userName string the user's name
offset int To page through large result sets, set offset to a multiple of limit
limit int Specify the number of results to return
return IAsyncResult

GetFeedbackForUser() public method

Get a list of all feedback for a particular user.
public GetFeedbackForUser ( int userId, int offset, int limit ) : IAsyncResult
userId int the user's numeric ID
offset int To page through large result sets, set offset to a multiple of limit
limit int Specify the number of results to return
return IAsyncResult

GetFeedbackForUser() public method

Get a list of all feedback for a particular user.
public GetFeedbackForUser ( string userName, int offset, int limit ) : IAsyncResult
userName string the user's name
offset int To page through large result sets, set offset to a multiple of limit
limit int Specify the number of results to return
return IAsyncResult