public UpgradeEstablishmentCommand(IPlayer player, IEstablishment establishment) { if (player == null) throw new ArgumentNullException(nameof(player)); if (establishment == null) throw new ArgumentNullException(nameof(establishment)); Player = player; this.establishment = establishment; }
/// <summary> /// Get adoxio_Establishment from adoxio_establishmentincidents /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='adoxioEstablishmentincidentid'> /// key: adoxio_establishmentincidentid of adoxio_establishmentincident /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse <MicrosoftDynamicsCRMadoxioEstablishment> GetWithHttpMessages(this IEstablishment operations, string adoxioEstablishmentincidentid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), Dictionary <string, List <string> > customHeaders = null) { return(operations.GetWithHttpMessagesAsync(adoxioEstablishmentincidentid, select, expand, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Get adoxio_Establishment from adoxio_establishmentincidents /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='adoxioEstablishmentincidentid'> /// key: adoxio_establishmentincidentid of adoxio_establishmentincident /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> public static MicrosoftDynamicsCRMadoxioEstablishment Get(this IEstablishment operations, string adoxioEstablishmentincidentid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>)) { return(operations.GetAsync(adoxioEstablishmentincidentid, select, expand).GetAwaiter().GetResult()); }