Skip to content

Commit

Permalink
Merge pull request #11 from OneSignal/api
Browse files Browse the repository at this point in the history
Dependency Update
  • Loading branch information
brismithers authored Aug 3, 2022
2 parents a0cffd3 + a79e5ee commit e20d875
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/Notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Name | Type | Description | Notes
**Value** | **int** | | [optional] [readonly]
**Name** | **string** | Required for SMS Messages. An identifier for tracking message within the OneSignal dashboard or export analytics. Not shown to end user. | [optional]
**Aggregation** | **string** | | [optional] [readonly]
**IsIos** | **bool?** | Indicates whether to send to all devices registered under your app's Apple iOS platform. | [optional] [default to true]
**IsIos** | **bool?** | Indicates whether to send to all devices registered under your app's Apple iOS platform. | [optional]
**IsAndroid** | **bool?** | Indicates whether to send to all devices registered under your app's Google Android platform. | [optional]
**IsHuawei** | **bool?** | Indicates whether to send to all devices registered under your app's Huawei Android platform. | [optional]
**IsAnyWeb** | **bool?** | Indicates whether to send to all subscribed web browser users, including Chrome, Firefox, and Safari. You may use this instead as a combined flag instead of separately enabling isChromeWeb, isFirefox, and isSafari, though the three options are equivalent to this one. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/NotificationAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Value** | **int** | | [optional] [readonly]
**Name** | **string** | Required for SMS Messages. An identifier for tracking message within the OneSignal dashboard or export analytics. Not shown to end user. | [optional]
**Aggregation** | **string** | | [optional] [readonly]
**IsIos** | **bool?** | Indicates whether to send to all devices registered under your app's Apple iOS platform. | [optional] [default to true]
**IsIos** | **bool?** | Indicates whether to send to all devices registered under your app's Apple iOS platform. | [optional]
**IsAndroid** | **bool?** | Indicates whether to send to all devices registered under your app's Google Android platform. | [optional]
**IsHuawei** | **bool?** | Indicates whether to send to all devices registered under your app's Huawei Android platform. | [optional]
**IsAnyWeb** | **bool?** | Indicates whether to send to all subscribed web browser users, including Chrome, Firefox, and Safari. You may use this instead as a combined flag instead of separately enabling isChromeWeb, isFirefox, and isSafari, though the three options are equivalent to this one. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/NotificationWithMeta.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Name | Type | Description | Notes
**Value** | **int** | | [optional] [readonly]
**Name** | **string** | Required for SMS Messages. An identifier for tracking message within the OneSignal dashboard or export analytics. Not shown to end user. | [optional]
**Aggregation** | **string** | | [optional] [readonly]
**IsIos** | **bool?** | Indicates whether to send to all devices registered under your app's Apple iOS platform. | [optional] [default to true]
**IsIos** | **bool?** | Indicates whether to send to all devices registered under your app's Apple iOS platform. | [optional]
**IsAndroid** | **bool?** | Indicates whether to send to all devices registered under your app's Google Android platform. | [optional]
**IsHuawei** | **bool?** | Indicates whether to send to all devices registered under your app's Huawei Android platform. | [optional]
**IsAnyWeb** | **bool?** | Indicates whether to send to all subscribed web browser users, including Chrome, Firefox, and Safari. You may use this instead as a combined flag instead of separately enabling isChromeWeb, isFirefox, and isSafari, though the three options are equivalent to this one. | [optional]
Expand Down
7 changes: 3 additions & 4 deletions src/OneSignalApi/Model/Notification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected Notification() { }
/// <param name="includeAndroidRegIds">Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call .</param>
/// <param name="id">id.</param>
/// <param name="name">Required for SMS Messages. An identifier for tracking message within the OneSignal dashboard or export analytics. Not shown to end user..</param>
/// <param name="isIos">Indicates whether to send to all devices registered under your app&#39;s Apple iOS platform. (default to true).</param>
/// <param name="isIos">Indicates whether to send to all devices registered under your app&#39;s Apple iOS platform..</param>
/// <param name="isAndroid">Indicates whether to send to all devices registered under your app&#39;s Google Android platform..</param>
/// <param name="isHuawei">Indicates whether to send to all devices registered under your app&#39;s Huawei Android platform..</param>
/// <param name="isAnyWeb">Indicates whether to send to all subscribed web browser users, including Chrome, Firefox, and Safari. You may use this instead as a combined flag instead of separately enabling isChromeWeb, isFirefox, and isSafari, though the three options are equivalent to this one. .</param>
Expand Down Expand Up @@ -186,7 +186,7 @@ protected Notification() { }
/// <param name="emailFromAddress">Channel: Email The email address the email is from. If not specified, will default to \&quot;from email\&quot; set in the OneSignal Dashboard Email Settings. .</param>
/// <param name="smsFrom">Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. .</param>
/// <param name="smsMediaUrls">Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. .</param>
public Notification(List<string> includedSegments = default(List<string>), List<string> excludedSegments = default(List<string>), string lastSession = default(string), string firstSession = default(string), string sessionCount = default(string), string sessionTime = default(string), string amountSpent = default(string), string boughtSku = default(string), string tag = default(string), string language = default(string), string appVersion = default(string), string location = default(string), string email = default(string), string country = default(string), List<string> includePlayerIds = default(List<string>), List<string> includeExternalUserIds = default(List<string>), List<string> includeEmailTokens = default(List<string>), List<string> includePhoneNumbers = default(List<string>), List<string> includeIosTokens = default(List<string>), List<string> includeWpWnsUris = default(List<string>), List<string> includeAmazonRegIds = default(List<string>), List<string> includeChromeRegIds = default(List<string>), List<string> includeChromeWebRegIds = default(List<string>), List<string> includeAndroidRegIds = default(List<string>), string id = default(string), string name = default(string), bool? isIos = true, bool? isAndroid = default(bool?), bool? isHuawei = default(bool?), bool? isAnyWeb = default(bool?), bool? isChromeWeb = default(bool?), bool? isFirefox = default(bool?), bool? isSafari = default(bool?), bool? isWPWNS = default(bool?), bool? isAdm = default(bool?), bool? isChrome = default(bool?), string channelForExternalUserIds = default(string), string appId = default(string), string externalId = default(string), StringMap contents = default(StringMap), StringMap headings = default(StringMap), StringMap subtitle = default(StringMap), Object data = default(Object), string huaweiMsgType = default(string), string url = default(string), string webUrl = default(string), string appUrl = default(string), Object iosAttachments = default(Object), string templateId = default(string), bool? contentAvailable = default(bool?), bool mutableContent = default(bool), string targetContentIdentifier = default(string), string bigPicture = default(string), string huaweiBigPicture = default(string), string admBigPicture = default(string), string chromeBigPicture = default(string), string chromeWebImage = default(string), List<Button> buttons = default(List<Button>), List<Button> webButtons = default(List<Button>), string iosCategory = default(string), string androidChannelId = default(string), string huaweiChannelId = default(string), string existingAndroidChannelId = default(string), string huaweiExistingChannelId = default(string), NotificationAllOfAndroidBackgroundLayout androidBackgroundLayout = default(NotificationAllOfAndroidBackgroundLayout), string smallIcon = default(string), string huaweiSmallIcon = default(string), string largeIcon = default(string), string huaweiLargeIcon = default(string), string admSmallIcon = default(string), string admLargeIcon = default(string), string chromeWebIcon = default(string), string chromeWebBadge = default(string), string firefoxIcon = default(string), string chromeIcon = default(string), string iosSound = default(string), string androidSound = default(string), string huaweiSound = default(string), string admSound = default(string), string wpWnsSound = default(string), string androidLedColor = default(string), string huaweiLedColor = default(string), string androidAccentColor = default(string), string huaweiAccentColor = default(string), int? androidVisibility = default(int?), int? huaweiVisibility = default(int?), string iosBadgeType = default(string), int? iosBadgeCount = default(int?), string collapseId = default(string), string webPushTopic = default(string), Object apnsAlert = default(Object), DateTime sendAfter = default(DateTime), string delayedOption = default(string), string deliveryTimeOfDay = default(string), int? ttl = default(int?), int? priority = default(int?), string apnsPushTypeOverride = default(string), string throttleRatePerMinute = default(string), string androidGroup = default(string), string androidGroupMessage = default(string), string admGroup = default(string), Object admGroupMessage = default(Object), string threadId = default(string), string summaryArg = default(string), int summaryArgCount = default(int), string emailSubject = default(string), string emailBody = default(string), string emailFromName = default(string), string emailFromAddress = default(string), string smsFrom = default(string), List<string> smsMediaUrls = default(List<string>))
public Notification(List<string> includedSegments = default(List<string>), List<string> excludedSegments = default(List<string>), string lastSession = default(string), string firstSession = default(string), string sessionCount = default(string), string sessionTime = default(string), string amountSpent = default(string), string boughtSku = default(string), string tag = default(string), string language = default(string), string appVersion = default(string), string location = default(string), string email = default(string), string country = default(string), List<string> includePlayerIds = default(List<string>), List<string> includeExternalUserIds = default(List<string>), List<string> includeEmailTokens = default(List<string>), List<string> includePhoneNumbers = default(List<string>), List<string> includeIosTokens = default(List<string>), List<string> includeWpWnsUris = default(List<string>), List<string> includeAmazonRegIds = default(List<string>), List<string> includeChromeRegIds = default(List<string>), List<string> includeChromeWebRegIds = default(List<string>), List<string> includeAndroidRegIds = default(List<string>), string id = default(string), string name = default(string), bool? isIos = default(bool?), bool? isAndroid = default(bool?), bool? isHuawei = default(bool?), bool? isAnyWeb = default(bool?), bool? isChromeWeb = default(bool?), bool? isFirefox = default(bool?), bool? isSafari = default(bool?), bool? isWPWNS = default(bool?), bool? isAdm = default(bool?), bool? isChrome = default(bool?), string channelForExternalUserIds = default(string), string appId = default(string), string externalId = default(string), StringMap contents = default(StringMap), StringMap headings = default(StringMap), StringMap subtitle = default(StringMap), Object data = default(Object), string huaweiMsgType = default(string), string url = default(string), string webUrl = default(string), string appUrl = default(string), Object iosAttachments = default(Object), string templateId = default(string), bool? contentAvailable = default(bool?), bool mutableContent = default(bool), string targetContentIdentifier = default(string), string bigPicture = default(string), string huaweiBigPicture = default(string), string admBigPicture = default(string), string chromeBigPicture = default(string), string chromeWebImage = default(string), List<Button> buttons = default(List<Button>), List<Button> webButtons = default(List<Button>), string iosCategory = default(string), string androidChannelId = default(string), string huaweiChannelId = default(string), string existingAndroidChannelId = default(string), string huaweiExistingChannelId = default(string), NotificationAllOfAndroidBackgroundLayout androidBackgroundLayout = default(NotificationAllOfAndroidBackgroundLayout), string smallIcon = default(string), string huaweiSmallIcon = default(string), string largeIcon = default(string), string huaweiLargeIcon = default(string), string admSmallIcon = default(string), string admLargeIcon = default(string), string chromeWebIcon = default(string), string chromeWebBadge = default(string), string firefoxIcon = default(string), string chromeIcon = default(string), string iosSound = default(string), string androidSound = default(string), string huaweiSound = default(string), string admSound = default(string), string wpWnsSound = default(string), string androidLedColor = default(string), string huaweiLedColor = default(string), string androidAccentColor = default(string), string huaweiAccentColor = default(string), int? androidVisibility = default(int?), int? huaweiVisibility = default(int?), string iosBadgeType = default(string), int? iosBadgeCount = default(int?), string collapseId = default(string), string webPushTopic = default(string), Object apnsAlert = default(Object), DateTime sendAfter = default(DateTime), string delayedOption = default(string), string deliveryTimeOfDay = default(string), int? ttl = default(int?), int? priority = default(int?), string apnsPushTypeOverride = default(string), string throttleRatePerMinute = default(string), string androidGroup = default(string), string androidGroupMessage = default(string), string admGroup = default(string), Object admGroupMessage = default(Object), string threadId = default(string), string summaryArg = default(string), int summaryArgCount = default(int), string emailSubject = default(string), string emailBody = default(string), string emailFromName = default(string), string emailFromAddress = default(string), string smsFrom = default(string), List<string> smsMediaUrls = default(List<string>))
{
// to ensure "appId" is required (not null)
if (appId == null)
Expand Down Expand Up @@ -220,8 +220,7 @@ protected Notification() { }
this.IncludeAndroidRegIds = includeAndroidRegIds;
this.Id = id;
this.Name = name;
// use default value if no "isIos" provided
this.IsIos = isIos ?? true;
this.IsIos = isIos;
this.IsAndroid = isAndroid;
this.IsHuawei = isHuawei;
this.IsAnyWeb = isAnyWeb;
Expand Down
Loading

0 comments on commit e20d875

Please sign in to comment.