diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 0060911..40aef88 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -352,7 +352,8 @@ import ( ) func main() { - player := *onesignal.NewPlayer(int32(123)) // Player | + appId := "APP_ID_STRING" + player := *onesignal.NewPlayer("", int32(123), &appId) // Player | configuration := onesignal.NewConfiguration() apiClient := onesignal.NewAPIClient(configuration) @@ -1580,7 +1581,8 @@ import ( func main() { playerId := "playerId_example" // string | Player's OneSignal ID - player := *onesignal.NewPlayer(int32(123)) // Player | + appId := "APP_ID_STRING" + player := *onesignal.NewPlayer("", int32(123), &appId) // Player | configuration := onesignal.NewConfiguration() apiClient := onesignal.NewAPIClient(configuration) diff --git a/docs/Player.md b/docs/Player.md index d547483..7ec05a9 100644 --- a/docs/Player.md +++ b/docs/Player.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | The device's OneSignal ID | [optional] [readonly] +**Id** | Pointer to **string** | The device's OneSignal ID | [readonly] **InvalidIdentifier** | Pointer to **bool** | If true, this is the equivalent of a user being Unsubscribed | [optional] [readonly] -**AppId** | Pointer to **string** | | [optional] +**AppId** | Pointer to **string** | | **DeviceType** | **int32** | Required The device's platform: 0 = iOS 1 = Android 2 = Amazon 3 = WindowsPhone (MPNS) 4 = Chrome Apps / Extensions 5 = Chrome Web Push 6 = Windows (WNS) 7 = Safari 8 = Firefox 9 = MacOS 10 = Alexa 11 = Email 13 = For Huawei App Gallery Builds SDK Setup. Not for Huawei Devices using FCM 14 = SMS | **ExternalUserId** | Pointer to **NullableString** | a custom user ID | [optional] **ExternalUserIdAuthHash** | Pointer to **string** | Only required if you have enabled Identity Verification and device_type is NOT 11 email. | [optional] @@ -36,7 +36,7 @@ Name | Type | Description | Notes ### NewPlayer -`func NewPlayer(deviceType int32, ) *Player` +`func NewPlayer(id string, deviceType int32, appId *string) *Player` NewPlayer instantiates a new Player object This constructor will assign default values to properties that have it defined, diff --git a/model_player.go b/model_player.go index b32deb2..7fcb4b7 100644 --- a/model_player.go +++ b/model_player.go @@ -79,7 +79,7 @@ type _Player Player // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPlayer(deviceType int32) *Player { +func NewPlayer(id string, deviceType int32, appId *string) *Player { this := Player{} this.DeviceType = deviceType return &this