Skip to content

Latest commit

 

History

History
201 lines (110 loc) · 5.77 KB

CreateTwitterWebhook.md

File metadata and controls

201 lines (110 loc) · 5.77 KB

CreateTwitterWebhook

Properties

Name Type Description Notes
Whitelist Pointer to []string [optional]
Blacklist Pointer to []string [optional]
Subscriptions []string Get the available subscriptions with /meta/webhooks/twitter
Format string
PreviewLength Pointer to NullableInt32 [optional]
Callback string Discord Webhook URL

Methods

NewCreateTwitterWebhook

func NewCreateTwitterWebhook(subscriptions []string, format string, callback string, ) *CreateTwitterWebhook

NewCreateTwitterWebhook instantiates a new CreateTwitterWebhook object 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

NewCreateTwitterWebhookWithDefaults

func NewCreateTwitterWebhookWithDefaults() *CreateTwitterWebhook

NewCreateTwitterWebhookWithDefaults instantiates a new CreateTwitterWebhook object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetWhitelist

func (o *CreateTwitterWebhook) GetWhitelist() []string

GetWhitelist returns the Whitelist field if non-nil, zero value otherwise.

GetWhitelistOk

func (o *CreateTwitterWebhook) GetWhitelistOk() (*[]string, bool)

GetWhitelistOk returns a tuple with the Whitelist field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetWhitelist

func (o *CreateTwitterWebhook) SetWhitelist(v []string)

SetWhitelist sets Whitelist field to given value.

HasWhitelist

func (o *CreateTwitterWebhook) HasWhitelist() bool

HasWhitelist returns a boolean if a field has been set.

SetWhitelistNil

func (o *CreateTwitterWebhook) SetWhitelistNil(b bool)

SetWhitelistNil sets the value for Whitelist to be an explicit nil

UnsetWhitelist

func (o *CreateTwitterWebhook) UnsetWhitelist()

UnsetWhitelist ensures that no value is present for Whitelist, not even an explicit nil

GetBlacklist

func (o *CreateTwitterWebhook) GetBlacklist() []string

GetBlacklist returns the Blacklist field if non-nil, zero value otherwise.

GetBlacklistOk

func (o *CreateTwitterWebhook) GetBlacklistOk() (*[]string, bool)

GetBlacklistOk returns a tuple with the Blacklist field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBlacklist

func (o *CreateTwitterWebhook) SetBlacklist(v []string)

SetBlacklist sets Blacklist field to given value.

HasBlacklist

func (o *CreateTwitterWebhook) HasBlacklist() bool

HasBlacklist returns a boolean if a field has been set.

SetBlacklistNil

func (o *CreateTwitterWebhook) SetBlacklistNil(b bool)

SetBlacklistNil sets the value for Blacklist to be an explicit nil

UnsetBlacklist

func (o *CreateTwitterWebhook) UnsetBlacklist()

UnsetBlacklist ensures that no value is present for Blacklist, not even an explicit nil

GetSubscriptions

func (o *CreateTwitterWebhook) GetSubscriptions() []string

GetSubscriptions returns the Subscriptions field if non-nil, zero value otherwise.

GetSubscriptionsOk

func (o *CreateTwitterWebhook) GetSubscriptionsOk() (*[]string, bool)

GetSubscriptionsOk returns a tuple with the Subscriptions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSubscriptions

func (o *CreateTwitterWebhook) SetSubscriptions(v []string)

SetSubscriptions sets Subscriptions field to given value.

GetFormat

func (o *CreateTwitterWebhook) GetFormat() string

GetFormat returns the Format field if non-nil, zero value otherwise.

GetFormatOk

func (o *CreateTwitterWebhook) GetFormatOk() (*string, bool)

GetFormatOk returns a tuple with the Format field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFormat

func (o *CreateTwitterWebhook) SetFormat(v string)

SetFormat sets Format field to given value.

GetPreviewLength

func (o *CreateTwitterWebhook) GetPreviewLength() int32

GetPreviewLength returns the PreviewLength field if non-nil, zero value otherwise.

GetPreviewLengthOk

func (o *CreateTwitterWebhook) GetPreviewLengthOk() (*int32, bool)

GetPreviewLengthOk returns a tuple with the PreviewLength field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPreviewLength

func (o *CreateTwitterWebhook) SetPreviewLength(v int32)

SetPreviewLength sets PreviewLength field to given value.

HasPreviewLength

func (o *CreateTwitterWebhook) HasPreviewLength() bool

HasPreviewLength returns a boolean if a field has been set.

SetPreviewLengthNil

func (o *CreateTwitterWebhook) SetPreviewLengthNil(b bool)

SetPreviewLengthNil sets the value for PreviewLength to be an explicit nil

UnsetPreviewLength

func (o *CreateTwitterWebhook) UnsetPreviewLength()

UnsetPreviewLength ensures that no value is present for PreviewLength, not even an explicit nil

GetCallback

func (o *CreateTwitterWebhook) GetCallback() string

GetCallback returns the Callback field if non-nil, zero value otherwise.

GetCallbackOk

func (o *CreateTwitterWebhook) GetCallbackOk() (*string, bool)

GetCallbackOk returns a tuple with the Callback field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCallback

func (o *CreateTwitterWebhook) SetCallback(v string)

SetCallback sets Callback field to given value.

[Back to Model list] [Back to API list] [Back to README]