/// <summary> /// Initializes a new instance of the <see cref="UserRelationshipResource" /> class. /// </summary> /// <param name="Child">The child in the relationship (required).</param> /// <param name="Context">Context about the relationship or its type.</param> /// <param name="Parent">The parent in the relationship (required).</param> public UserRelationshipResource(SimpleUserResource Child = default(SimpleUserResource), string Context = default(string), SimpleUserResource Parent = default(SimpleUserResource)) { // to ensure "Child" is required (not null) if (Child == null) { throw new InvalidDataException("Child is a required property for UserRelationshipResource and cannot be null"); } else { this.Child = Child; } // to ensure "Parent" is required (not null) if (Parent == null) { throw new InvalidDataException("Parent is a required property for UserRelationshipResource and cannot be null"); } else { this.Parent = Parent; } this.Context = Context; }
/// <summary> /// Initializes a new instance of the <see cref="DispositionResource" /> class. /// </summary> /// <param name="Context">The context of that resource. Required when passed to /dispositions rather than context specific endpoint.</param> /// <param name="ContextId">The context_id of that resource. Required when passed to /dispositions rather than context specific endpoint.</param> /// <param name="Name">The name of the disposition, 1-20 characters. (ex: like/dislike/favorite, etc) (required).</param> /// <param name="User">The user.</param> public DispositionResource(string Context = default(string), string ContextId = default(string), string Name = default(string), SimpleUserResource User = default(SimpleUserResource)) { // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for DispositionResource and cannot be null"); } else { this.Name = Name; } this.Context = Context; this.ContextId = ContextId; this.User = User; }
/// <summary> /// Initializes a new instance of the <see cref="InvoiceResource" /> class. /// </summary> /// <param name="BillingAddress1">Line one of the customer's billing address.</param> /// <param name="BillingAddress2">Line two of the customer's billing address.</param> /// <param name="BillingCityName">The city for the customer's billing address.</param> /// <param name="BillingCountryName">The country for the customer's billing address.</param> /// <param name="BillingFullName">The customer's name for the billing address.</param> /// <param name="BillingPostalCode">The postal code for the customer's billing address.</param> /// <param name="BillingStateName">The state for the customer's billing address.</param> /// <param name="CartId">The guid of the cart this invoice came from.</param> /// <param name="Currency">The code for the currency invoice prices are in.</param> /// <param name="CurrentFulfillmentStatus">The fulfillment status of the invoice.</param> /// <param name="CurrentPaymentStatus">The payment status of the invoice.</param> /// <param name="Discount">The amount of money saved through coupons.</param> /// <param name="Email">The customer's email address.</param> /// <param name="ExternalRef">An external reference to filter on.</param> /// <param name="FedTax">The amount of federal tax added.</param> /// <param name="GrandTotal">The final price of the invoice.</param> /// <param name="InvoiceNumber">A reference number for the invoice.</param> /// <param name="Items">A list of items within the invoice.</param> /// <param name="NamePrefix">The customer's name prefix.</param> /// <param name="OrderNotes">Notes about the order.</param> /// <param name="ParentInvoiceId">The id of an invoice this is a child of.</param> /// <param name="PaymentMethodId">The id of a saved payment method used to pay for the invoice.</param> /// <param name="Phone">The customer's phone number.</param> /// <param name="PhoneNumber">The customer's phone number.</param> /// <param name="RemainingBalance">The remaining price of the invoice (after any payments made so far).</param> /// <param name="Shipping">The shipping cost.</param> /// <param name="ShippingAddress1">Line one of the customer's shipping address.</param> /// <param name="ShippingAddress2">Line two of the customer's shipping address.</param> /// <param name="ShippingCityName">The city for the customer's shipping address.</param> /// <param name="ShippingCountryName">The country for the customer's shipping address.</param> /// <param name="ShippingFullName">The customer's name for the shipping address.</param> /// <param name="ShippingPostalCode">The postal code for the customer's shipping address.</param> /// <param name="ShippingStateName">The state for the customer's shipping address.</param> /// <param name="Sort">A number to use in sorting items. default 500..</param> /// <param name="StateTax">The amount of state tax added.</param> /// <param name="Subtotal">The sum price of all items before shipping, coupons and tax.</param> /// <param name="User">The owner of the invoice.</param> /// <param name="VendorId">The id of the vendor.</param> /// <param name="VendorName">The name of the invoice.</param> public InvoiceResource(string BillingAddress1 = default(string), string BillingAddress2 = default(string), string BillingCityName = default(string), string BillingCountryName = default(string), string BillingFullName = default(string), string BillingPostalCode = default(string), string BillingStateName = default(string), string CartId = default(string), string Currency = default(string), string CurrentFulfillmentStatus = default(string), string CurrentPaymentStatus = default(string), decimal?Discount = default(decimal?), string Email = default(string), string ExternalRef = default(string), decimal?FedTax = default(decimal?), decimal?GrandTotal = default(decimal?), string InvoiceNumber = default(string), List <InvoiceItemResource> Items = default(List <InvoiceItemResource>), string NamePrefix = default(string), string OrderNotes = default(string), int?ParentInvoiceId = default(int?), int?PaymentMethodId = default(int?), string Phone = default(string), string PhoneNumber = default(string), decimal?RemainingBalance = default(decimal?), decimal?Shipping = default(decimal?), string ShippingAddress1 = default(string), string ShippingAddress2 = default(string), string ShippingCityName = default(string), string ShippingCountryName = default(string), string ShippingFullName = default(string), string ShippingPostalCode = default(string), string ShippingStateName = default(string), int?Sort = default(int?), decimal?StateTax = default(decimal?), decimal?Subtotal = default(decimal?), SimpleUserResource User = default(SimpleUserResource), int?VendorId = default(int?), string VendorName = default(string)) { this.BillingAddress1 = BillingAddress1; this.BillingAddress2 = BillingAddress2; this.BillingCityName = BillingCityName; this.BillingCountryName = BillingCountryName; this.BillingFullName = BillingFullName; this.BillingPostalCode = BillingPostalCode; this.BillingStateName = BillingStateName; this.CartId = CartId; this.Currency = Currency; this.CurrentFulfillmentStatus = CurrentFulfillmentStatus; this.CurrentPaymentStatus = CurrentPaymentStatus; this.Discount = Discount; this.Email = Email; this.ExternalRef = ExternalRef; this.FedTax = FedTax; this.GrandTotal = GrandTotal; this.InvoiceNumber = InvoiceNumber; this.Items = Items; this.NamePrefix = NamePrefix; this.OrderNotes = OrderNotes; this.ParentInvoiceId = ParentInvoiceId; this.PaymentMethodId = PaymentMethodId; this.Phone = Phone; this.PhoneNumber = PhoneNumber; this.RemainingBalance = RemainingBalance; this.Shipping = Shipping; this.ShippingAddress1 = ShippingAddress1; this.ShippingAddress2 = ShippingAddress2; this.ShippingCityName = ShippingCityName; this.ShippingCountryName = ShippingCountryName; this.ShippingFullName = ShippingFullName; this.ShippingPostalCode = ShippingPostalCode; this.ShippingStateName = ShippingStateName; this.Sort = Sort; this.StateTax = StateTax; this.Subtotal = Subtotal; this.User = User; this.VendorId = VendorId; this.VendorName = VendorName; }
/// <summary> /// Initializes a new instance of the <see cref="LeaderboardEntryResource" /> class. /// </summary> /// <param name="Rank">The position of the user in the leaderboard. Null means non-compete or disqualification.</param> /// <param name="Score">The raw score in this leaderboard. Null means non-compete or disqualification.</param> /// <param name="UpdatedDate">The date this score was recorded or updated. Unix timestamp in seconds.</param> /// <param name="User">The player for this entry (required).</param> public LeaderboardEntryResource(long?Rank = default(long?), long?Score = default(long?), long?UpdatedDate = default(long?), SimpleUserResource User = default(SimpleUserResource)) { // to ensure "User" is required (not null) if (User == null) { throw new InvalidDataException("User is a required property for LeaderboardEntryResource and cannot be null"); } else { this.User = User; } this.Rank = Rank; this.Score = Score; this.UpdatedDate = UpdatedDate; }
/// <summary> /// Initializes a new instance of the <see cref="InventorySubscriptionResource" /> class. /// </summary> /// <param name="BillDate">The date the subscription will be billed.</param> /// <param name="CreditLog">A record of past and present credit/debt changes.</param> /// <param name="GraceEnd">The date the grace period ends.</param> /// <param name="InventoryId">The id of the inventory.</param> /// <param name="InventoryStatus">The inventory status object.</param> /// <param name="ItemId">The id of the item.</param> /// <param name="PaymentMethod">The payment method object.</param> /// <param name="PriceOverride">The recurring price that has been set to override the base price. Null if not overriding.</param> /// <param name="PriceOverrideReason">An explanation for the reason the price is being overridden.</param> /// <param name="RecurringPrice">The default recurring price.</param> /// <param name="Sku">The recurring sku of the subscription.</param> /// <param name="StartDate">The date the subscription will start.</param> /// <param name="SubscriptionStatus">The status of the subscription.</param> /// <param name="User">The user.</param> public InventorySubscriptionResource(long?BillDate = default(long?), List <SubscriptionCreditResource> CreditLog = default(List <SubscriptionCreditResource>), long?GraceEnd = default(long?), int?InventoryId = default(int?), InventoryStatusEnum?InventoryStatus = default(InventoryStatusEnum?), int?ItemId = default(int?), PaymentMethodResource PaymentMethod = default(PaymentMethodResource), decimal?PriceOverride = default(decimal?), string PriceOverrideReason = default(string), decimal?RecurringPrice = default(decimal?), string Sku = default(string), long?StartDate = default(long?), int?SubscriptionStatus = default(int?), SimpleUserResource User = default(SimpleUserResource)) { this.BillDate = BillDate; this.CreditLog = CreditLog; this.GraceEnd = GraceEnd; this.InventoryId = InventoryId; this.InventoryStatus = InventoryStatus; this.ItemId = ItemId; this.PaymentMethod = PaymentMethod; this.PriceOverride = PriceOverride; this.PriceOverrideReason = PriceOverrideReason; this.RecurringPrice = RecurringPrice; this.Sku = Sku; this.StartDate = StartDate; this.SubscriptionStatus = SubscriptionStatus; this.User = User; }
/// <summary> /// Initializes a new instance of the <see cref="CommentResource" /> class. /// </summary> /// <param name="Content">The comment content of that resource (required).</param> /// <param name="Context">The type of object this comment applies to (ex: video, article, etc). Required when passed to /comments.</param> /// <param name="ContextId">The id of the object this comment applies to. Required when passed to /comments.</param> /// <param name="User">The user who created the comment.</param> public CommentResource(string Content = default(string), string Context = default(string), int?ContextId = default(int?), SimpleUserResource User = default(SimpleUserResource)) { // to ensure "Content" is required (not null) if (Content == null) { throw new InvalidDataException("Content is a required property for CommentResource and cannot be null"); } else { this.Content = Content; } this.Context = Context; this.ContextId = ContextId; this.User = User; }
/// <summary> /// Initializes a new instance of the <see cref="ActivityOccurrenceResource" /> class. /// </summary> /// <param name="ActivityId">The id of the activity (required).</param> /// <param name="Bans">The ids of banned users that cannot join the occurrence. See occurrence-user delete endpoint.</param> /// <param name="ChallengeActivityId">The id of the challenge activity (as part of the event, required if eventId set).</param> /// <param name="CoreSettings">Defines core settings about the activity occurrence that affect how it behaves in the system. Validated against core settings in activity/challenge-activity..</param> /// <param name="Entitlement">The entitlement item required to enter the occurrence. Required if not part of an event. Must come from the set of entitlement items listed in the activity.</param> /// <param name="EventId">The id of the event.</param> /// <param name="Host">The host of the occurrence, if not a participant (will be left out of users array). Must be the caller that creates the occurrence unless admin. Requires activity/challenge to allow host_option of 'non_player' if not admin as well.</param> /// <param name="Settings">The values selected from the available settings defined for the activity. Ex: difficulty: hard. Can be left out if the activity is played during an event and the settings are already set at the event level. Ex: every monday, difficulty: hard, number of questions: 10, category: sport. Otherwise, the set must exactly match those of the activity..</param> /// <param name="Simulated">Whether this occurrence will be ran as a simulation. Simulations will not be rewarded. Useful for bot play or trials.</param> /// <param name="Status">The current status of the occurrence (default: OPEN).</param> /// <param name="Users">The list of users participating in this occurrence. Can only be set directly with ACTIVITIES_ADMIN permission.</param> public ActivityOccurrenceResource(long?ActivityId = default(long?), List <int?> Bans = default(List <int?>), long?ChallengeActivityId = default(long?), CoreActivityOccurrenceSettings CoreSettings = default(CoreActivityOccurrenceSettings), ActivityEntitlementResource Entitlement = default(ActivityEntitlementResource), long?EventId = default(long?), SimpleUserResource Host = default(SimpleUserResource), List <SelectedSettingResource> Settings = default(List <SelectedSettingResource>), bool?Simulated = default(bool?), StatusEnum?Status = default(StatusEnum?), List <ActivityUserResource> Users = default(List <ActivityUserResource>)) { // to ensure "ActivityId" is required (not null) if (ActivityId == null) { throw new InvalidDataException("ActivityId is a required property for ActivityOccurrenceResource and cannot be null"); } else { this.ActivityId = ActivityId; } this.Bans = Bans; this.ChallengeActivityId = ChallengeActivityId; this.CoreSettings = CoreSettings; this.Entitlement = Entitlement; this.EventId = EventId; this.Host = Host; this.Settings = Settings; this.Simulated = Simulated; this.Status = Status; this.Users = Users; }
/// <summary> /// Initializes a new instance of the <see cref="DeviceResource" /> class. /// </summary> /// <param name="AdditionalProperties">A map of additional properties, keyed on the property name. Must match the names and types defined in the template if one is specified.</param> /// <param name="Description">The description of the device.</param> /// <param name="DeviceType">The type of device. Use mobile_device to specifically register mobile devices. This particular type will be used to send and receive notifications.</param> /// <param name="Id">The unique ID for this device. Cannot be changed after creation. Default: random.</param> /// <param name="Location">The physical location of the device, coordinates or named place (office, living room, etc).</param> /// <param name="MacAddress">The MAC (media access control) address of the device.</param> /// <param name="Make">The make of the device.</param> /// <param name="Model">The model of the device.</param> /// <param name="Name">The name of the device.</param> /// <param name="Os">The OS (operating system) on the device.</param> /// <param name="Owner">The user that owns the device.</param> /// <param name="Serial">The serial number of the device.</param> /// <param name="Tags">Random tags to facilitate search.</param> /// <param name="Template">Use to describe and validate custom properties (custom schema). May be null and no validation of additional_properties will be done.</param> /// <param name="Users">The users currently using the device.</param> public DeviceResource(Dictionary <string, Property> AdditionalProperties = default(Dictionary <string, Property>), string Description = default(string), string DeviceType = default(string), string Id = default(string), string Location = default(string), string MacAddress = default(string), string Make = default(string), string Model = default(string), string Name = default(string), string Os = default(string), SimpleUserResource Owner = default(SimpleUserResource), string Serial = default(string), List <string> Tags = default(List <string>), string Template = default(string), List <SimpleUserResource> Users = default(List <SimpleUserResource>)) { this.AdditionalProperties = AdditionalProperties; this.Description = Description; this.DeviceType = DeviceType; this.Id = Id; this.Location = Location; this.MacAddress = MacAddress; this.Make = Make; this.Model = Model; this.Name = Name; this.Os = Os; this.Owner = Owner; this.Serial = Serial; this.Tags = Tags; this.Template = Template; this.Users = Users; }
/// <summary> /// Initializes a new instance of the <see cref="UserInventoryResource" /> class. /// </summary> /// <param name="BehaviorData">A map of data for behaviors.</param> /// <param name="Expires">The date/time this resource exires in seconds since epoch. Null for no expiration. For subscriptions, this is the end of the 'grace period' if left unpaid.</param> /// <param name="InvoiceId">The id of the invoice that resulted in this inventory, if any.</param> /// <param name="ItemId">The id of the item.</param> /// <param name="ItemName">The name of the item.</param> /// <param name="ItemTypeHint">The type hint of the item.</param> /// <param name="Status">The status of the inventory. Pending inventory is not yet ready for use. Inactive inventory has expired or been used up.</param> /// <param name="User">The id of the user this inventory belongs to.</param> public UserInventoryResource(Object BehaviorData = default(Object), long?Expires = default(long?), int?InvoiceId = default(int?), int?ItemId = default(int?), string ItemName = default(string), string ItemTypeHint = default(string), StatusEnum?Status = default(StatusEnum?), SimpleUserResource User = default(SimpleUserResource)) { this.BehaviorData = BehaviorData; this.Expires = Expires; this.InvoiceId = InvoiceId; this.ItemId = ItemId; this.ItemName = ItemName; this.ItemTypeHint = ItemTypeHint; this.Status = Status; this.User = User; }
/// <summary> /// Initializes a new instance of the <see cref="UserItemLogResource" /> class. /// </summary> /// <param name="Info">Additional information defined by the type.</param> /// <param name="Item">The item interacted with.</param> /// <param name="Type">The type of event.</param> /// <param name="User">The user making the interaction.</param> /// <param name="UserInventory">The id of the inventory entry this event is related to, if any.</param> public UserItemLogResource(string Info = default(string), SimpleReferenceResourceint Item = default(SimpleReferenceResourceint), string Type = default(string), SimpleUserResource User = default(SimpleUserResource), int?UserInventory = default(int?)) { this.Info = Info; this.Item = Item; this.Type = Type; this.User = User; this.UserInventory = UserInventory; }
/// <summary> /// Initializes a new instance of the <see cref="PollResponseResource" /> class. /// </summary> /// <param name="Answer">The answer to the poll (required).</param> /// <param name="AnsweredDate">The date the poll was answered, in seconds since unix epoc.</param> /// <param name="PollId">The id of the poll (required).</param> /// <param name="User">The user (required).</param> public PollResponseResource(string Answer = default(string), long?AnsweredDate = default(long?), string PollId = default(string), SimpleUserResource User = default(SimpleUserResource)) { // to ensure "Answer" is required (not null) if (Answer == null) { throw new InvalidDataException("Answer is a required property for PollResponseResource and cannot be null"); } else { this.Answer = Answer; } // to ensure "PollId" is required (not null) if (PollId == null) { throw new InvalidDataException("PollId is a required property for PollResponseResource and cannot be null"); } else { this.PollId = PollId; } // to ensure "User" is required (not null) if (User == null) { throw new InvalidDataException("User is a required property for PollResponseResource and cannot be null"); } else { this.User = User; } this.AnsweredDate = AnsweredDate; }
/// <summary> /// Initializes a new instance of the <see cref="VideoResource" /> class. /// </summary> /// <param name="AdditionalProperties">A map of additional properties, keyed on the property name. Must match the names and types defined in the template for this item type.</param> /// <param name="Author">The original artist of the media.</param> /// <param name="Authored">The date the media was created as a unix timestamp in seconds.</param> /// <param name="Category">The category of the video (required).</param> /// <param name="Comments">The comments of the video.</param> /// <param name="Contributors">Artists that contributed to the creation. See separate endpoint to add to list.</param> /// <param name="Embed">The country of an embedable version.</param> /// <param name="Extension">The file extension of the media file. 1-5 characters (required).</param> /// <param name="Height">The height of the video in px (required).</param> /// <param name="Length">The length of the video in seconds (required).</param> /// <param name="Location">The country of the media. Typically a url. Cannot be blank (required).</param> /// <param name="LongDescription">The user friendly name of that resource. Defaults to blank string.</param> /// <param name="MimeType">The mime-type of the media.</param> /// <param name="Name">The user friendly name of that resource (required).</param> /// <param name="Priority">The sort order of the video. default: 100.</param> /// <param name="Privacy">The privacy setting. default: private.</param> /// <param name="Published">Whether the video has been made public. Default true.</param> /// <param name="ShortDescription">The user friendly name of that resource. Defaults to blank string.</param> /// <param name="Size">The size of the media. Minimum 0 if supplied.</param> /// <param name="Tags">The tags for the video.</param> /// <param name="Template">A video template this video is validated against (private). May be null and no validation of additional_properties will be done.</param> /// <param name="Thumbnail">The country of a thumbnail version. Typically a url.</param> /// <param name="Uploader">The user the media was uploaded by. May be null for system uploaded media. May only be set to a user other than the current caller if VIDEOS_ADMIN permission. Null will mean the caller is the uploader unless the caller has VIDEOS_ADMIN permission, in which case it will be set to null.</param> /// <param name="Width">The width of the video in px (required).</param> public VideoResource(Dictionary <string, Property> AdditionalProperties = default(Dictionary <string, Property>), SimpleReferenceResourcelong Author = default(SimpleReferenceResourcelong), long?Authored = default(long?), SimpleReferenceResourcestring Category = default(SimpleReferenceResourcestring), List <CommentResource> Comments = default(List <CommentResource>), List <ContributionResource> Contributors = default(List <ContributionResource>), string Embed = default(string), string Extension = default(string), int?Height = default(int?), int?Length = default(int?), string Location = default(string), string LongDescription = default(string), string MimeType = default(string), string Name = default(string), int?Priority = default(int?), PrivacyEnum?Privacy = default(PrivacyEnum?), bool?Published = default(bool?), string ShortDescription = default(string), long?Size = default(long?), List <string> Tags = default(List <string>), string Template = default(string), string Thumbnail = default(string), SimpleUserResource Uploader = default(SimpleUserResource), int?Width = default(int?)) { // to ensure "Category" is required (not null) if (Category == null) { throw new InvalidDataException("Category is a required property for VideoResource and cannot be null"); } else { this.Category = Category; } // to ensure "Extension" is required (not null) if (Extension == null) { throw new InvalidDataException("Extension is a required property for VideoResource and cannot be null"); } else { this.Extension = Extension; } // to ensure "Height" is required (not null) if (Height == null) { throw new InvalidDataException("Height is a required property for VideoResource and cannot be null"); } else { this.Height = Height; } // to ensure "Length" is required (not null) if (Length == null) { throw new InvalidDataException("Length is a required property for VideoResource and cannot be null"); } else { this.Length = Length; } // to ensure "Location" is required (not null) if (Location == null) { throw new InvalidDataException("Location is a required property for VideoResource and cannot be null"); } else { this.Location = Location; } // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for VideoResource and cannot be null"); } else { this.Name = Name; } // to ensure "Width" is required (not null) if (Width == null) { throw new InvalidDataException("Width is a required property for VideoResource and cannot be null"); } else { this.Width = Width; } this.AdditionalProperties = AdditionalProperties; this.Author = Author; this.Authored = Authored; this.Comments = Comments; this.Contributors = Contributors; this.Embed = Embed; this.LongDescription = LongDescription; this.MimeType = MimeType; this.Priority = Priority; this.Privacy = Privacy; this.Published = Published; this.ShortDescription = ShortDescription; this.Size = Size; this.Tags = Tags; this.Template = Template; this.Thumbnail = Thumbnail; this.Uploader = Uploader; }
/// <summary> /// Initializes a new instance of the <see cref="ActivityUserResource" /> class. /// </summary> /// <param name="Host">Whether this user is the 'host' of the occurrence and has increased access to settings/etc (default: false).</param> /// <param name="Metric">The metric for the user's results, after the game is over.</param> /// <param name="Status">The current status of the user in the occurrence (default: present).</param> /// <param name="User">The user (required).</param> public ActivityUserResource(bool?Host = default(bool?), MetricResource Metric = default(MetricResource), StatusEnum?Status = default(StatusEnum?), SimpleUserResource User = default(SimpleUserResource)) { // to ensure "User" is required (not null) if (User == null) { throw new InvalidDataException("User is a required property for ActivityUserResource and cannot be null"); } else { this.User = User; } this.Host = Host; this.Metric = Metric; this.Status = Status; }
/// <summary> /// Initializes a new instance of the <see cref="UserActivityResults" /> class. /// </summary> /// <param name="CurrencyRewards">Any currency rewarded to this user.</param> /// <param name="ItemRewards">Any items rewarded to this user.</param> /// <param name="Rank">The position of the user in the leaderboard. Null means non-compete or disqualification.</param> /// <param name="Score">The raw score in this leaderboard. Null means non-compete or disqualification.</param> /// <param name="Tags">Any tags for the metric. Each unique tag will translate into a unique leaderboard. Maximum 10 tags and 50 characters each.</param> /// <param name="UpdatedDate">The date this score was recorded or updated. Unix timestamp in seconds.</param> /// <param name="User">The player for this entry (required).</param> public UserActivityResults(List <RewardCurrencyResource> CurrencyRewards = default(List <RewardCurrencyResource>), List <RewardItemResource> ItemRewards = default(List <RewardItemResource>), long?Rank = default(long?), long?Score = default(long?), List <string> Tags = default(List <string>), long?UpdatedDate = default(long?), SimpleUserResource User = default(SimpleUserResource)) { // to ensure "User" is required (not null) if (User == null) { throw new InvalidDataException("User is a required property for UserActivityResults and cannot be null"); } else { this.User = User; } this.CurrencyRewards = CurrencyRewards; this.ItemRewards = ItemRewards; this.Rank = Rank; this.Score = Score; this.Tags = Tags; this.UpdatedDate = UpdatedDate; }
/// <summary> /// Initializes a new instance of the <see cref="ChatBlacklistResource" /> class. /// </summary> /// <param name="BlacklistedUser">The user that is blacklisted.</param> public ChatBlacklistResource(SimpleUserResource BlacklistedUser = default(SimpleUserResource)) { this.BlacklistedUser = BlacklistedUser; }
/// <summary> /// Initializes a new instance of the <see cref="GroupMemberResource" /> class. /// </summary> /// <param name="AdditionalProperties">A map of additional properties, keyed on the property name (private). Must match the names and types defined in the template for this type, or be an extra not from the template.</param> /// <param name="Group">The group. Id is the unique name.</param> /// <param name="Order">The position of the member in the group if applicable. Read notes for details.</param> /// <param name="Status">The member's access level. Default: member.</param> /// <param name="Template">A template this member additional properties are validated against (private). May be null and no validation of properties will be done.</param> /// <param name="User">The user (required).</param> public GroupMemberResource(Dictionary <string, Property> AdditionalProperties = default(Dictionary <string, Property>), SimpleGroupResource Group = default(SimpleGroupResource), string Order = default(string), StatusEnum?Status = default(StatusEnum?), string Template = default(string), SimpleUserResource User = default(SimpleUserResource)) { // to ensure "User" is required (not null) if (User == null) { throw new InvalidDataException("User is a required property for GroupMemberResource and cannot be null"); } else { this.User = User; } this.AdditionalProperties = AdditionalProperties; this.Group = Group; this.Order = Order; this.Status = Status; this.Template = Template; }
/// <summary> /// Initializes a new instance of the <see cref="FlagResource" /> class. /// </summary> /// <param name="Context">The context of that resource (required).</param> /// <param name="ContextId">The context_id of that resource (required).</param> /// <param name="Reason">The flag reason of that resource.</param> /// <param name="User">The basic user resource.</param> public FlagResource(string Context = default(string), string ContextId = default(string), string Reason = default(string), SimpleUserResource User = default(SimpleUserResource)) { // to ensure "Context" is required (not null) if (Context == null) { throw new InvalidDataException("Context is a required property for FlagResource and cannot be null"); } else { this.Context = Context; } // to ensure "ContextId" is required (not null) if (ContextId == null) { throw new InvalidDataException("ContextId is a required property for FlagResource and cannot be null"); } else { this.ContextId = ContextId; } this.Reason = Reason; this.User = User; }
/// <summary> /// Initializes a new instance of the <see cref="WalletTransactionResource" /> class. /// </summary> /// <param name="Balance">The new balance of the wallet after the transaction.</param> /// <param name="CreateDate">The unix timestamp in seconds of the transaction.</param> /// <param name="CurrencyCode">The code of the currency for the transaction.</param> /// <param name="Details">The specific details of the transaction, such as a message from the admin that created it.</param> /// <param name="Id">The id of the transaction.</param> /// <param name="InvoiceId">The id of the invoice that spawned the transaction, if any.</param> /// <param name="IsRefunded">Whether the transaction has been refunded.</param> /// <param name="Response">The response.</param> /// <param name="Source">The root source of the transaction.</param> /// <param name="Successful">If the transaction was successful.</param> /// <param name="TransactionId">The payment gateway (external) transaction ID.</param> /// <param name="Type">The general type of the transaction.</param> /// <param name="TypeHint">The table name of the subclass.</param> /// <param name="User">The owner of the wallet.</param> /// <param name="Value">The amount of the transaction, positive if a gain, negative if an expenditure.</param> /// <param name="WalletId">The id of the wallet this transaction affected.</param> public WalletTransactionResource(decimal?Balance = default(decimal?), long?CreateDate = default(long?), string CurrencyCode = default(string), string Details = default(string), int?Id = default(int?), int?InvoiceId = default(int?), bool?IsRefunded = default(bool?), string Response = default(string), SourceEnum?Source = default(SourceEnum?), bool?Successful = default(bool?), string TransactionId = default(string), string Type = default(string), string TypeHint = default(string), SimpleUserResource User = default(SimpleUserResource), decimal?Value = default(decimal?), int?WalletId = default(int?)) { this.Balance = Balance; this.CreateDate = CreateDate; this.CurrencyCode = CurrencyCode; this.Details = Details; this.Id = Id; this.InvoiceId = InvoiceId; this.IsRefunded = IsRefunded; this.Response = Response; this.Source = Source; this.Successful = Successful; this.TransactionId = TransactionId; this.Type = Type; this.TypeHint = TypeHint; this.User = User; this.Value = Value; this.WalletId = WalletId; }
/// <summary> /// Initializes a new instance of the <see cref="MobileDeviceResource" /> class. /// </summary> /// <param name="AdditionalProperties">A map of additional properties, keyed on the property name. Must match the names and types defined in the template if one is specified.</param> /// <param name="Description">The description of the device.</param> /// <param name="DeviceType">The type of device. Use mobile_device to specifically register mobile devices. This particular type will be used to send and receive notifications.</param> /// <param name="Id">The unique ID for this device. Cannot be changed after creation. Default: random.</param> /// <param name="Location">The physical location of the device, coordinates or named place (office, living room, etc).</param> /// <param name="MacAddress">The MAC (media access control) address of the device.</param> /// <param name="Make">The make of the device.</param> /// <param name="Model">The model of the device.</param> /// <param name="Name">The name of the device.</param> /// <param name="Os">The OS (operating system) on the device.</param> /// <param name="Owner">The user that owns the device.</param> /// <param name="Serial">The serial number of the device.</param> /// <param name="Tags">Random tags to facilitate search.</param> /// <param name="Template">Use to describe and validate custom properties (custom schema). May be null and no validation of additional_properties will be done.</param> /// <param name="Users">The users currently using the device.</param> /// <param name="Authorization">The authorization code for push notifications provided by the provider platform (APNS, GCM, etc)..</param> /// <param name="Imei">Imei.</param> /// <param name="NotificationPlatform">The platform used for push notifications. Only Apple and Android are supported at the moment..</param> /// <param name="Number">The phone number associated with this device if applicable, in international format.</param> public MobileDeviceResource(Dictionary <string, Property> AdditionalProperties = default(Dictionary <string, Property>), string Description = default(string), string DeviceType = default(string), string Id = default(string), string Location = default(string), string MacAddress = default(string), string Make = default(string), string Model = default(string), string Name = default(string), string Os = default(string), SimpleUserResource Owner = default(SimpleUserResource), string Serial = default(string), List <string> Tags = default(List <string>), string Template = default(string), List <SimpleUserResource> Users = default(List <SimpleUserResource>), string Authorization = default(string), string Imei = default(string), NotificationPlatformEnum?NotificationPlatform = default(NotificationPlatformEnum?), string Number = default(string)) { this.AdditionalProperties = AdditionalProperties; this.Description = Description; this.DeviceType = DeviceType; this.Id = Id; this.Location = Location; this.MacAddress = MacAddress; this.Make = Make; this.Model = Model; this.Name = Name; this.Os = Os; this.Owner = Owner; this.Serial = Serial; this.Tags = Tags; this.Template = Template; this.Users = Users; this.Authorization = Authorization; this.Imei = Imei; this.NotificationPlatform = NotificationPlatform; this.Number = Number; }