Пример #1
0
 public void CountainPlanet(IStars stars)
 {
     if (stars != null)
     {
     }
     throw new Exception();
 }
Пример #2
0
 public Planet(IStars motherStar, int numberOfPlant, long selfRotatePeriod, long publicRotatePeriod)
 {
     this.motherStar         = motherStar;
     this.numberOfPlant      = numberOfPlant;
     this.selfRotatePeriod   = selfRotatePeriod;
     this.publicRotatePeriod = publicRotatePeriod;
 }
Пример #3
0
 /// <summary>
 /// Adds a star to an item.
 /// <see href="https://api.slack.com/methods/stars.add" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `stars:write`
 /// </param>
 /// <param name='fileComment'>
 /// File comment to add star to.
 /// </param>
 /// <param name='timestamp'>
 /// Timestamp of the message to add star to.
 /// </param>
 /// <param name='channel'>
 /// Channel to add star to, or channel where the message to add star to was
 /// posted (used with `timestamp`).
 /// </param>
 /// <param name='file'>
 /// File to add star to.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AddOKResponseModelModelModel> AddAsync(this IStars operations, string token = default(string), string fileComment = default(string), string timestamp = default(string), string channel = default(string), string file = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AddWithHttpMessagesAsync(token, fileComment, timestamp, channel, file, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #4
0
 /// <summary>
 /// Lists stars for a user.
 /// <see href="https://api.slack.com/methods/stars.list" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='count'>
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `stars:read`
 /// </param>
 /// <param name='page'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ListOKResponseModelModelModelModel> ListAsync(this IStars operations, string count = default(string), string token = default(string), string page = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(count, token, page, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #5
0
 public void AddPlanet(IStars stars)
 {
     throw new System.NotImplementedException();
 }
Пример #6
0
 public void AddPlanet(IStars star)
 {
     planets.Add(star);
 }
 public StarbucksSaleManager(IStars stars, Customer customer)
 {
     this.stars    = stars;
     this.customer = customer;
 }
Пример #8
0
 /// <summary>
 /// Lists stars for a user.
 /// <see href="https://api.slack.com/methods/stars.list" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='count'>
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `stars:read`
 /// </param>
 /// <param name='page'>
 /// </param>
 public static ListOKResponseModelModelModelModel List(this IStars operations, string count = default(string), string token = default(string), string page = default(string))
 {
     return(operations.ListAsync(count, token, page).GetAwaiter().GetResult());
 }
Пример #9
0
 /// <summary>
 /// Adds a star to an item.
 /// <see href="https://api.slack.com/methods/stars.add" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `stars:write`
 /// </param>
 /// <param name='fileComment'>
 /// File comment to add star to.
 /// </param>
 /// <param name='timestamp'>
 /// Timestamp of the message to add star to.
 /// </param>
 /// <param name='channel'>
 /// Channel to add star to, or channel where the message to add star to was
 /// posted (used with `timestamp`).
 /// </param>
 /// <param name='file'>
 /// File to add star to.
 /// </param>
 public static AddOKResponseModelModelModel Add(this IStars operations, string token = default(string), string fileComment = default(string), string timestamp = default(string), string channel = default(string), string file = default(string))
 {
     return(operations.AddAsync(token, fileComment, timestamp, channel, file).GetAwaiter().GetResult());
 }