Skip to main content
Glama

GameBrain Video Game Discovery

by ddsky
model_game_response_offers_inner.go7.3 kB
/* GameBrain API GameBrain API API version: 1.0.1 Contact: mail@gamebrain.co */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package gamebrain import ( "encoding/json" ) // checks if the GameResponseOffersInner type satisfies the MappedNullable interface at compile time var _ MappedNullable = &GameResponseOffersInner{} // GameResponseOffersInner struct for GameResponseOffersInner type GameResponseOffersInner struct { Price *GameResponseOffersInnerPrice `json:"price,omitempty"` StoreName *string `json:"store_name,omitempty"` Platform *string `json:"platform,omitempty"` Title *string `json:"title,omitempty"` Url *string `json:"url,omitempty"` } // NewGameResponseOffersInner instantiates a new GameResponseOffersInner 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 func NewGameResponseOffersInner() *GameResponseOffersInner { this := GameResponseOffersInner{} return &this } // NewGameResponseOffersInnerWithDefaults instantiates a new GameResponseOffersInner 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 func NewGameResponseOffersInnerWithDefaults() *GameResponseOffersInner { this := GameResponseOffersInner{} return &this } // GetPrice returns the Price field value if set, zero value otherwise. func (o *GameResponseOffersInner) GetPrice() GameResponseOffersInnerPrice { if o == nil || IsNil(o.Price) { var ret GameResponseOffersInnerPrice return ret } return *o.Price } // GetPriceOk returns a tuple with the Price field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *GameResponseOffersInner) GetPriceOk() (*GameResponseOffersInnerPrice, bool) { if o == nil || IsNil(o.Price) { return nil, false } return o.Price, true } // HasPrice returns a boolean if a field has been set. func (o *GameResponseOffersInner) HasPrice() bool { if o != nil && !IsNil(o.Price) { return true } return false } // SetPrice gets a reference to the given GameResponseOffersInnerPrice and assigns it to the Price field. func (o *GameResponseOffersInner) SetPrice(v GameResponseOffersInnerPrice) { o.Price = &v } // GetStoreName returns the StoreName field value if set, zero value otherwise. func (o *GameResponseOffersInner) GetStoreName() string { if o == nil || IsNil(o.StoreName) { var ret string return ret } return *o.StoreName } // GetStoreNameOk returns a tuple with the StoreName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *GameResponseOffersInner) GetStoreNameOk() (*string, bool) { if o == nil || IsNil(o.StoreName) { return nil, false } return o.StoreName, true } // HasStoreName returns a boolean if a field has been set. func (o *GameResponseOffersInner) HasStoreName() bool { if o != nil && !IsNil(o.StoreName) { return true } return false } // SetStoreName gets a reference to the given string and assigns it to the StoreName field. func (o *GameResponseOffersInner) SetStoreName(v string) { o.StoreName = &v } // GetPlatform returns the Platform field value if set, zero value otherwise. func (o *GameResponseOffersInner) GetPlatform() string { if o == nil || IsNil(o.Platform) { var ret string return ret } return *o.Platform } // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *GameResponseOffersInner) GetPlatformOk() (*string, bool) { if o == nil || IsNil(o.Platform) { return nil, false } return o.Platform, true } // HasPlatform returns a boolean if a field has been set. func (o *GameResponseOffersInner) HasPlatform() bool { if o != nil && !IsNil(o.Platform) { return true } return false } // SetPlatform gets a reference to the given string and assigns it to the Platform field. func (o *GameResponseOffersInner) SetPlatform(v string) { o.Platform = &v } // GetTitle returns the Title field value if set, zero value otherwise. func (o *GameResponseOffersInner) GetTitle() string { if o == nil || IsNil(o.Title) { var ret string return ret } return *o.Title } // GetTitleOk returns a tuple with the Title field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *GameResponseOffersInner) GetTitleOk() (*string, bool) { if o == nil || IsNil(o.Title) { return nil, false } return o.Title, true } // HasTitle returns a boolean if a field has been set. func (o *GameResponseOffersInner) HasTitle() bool { if o != nil && !IsNil(o.Title) { return true } return false } // SetTitle gets a reference to the given string and assigns it to the Title field. func (o *GameResponseOffersInner) SetTitle(v string) { o.Title = &v } // GetUrl returns the Url field value if set, zero value otherwise. func (o *GameResponseOffersInner) GetUrl() string { if o == nil || IsNil(o.Url) { var ret string return ret } return *o.Url } // GetUrlOk returns a tuple with the Url field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *GameResponseOffersInner) GetUrlOk() (*string, bool) { if o == nil || IsNil(o.Url) { return nil, false } return o.Url, true } // HasUrl returns a boolean if a field has been set. func (o *GameResponseOffersInner) HasUrl() bool { if o != nil && !IsNil(o.Url) { return true } return false } // SetUrl gets a reference to the given string and assigns it to the Url field. func (o *GameResponseOffersInner) SetUrl(v string) { o.Url = &v } func (o GameResponseOffersInner) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o GameResponseOffersInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Price) { toSerialize["price"] = o.Price } if !IsNil(o.StoreName) { toSerialize["store_name"] = o.StoreName } if !IsNil(o.Platform) { toSerialize["platform"] = o.Platform } if !IsNil(o.Title) { toSerialize["title"] = o.Title } if !IsNil(o.Url) { toSerialize["url"] = o.Url } return toSerialize, nil } type NullableGameResponseOffersInner struct { value *GameResponseOffersInner isSet bool } func (v NullableGameResponseOffersInner) Get() *GameResponseOffersInner { return v.value } func (v *NullableGameResponseOffersInner) Set(val *GameResponseOffersInner) { v.value = val v.isSet = true } func (v NullableGameResponseOffersInner) IsSet() bool { return v.isSet } func (v *NullableGameResponseOffersInner) Unset() { v.value = nil v.isSet = false } func NewNullableGameResponseOffersInner(val *GameResponseOffersInner) *NullableGameResponseOffersInner { return &NullableGameResponseOffersInner{value: val, isSet: true} } func (v NullableGameResponseOffersInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableGameResponseOffersInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ddsky/gamebrain-api-clients'

If you have feedback or need assistance with the MCP directory API, please join our Discord server