first version
This commit is contained in:
171
model_schema_site_interface_resp.go
Normal file
171
model_schema_site_interface_resp.go
Normal file
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
answer api
|
||||
|
||||
API version: v0.0.1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the SchemaSiteInterfaceResp type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaSiteInterfaceResp{}
|
||||
|
||||
// SchemaSiteInterfaceResp struct for SchemaSiteInterfaceResp
|
||||
type SchemaSiteInterfaceResp struct {
|
||||
DefaultAvatar string `json:"default_avatar"`
|
||||
Language string `json:"language"`
|
||||
TimeZone string `json:"time_zone"`
|
||||
}
|
||||
|
||||
// NewSchemaSiteInterfaceResp instantiates a new SchemaSiteInterfaceResp 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 NewSchemaSiteInterfaceResp(defaultAvatar string, language string, timeZone string) *SchemaSiteInterfaceResp {
|
||||
this := SchemaSiteInterfaceResp{}
|
||||
this.DefaultAvatar = defaultAvatar
|
||||
this.Language = language
|
||||
this.TimeZone = timeZone
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaSiteInterfaceRespWithDefaults instantiates a new SchemaSiteInterfaceResp 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 NewSchemaSiteInterfaceRespWithDefaults() *SchemaSiteInterfaceResp {
|
||||
this := SchemaSiteInterfaceResp{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetDefaultAvatar returns the DefaultAvatar field value
|
||||
func (o *SchemaSiteInterfaceResp) GetDefaultAvatar() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.DefaultAvatar
|
||||
}
|
||||
|
||||
// GetDefaultAvatarOk returns a tuple with the DefaultAvatar field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaSiteInterfaceResp) GetDefaultAvatarOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.DefaultAvatar, true
|
||||
}
|
||||
|
||||
// SetDefaultAvatar sets field value
|
||||
func (o *SchemaSiteInterfaceResp) SetDefaultAvatar(v string) {
|
||||
o.DefaultAvatar = v
|
||||
}
|
||||
|
||||
// GetLanguage returns the Language field value
|
||||
func (o *SchemaSiteInterfaceResp) GetLanguage() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Language
|
||||
}
|
||||
|
||||
// GetLanguageOk returns a tuple with the Language field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaSiteInterfaceResp) GetLanguageOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Language, true
|
||||
}
|
||||
|
||||
// SetLanguage sets field value
|
||||
func (o *SchemaSiteInterfaceResp) SetLanguage(v string) {
|
||||
o.Language = v
|
||||
}
|
||||
|
||||
// GetTimeZone returns the TimeZone field value
|
||||
func (o *SchemaSiteInterfaceResp) GetTimeZone() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.TimeZone
|
||||
}
|
||||
|
||||
// GetTimeZoneOk returns a tuple with the TimeZone field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaSiteInterfaceResp) GetTimeZoneOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.TimeZone, true
|
||||
}
|
||||
|
||||
// SetTimeZone sets field value
|
||||
func (o *SchemaSiteInterfaceResp) SetTimeZone(v string) {
|
||||
o.TimeZone = v
|
||||
}
|
||||
|
||||
func (o SchemaSiteInterfaceResp) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaSiteInterfaceResp) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
toSerialize["default_avatar"] = o.DefaultAvatar
|
||||
toSerialize["language"] = o.Language
|
||||
toSerialize["time_zone"] = o.TimeZone
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaSiteInterfaceResp struct {
|
||||
value *SchemaSiteInterfaceResp
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaSiteInterfaceResp) Get() *SchemaSiteInterfaceResp {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaSiteInterfaceResp) Set(val *SchemaSiteInterfaceResp) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaSiteInterfaceResp) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaSiteInterfaceResp) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaSiteInterfaceResp(val *SchemaSiteInterfaceResp) *NullableSchemaSiteInterfaceResp {
|
||||
return &NullableSchemaSiteInterfaceResp{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaSiteInterfaceResp) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaSiteInterfaceResp) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user