163 lines
5.3 KiB
Go
163 lines
5.3 KiB
Go
/*
|
|
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 AnswerAdminApiSiteinfoGeneralGet200Response type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &AnswerAdminApiSiteinfoGeneralGet200Response{}
|
|
|
|
// AnswerAdminApiSiteinfoGeneralGet200Response struct for AnswerAdminApiSiteinfoGeneralGet200Response
|
|
type AnswerAdminApiSiteinfoGeneralGet200Response struct {
|
|
Data *SchemaSiteGeneralResp `json:"data,omitempty"`
|
|
HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"`
|
|
}
|
|
|
|
// NewAnswerAdminApiSiteinfoGeneralGet200Response instantiates a new AnswerAdminApiSiteinfoGeneralGet200Response 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 NewAnswerAdminApiSiteinfoGeneralGet200Response() *AnswerAdminApiSiteinfoGeneralGet200Response {
|
|
this := AnswerAdminApiSiteinfoGeneralGet200Response{}
|
|
return &this
|
|
}
|
|
|
|
// NewAnswerAdminApiSiteinfoGeneralGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoGeneralGet200Response 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 NewAnswerAdminApiSiteinfoGeneralGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoGeneralGet200Response {
|
|
this := AnswerAdminApiSiteinfoGeneralGet200Response{}
|
|
return &this
|
|
}
|
|
|
|
// GetData returns the Data field value if set, zero value otherwise.
|
|
func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetData() SchemaSiteGeneralResp {
|
|
if o == nil || IsNil(o.Data) {
|
|
var ret SchemaSiteGeneralResp
|
|
return ret
|
|
}
|
|
return *o.Data
|
|
}
|
|
|
|
// GetDataOk returns a tuple with the Data field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetDataOk() (*SchemaSiteGeneralResp, bool) {
|
|
if o == nil || IsNil(o.Data) {
|
|
return nil, false
|
|
}
|
|
return o.Data, true
|
|
}
|
|
|
|
// HasData returns a boolean if a field has been set.
|
|
func (o *AnswerAdminApiSiteinfoGeneralGet200Response) HasData() bool {
|
|
if o != nil && !IsNil(o.Data) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetData gets a reference to the given SchemaSiteGeneralResp and assigns it to the Data field.
|
|
func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetData(v SchemaSiteGeneralResp) {
|
|
o.Data = &v
|
|
}
|
|
|
|
// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise.
|
|
func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetHandlerRespBody() HandlerRespBody {
|
|
if o == nil || IsNil(o.HandlerRespBody) {
|
|
var ret HandlerRespBody
|
|
return ret
|
|
}
|
|
return *o.HandlerRespBody
|
|
}
|
|
|
|
// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) {
|
|
if o == nil || IsNil(o.HandlerRespBody) {
|
|
return nil, false
|
|
}
|
|
return o.HandlerRespBody, true
|
|
}
|
|
|
|
// HasHandlerRespBody returns a boolean if a field has been set.
|
|
func (o *AnswerAdminApiSiteinfoGeneralGet200Response) HasHandlerRespBody() bool {
|
|
if o != nil && !IsNil(o.HandlerRespBody) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field.
|
|
func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetHandlerRespBody(v HandlerRespBody) {
|
|
o.HandlerRespBody = &v
|
|
}
|
|
|
|
func (o AnswerAdminApiSiteinfoGeneralGet200Response) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o AnswerAdminApiSiteinfoGeneralGet200Response) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Data) {
|
|
toSerialize["data"] = o.Data
|
|
}
|
|
if !IsNil(o.HandlerRespBody) {
|
|
toSerialize["handler.RespBody"] = o.HandlerRespBody
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableAnswerAdminApiSiteinfoGeneralGet200Response struct {
|
|
value *AnswerAdminApiSiteinfoGeneralGet200Response
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableAnswerAdminApiSiteinfoGeneralGet200Response) Get() *AnswerAdminApiSiteinfoGeneralGet200Response {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableAnswerAdminApiSiteinfoGeneralGet200Response) Set(val *AnswerAdminApiSiteinfoGeneralGet200Response) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableAnswerAdminApiSiteinfoGeneralGet200Response) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableAnswerAdminApiSiteinfoGeneralGet200Response) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableAnswerAdminApiSiteinfoGeneralGet200Response(val *AnswerAdminApiSiteinfoGeneralGet200Response) *NullableAnswerAdminApiSiteinfoGeneralGet200Response {
|
|
return &NullableAnswerAdminApiSiteinfoGeneralGet200Response{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableAnswerAdminApiSiteinfoGeneralGet200Response) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableAnswerAdminApiSiteinfoGeneralGet200Response) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|