Skip to content

Fix NewPlayer function arguments #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions docs/Player.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion model_player.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.