コード例 #1
0
 public AddRatingCommand(string uniqueKey, uint rating, string customParams, AuthorisationContext authorisationContext)
     : base(authorisationContext)
 {
     this.uniqueKey = uniqueKey;
     this.rating = rating;
     this.customParams = customParams;
 }
コード例 #2
0
 protected WithAuthorisationContext(AuthorisationContext authorisationContext)
 {
     if (authorisationContext == null) throw new ArgumentNullException("authorisationContext", "AuthorisationContext context cannot be null.");
     this.authorisationContext = authorisationContext;
 }
コード例 #3
0
 public GetAllRatingsQuery(AuthorisationContext authorisationContext)
     : base(authorisationContext)
 {
 }
コード例 #4
0
 public GetRatingsCustomParamQuery(AuthorisationContext authorisationContext, string customParam, string customQuery)
     : base(authorisationContext)
 {
     this.customParam = customParam;
     this.customQuery = customQuery;
 }
コード例 #5
0
 public GetRatingsBetweenRatingQuery(AuthorisationContext authorisationContext, int minRating, int maxRating)
     : base(authorisationContext)
 {
     this.minRating = minRating;
     this.maxRating = maxRating;
 }
コード例 #6
0
 public DeleteRatingCommand(AuthorisationContext authorisationContext, string uniqueKey)
     : base(authorisationContext)
 {
     this.uniqueKey = uniqueKey;
 }
コード例 #7
0
 public GetRatingUniqueKeyQuery(AuthorisationContext authorisationContext, string uniqueKey)
     : base(authorisationContext)
 {
     this.uniqueKey = uniqueKey;
 }
コード例 #8
0
 private dynamic GetUserAccount(AuthorisationContext authorisationContext)
 {
     var authorisation = authorisationService.GetAuthorsation(new GetAuthorisationQuery(authorisationContext));
     return accountService.GetUserAccount(new GetUserAccountQuery(authorisation.UserAccountId));
 }
コード例 #9
0
 public GetAuthorisationQuery(AuthorisationContext authorisationContext)
 {
     this.authorisationContext = authorisationContext;
 }