Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Geofence" /> class.
 /// </summary>
 /// <param name="id">Unique identifier of geofence object..</param>
 /// <param name="appKey">Six character app code..</param>
 /// <param name="createdAt">Moment when the geofence was created..</param>
 /// <param name="updatedAt">Moment when the geofence was updated..</param>
 /// <param name="deletedAt">Moment when the geofence was deleted..</param>
 /// <param name="expiredAt">Moment when the geofence expired..</param>
 /// <param name="radius">The radius of the geofence..</param>
 /// <param name="repeats">Indicates whether the geofence repeats.</param>
 /// <param name="type">Type of the geofence.</param>
 /// <param name="notifyOnEntry">Indicates whether to notify on entry.</param>
 /// <param name="notifyOnExit">Indicates whether to notify on exit.</param>
 /// <param name="notifyOnDwellInside">Indicates whether to notify on dwell inside.</param>
 /// <param name="notifyOnDwellOutside">Indicates whether to notify on dwell outside.</param>
 /// <param name="embedded">embedded.</param>
 /// <param name="links">links.</param>
 public Geofence(Guid?id = default(Guid?), string appKey = default(string), DateTime?createdAt = default(DateTime?), DateTime?updatedAt = default(DateTime?), DateTime?deletedAt = default(DateTime?), DateTime?expiredAt = default(DateTime?), decimal?radius = default(decimal?), bool?repeats = default(bool?), string type = default(string), bool?notifyOnEntry = default(bool?), bool?notifyOnExit = default(bool?), bool?notifyOnDwellInside = default(bool?), bool?notifyOnDwellOutside = default(bool?), GeofenceEmbedded embedded = default(GeofenceEmbedded), SelfLink links = default(SelfLink))
 {
     this.Id                   = id;
     this.AppKey               = appKey;
     this.CreatedAt            = createdAt;
     this.UpdatedAt            = updatedAt;
     this.DeletedAt            = deletedAt;
     this.ExpiredAt            = expiredAt;
     this.Radius               = radius;
     this.Repeats              = repeats;
     this.Type                 = type;
     this.NotifyOnEntry        = notifyOnEntry;
     this.NotifyOnExit         = notifyOnExit;
     this.NotifyOnDwellInside  = notifyOnDwellInside;
     this.NotifyOnDwellOutside = notifyOnDwellOutside;
     this.Embedded             = embedded;
     this.Links                = links;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlatformEndpoint" /> class.
 /// </summary>
 /// <param name="id">The unique identifier of the platform endpoint.</param>
 /// <param name="appKey">appKey.</param>
 /// <param name="token">Unique token assigned to the device after it registers with its corresponding push notification service (APNS, GCM, or FCM)..</param>
 /// <param name="legacyAppInstallId">Unique ID of an app install (legacy). Required if &#x60;app_install_id&#x60; is not provided.</param>
 /// <param name="appInstallId">Unique ID of an app install. Required if &#x60;legacy_app_install_id&#x60; is not provided.</param>
 /// <param name="awsSnsEndpointArn">Platform Endpoint Amazon Resource Name..</param>
 /// <param name="platform">platform.</param>
 /// <param name="links">links.</param>
 /// <param name="embedded">Embedded properties of Platform Endpoint..</param>
 public PlatformEndpoint(Guid?id = default(Guid?), string appKey = default(string), string token = default(string), int?legacyAppInstallId = default(int?), byte[] appInstallId = default(byte[]), string awsSnsEndpointArn = default(string), PlatformEnum?platform = default(PlatformEnum?), SelfLink links = default(SelfLink), Object embedded = default(Object))
 {
     this.Id                 = id;
     this.AppKey             = appKey;
     this.Token              = token;
     this.LegacyAppInstallId = legacyAppInstallId;
     this.AppInstallId       = appInstallId;
     this.AwsSnsEndpointArn  = awsSnsEndpointArn;
     this.Platform           = platform;
     this.Links              = links;
     this.Embedded           = embedded;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Address" /> class.
 /// </summary>
 /// <param name="id">Unique identifier of address object.</param>
 /// <param name="appKey">Six character app code.</param>
 /// <param name="createdAt">Moment when the address was created.</param>
 /// <param name="updatedAt">Moment when the address was updated.</param>
 /// <param name="deletedAt">Moment when the address was deleted.</param>
 /// <param name="street">The street name of the address.</param>
 /// <param name="city">The city in which the address is located.</param>
 /// <param name="state">The state in which the adress is located.</param>
 /// <param name="postalCode">The postal code in which the address is located.</param>
 /// <param name="country">The country in which the address is located.</param>
 /// <param name="latitude">The latitude of the address.</param>
 /// <param name="longitude">The longitude of the address.</param>
 /// <param name="embedded">Embeded properties of the address.</param>
 /// <param name="links">links.</param>
 public Address(Guid?id = default(Guid?), string appKey = default(string), DateTime?createdAt = default(DateTime?), DateTime?updatedAt = default(DateTime?), DateTime?deletedAt = default(DateTime?), string street = default(string), string city = default(string), string state = default(string), string postalCode = default(string), string country = default(string), decimal?latitude = default(decimal?), decimal?longitude = default(decimal?), Object embedded = default(Object), SelfLink links = default(SelfLink))
 {
     this.Id         = id;
     this.AppKey     = appKey;
     this.CreatedAt  = createdAt;
     this.UpdatedAt  = updatedAt;
     this.DeletedAt  = deletedAt;
     this.Street     = street;
     this.City       = city;
     this.State      = state;
     this.PostalCode = postalCode;
     this.Country    = country;
     this.Latitude   = latitude;
     this.Longitude  = longitude;
     this.Embedded   = embedded;
     this.Links      = links;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="App" /> class.
 /// </summary>
 /// <param name="id">Unique identifier of app object.</param>
 /// <param name="createdAt">Moment when the app was created.</param>
 /// <param name="updatedAt">Moment when the app was updated.</param>
 /// <param name="deletedAt">Moment when the app was deleted.</param>
 /// <param name="title">The title of the app..</param>
 /// <param name="internalTitle">The internal title of the app..</param>
 /// <param name="timezone">timezone.</param>
 /// <param name="isContainer">Indicates whether the app is a container.</param>
 /// <param name="cancelled">Indicates whether the app is cancelled.</param>
 /// <param name="embedded">Embedded proeprties of the app..</param>
 /// <param name="links">links.</param>
 public App(Guid?id = default(Guid?), DateTime?createdAt = default(DateTime?), DateTime?updatedAt = default(DateTime?), DateTime?deletedAt = default(DateTime?), string title = default(string), string internalTitle = default(string), Timezone timezone = default(Timezone), bool?isContainer = default(bool?), bool?cancelled = default(bool?), Object embedded = default(Object), SelfLink links = default(SelfLink))
 {
     this.Id            = id;
     this.CreatedAt     = createdAt;
     this.UpdatedAt     = updatedAt;
     this.DeletedAt     = deletedAt;
     this.Title         = title;
     this.InternalTitle = internalTitle;
     this.Timezone      = timezone;
     this.IsContainer   = isContainer;
     this.Cancelled     = cancelled;
     this.Embedded      = embedded;
     this.Links         = links;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Notification" /> class.
 /// </summary>
 /// <param name="id">Unique identifier of notification object..</param>
 /// <param name="appKey">Six character app code..</param>
 /// <param name="createdAt">Moment when the notification was created..</param>
 /// <param name="updatedAt">Moment when the notification was updated..</param>
 /// <param name="deletedAt">Moment when the notification was deleted..</param>
 /// <param name="title">Title of a notification that is displayed and bolded at the top of the notification on the lock screen and in the Notification Center..</param>
 /// <param name="subtitle">Subtitle of a notification..</param>
 /// <param name="body">Text that is displayed in the notification on the lock screen, Notification Center, and inbox in the app..</param>
 /// <param name="additionalDescription">Text that is displayed in the notification detail view in the app..</param>
 /// <param name="sentCount">Number of devices this notification was sent to..</param>
 /// <param name="receivedCount">Number of devices that received this notification..</param>
 /// <param name="displayedCount">Number of devices that displayed this notification..</param>
 /// <param name="openedCount">Number of devices that opened this notification..</param>
 /// <param name="snsMessageIds">Unique identifiers assigned to the published message in SNS. Remote notifications should only have one id, but geonotifications have multiple ids associated with the notification (one for the adding and one for removing the silent notification). It is not guaranteed that the first id is the id associated with the add command, but it is highly likely that this is the case. .</param>
 /// <param name="expiredAt">Moment when the notification expires. Only applies to a &#x60;notification&#x60; with a &#x60;geofence&#x60;..</param>
 /// <param name="publishedAt">Moment when notification will be sent by the push agent..</param>
 /// <param name="sentAt">Moment when notification was sent as recorded by the push agent..</param>
 /// <param name="sent">Represents whether a message has been sent..</param>
 /// <param name="sendErrMsg">The error that occurred when sending the notification.</param>
 /// <param name="removedAt">The time in which this notification was removed.</param>
 /// <param name="embedded">embedded.</param>
 /// <param name="links">links.</param>
 public Notification(Guid?id = default(Guid?), string appKey = default(string), DateTime?createdAt = default(DateTime?), DateTime?updatedAt = default(DateTime?), DateTime?deletedAt = default(DateTime?), string title = default(string), string subtitle = default(string), string body = default(string), string additionalDescription = default(string), int?sentCount = default(int?), int?receivedCount = default(int?), int?displayedCount = default(int?), int?openedCount = default(int?), List <string> snsMessageIds = default(List <string>), DateTime?expiredAt = default(DateTime?), DateTime?publishedAt = default(DateTime?), DateTime?sentAt = default(DateTime?), bool?sent = default(bool?), string sendErrMsg = default(string), DateTime?removedAt = default(DateTime?), NotificationEmbedded embedded = default(NotificationEmbedded), SelfLink links = default(SelfLink))
 {
     this.Id                    = id;
     this.AppKey                = appKey;
     this.CreatedAt             = createdAt;
     this.UpdatedAt             = updatedAt;
     this.DeletedAt             = deletedAt;
     this.Title                 = title;
     this.Subtitle              = subtitle;
     this.Body                  = body;
     this.AdditionalDescription = additionalDescription;
     this.SentCount             = sentCount;
     this.ReceivedCount         = receivedCount;
     this.DisplayedCount        = displayedCount;
     this.OpenedCount           = openedCount;
     this.SnsMessageIds         = snsMessageIds;
     this.ExpiredAt             = expiredAt;
     this.PublishedAt           = publishedAt;
     this.SentAt                = sentAt;
     this.Sent                  = sent;
     this.SendErrMsg            = sendErrMsg;
     this.RemovedAt             = removedAt;
     this.Embedded              = embedded;
     this.Links                 = links;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TopicSubscriptionBulk" /> class.
 /// </summary>
 /// <param name="id">Unique identifier of topic subscription object..</param>
 /// <param name="appKey">Six character app code..</param>
 /// <param name="createdAt">Moment when the topic subscription was created..</param>
 /// <param name="updatedAt">Moment when the topic subscription was updated..</param>
 /// <param name="deletedAt">Moment when the topic subscription was deleted..</param>
 /// <param name="awsSnsSubscriptionArn">The aws sns subscription arn..</param>
 /// <param name="links">links.</param>
 /// <param name="embedded">embedded.</param>
 public TopicSubscriptionBulk(Guid?id = default(Guid?), string appKey = default(string), DateTime?createdAt = default(DateTime?), DateTime?updatedAt = default(DateTime?), DateTime?deletedAt = default(DateTime?), string awsSnsSubscriptionArn = default(string), SelfLink links = default(SelfLink), TopicSubscriptionBulkEmbedded embedded = default(TopicSubscriptionBulkEmbedded))
 {
     this.Id                    = id;
     this.AppKey                = appKey;
     this.CreatedAt             = createdAt;
     this.UpdatedAt             = updatedAt;
     this.DeletedAt             = deletedAt;
     this.AwsSnsSubscriptionArn = awsSnsSubscriptionArn;
     this.Links                 = links;
     this.Embedded              = embedded;
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Topic" /> class.
 /// </summary>
 /// <param name="id">Unique identifier of topic object.</param>
 /// <param name="appKey">Six character app code.</param>
 /// <param name="createdAt">Moment when the topic was created.</param>
 /// <param name="updatedAt">Moment when the topic was updated.</param>
 /// <param name="deletedAt">Moment when the topic was deleted.</param>
 /// <param name="deactivatedAt">Moment when the topic was deactivated.</param>
 /// <param name="title">The title of the topic.</param>
 /// <param name="isGeneral">Indicates whether the topic is general (vs specific).</param>
 /// <param name="isPrivate">Indicates whether the topic private (vs public).</param>
 /// <param name="awsSnsTopicArn">Topic Amazon Resource Name.</param>
 /// <param name="numSubscribers">The number of subscriptions on this topic.</param>
 /// <param name="links">links.</param>
 public Topic(Guid?id = default(Guid?), string appKey = default(string), DateTime?createdAt = default(DateTime?), DateTime?updatedAt = default(DateTime?), DateTime?deletedAt = default(DateTime?), DateTime?deactivatedAt = default(DateTime?), string title = default(string), bool?isGeneral = default(bool?), bool?isPrivate = default(bool?), string awsSnsTopicArn = default(string), int?numSubscribers = default(int?), SelfLink links = default(SelfLink))
 {
     this.Id             = id;
     this.AppKey         = appKey;
     this.CreatedAt      = createdAt;
     this.UpdatedAt      = updatedAt;
     this.DeletedAt      = deletedAt;
     this.DeactivatedAt  = deactivatedAt;
     this.Title          = title;
     this.IsGeneral      = isGeneral;
     this.IsPrivate      = isPrivate;
     this.AwsSnsTopicArn = awsSnsTopicArn;
     this.NumSubscribers = numSubscribers;
     this.Links          = links;
 }