459 lines
13 KiB
Go
459 lines
13 KiB
Go
/*
|
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
|
|
API version: 1.0.0
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package answer_sdk
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the SchemaGetRankPersonalPageResp type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaGetRankPersonalPageResp{}
|
|
|
|
// SchemaGetRankPersonalPageResp struct for SchemaGetRankPersonalPageResp
|
|
type SchemaGetRankPersonalPageResp struct {
|
|
// answer id
|
|
AnswerId *string `json:"answer_id,omitempty"`
|
|
// content
|
|
Content *string `json:"content,omitempty"`
|
|
// create time
|
|
CreatedAt *int32 `json:"created_at,omitempty"`
|
|
// object id
|
|
ObjectId *string `json:"object_id,omitempty"`
|
|
// object type
|
|
ObjectType *string `json:"object_type,omitempty"`
|
|
// question id
|
|
QuestionId *string `json:"question_id,omitempty"`
|
|
// rank type
|
|
RankType *string `json:"rank_type,omitempty"`
|
|
// reputation
|
|
Reputation *int32 `json:"reputation,omitempty"`
|
|
// title
|
|
Title *string `json:"title,omitempty"`
|
|
// url title
|
|
UrlTitle *string `json:"url_title,omitempty"`
|
|
}
|
|
|
|
// NewSchemaGetRankPersonalPageResp instantiates a new SchemaGetRankPersonalPageResp 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 NewSchemaGetRankPersonalPageResp() *SchemaGetRankPersonalPageResp {
|
|
this := SchemaGetRankPersonalPageResp{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaGetRankPersonalPageRespWithDefaults instantiates a new SchemaGetRankPersonalPageResp 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 NewSchemaGetRankPersonalPageRespWithDefaults() *SchemaGetRankPersonalPageResp {
|
|
this := SchemaGetRankPersonalPageResp{}
|
|
return &this
|
|
}
|
|
|
|
// GetAnswerId returns the AnswerId field value if set, zero value otherwise.
|
|
func (o *SchemaGetRankPersonalPageResp) GetAnswerId() string {
|
|
if o == nil || IsNil(o.AnswerId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AnswerId
|
|
}
|
|
|
|
// GetAnswerIdOk returns a tuple with the AnswerId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) GetAnswerIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AnswerId) {
|
|
return nil, false
|
|
}
|
|
return o.AnswerId, true
|
|
}
|
|
|
|
// HasAnswerId returns a boolean if a field has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) HasAnswerId() bool {
|
|
if o != nil && !IsNil(o.AnswerId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAnswerId gets a reference to the given string and assigns it to the AnswerId field.
|
|
func (o *SchemaGetRankPersonalPageResp) SetAnswerId(v string) {
|
|
o.AnswerId = &v
|
|
}
|
|
|
|
// GetContent returns the Content field value if set, zero value otherwise.
|
|
func (o *SchemaGetRankPersonalPageResp) GetContent() string {
|
|
if o == nil || IsNil(o.Content) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Content
|
|
}
|
|
|
|
// GetContentOk returns a tuple with the Content field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) GetContentOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Content) {
|
|
return nil, false
|
|
}
|
|
return o.Content, true
|
|
}
|
|
|
|
// HasContent returns a boolean if a field has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) HasContent() bool {
|
|
if o != nil && !IsNil(o.Content) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetContent gets a reference to the given string and assigns it to the Content field.
|
|
func (o *SchemaGetRankPersonalPageResp) SetContent(v string) {
|
|
o.Content = &v
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *SchemaGetRankPersonalPageResp) GetCreatedAt() int32 {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.CreatedAt
|
|
}
|
|
|
|
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) GetCreatedAtOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedAt, true
|
|
}
|
|
|
|
// HasCreatedAt returns a boolean if a field has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) HasCreatedAt() bool {
|
|
if o != nil && !IsNil(o.CreatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field.
|
|
func (o *SchemaGetRankPersonalPageResp) SetCreatedAt(v int32) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetObjectId returns the ObjectId field value if set, zero value otherwise.
|
|
func (o *SchemaGetRankPersonalPageResp) GetObjectId() string {
|
|
if o == nil || IsNil(o.ObjectId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ObjectId
|
|
}
|
|
|
|
// GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) GetObjectIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ObjectId) {
|
|
return nil, false
|
|
}
|
|
return o.ObjectId, true
|
|
}
|
|
|
|
// HasObjectId returns a boolean if a field has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) HasObjectId() bool {
|
|
if o != nil && !IsNil(o.ObjectId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetObjectId gets a reference to the given string and assigns it to the ObjectId field.
|
|
func (o *SchemaGetRankPersonalPageResp) SetObjectId(v string) {
|
|
o.ObjectId = &v
|
|
}
|
|
|
|
// GetObjectType returns the ObjectType field value if set, zero value otherwise.
|
|
func (o *SchemaGetRankPersonalPageResp) GetObjectType() string {
|
|
if o == nil || IsNil(o.ObjectType) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ObjectType
|
|
}
|
|
|
|
// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) GetObjectTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ObjectType) {
|
|
return nil, false
|
|
}
|
|
return o.ObjectType, true
|
|
}
|
|
|
|
// HasObjectType returns a boolean if a field has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) HasObjectType() bool {
|
|
if o != nil && !IsNil(o.ObjectType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetObjectType gets a reference to the given string and assigns it to the ObjectType field.
|
|
func (o *SchemaGetRankPersonalPageResp) SetObjectType(v string) {
|
|
o.ObjectType = &v
|
|
}
|
|
|
|
// GetQuestionId returns the QuestionId field value if set, zero value otherwise.
|
|
func (o *SchemaGetRankPersonalPageResp) GetQuestionId() string {
|
|
if o == nil || IsNil(o.QuestionId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.QuestionId
|
|
}
|
|
|
|
// GetQuestionIdOk returns a tuple with the QuestionId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) GetQuestionIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.QuestionId) {
|
|
return nil, false
|
|
}
|
|
return o.QuestionId, true
|
|
}
|
|
|
|
// HasQuestionId returns a boolean if a field has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) HasQuestionId() bool {
|
|
if o != nil && !IsNil(o.QuestionId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetQuestionId gets a reference to the given string and assigns it to the QuestionId field.
|
|
func (o *SchemaGetRankPersonalPageResp) SetQuestionId(v string) {
|
|
o.QuestionId = &v
|
|
}
|
|
|
|
// GetRankType returns the RankType field value if set, zero value otherwise.
|
|
func (o *SchemaGetRankPersonalPageResp) GetRankType() string {
|
|
if o == nil || IsNil(o.RankType) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.RankType
|
|
}
|
|
|
|
// GetRankTypeOk returns a tuple with the RankType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) GetRankTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.RankType) {
|
|
return nil, false
|
|
}
|
|
return o.RankType, true
|
|
}
|
|
|
|
// HasRankType returns a boolean if a field has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) HasRankType() bool {
|
|
if o != nil && !IsNil(o.RankType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRankType gets a reference to the given string and assigns it to the RankType field.
|
|
func (o *SchemaGetRankPersonalPageResp) SetRankType(v string) {
|
|
o.RankType = &v
|
|
}
|
|
|
|
// GetReputation returns the Reputation field value if set, zero value otherwise.
|
|
func (o *SchemaGetRankPersonalPageResp) GetReputation() int32 {
|
|
if o == nil || IsNil(o.Reputation) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Reputation
|
|
}
|
|
|
|
// GetReputationOk returns a tuple with the Reputation field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) GetReputationOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Reputation) {
|
|
return nil, false
|
|
}
|
|
return o.Reputation, true
|
|
}
|
|
|
|
// HasReputation returns a boolean if a field has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) HasReputation() bool {
|
|
if o != nil && !IsNil(o.Reputation) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReputation gets a reference to the given int32 and assigns it to the Reputation field.
|
|
func (o *SchemaGetRankPersonalPageResp) SetReputation(v int32) {
|
|
o.Reputation = &v
|
|
}
|
|
|
|
// GetTitle returns the Title field value if set, zero value otherwise.
|
|
func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetTitle(v string) {
|
|
o.Title = &v
|
|
}
|
|
|
|
// GetUrlTitle returns the UrlTitle field value if set, zero value otherwise.
|
|
func (o *SchemaGetRankPersonalPageResp) GetUrlTitle() string {
|
|
if o == nil || IsNil(o.UrlTitle) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.UrlTitle
|
|
}
|
|
|
|
// GetUrlTitleOk returns a tuple with the UrlTitle field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) GetUrlTitleOk() (*string, bool) {
|
|
if o == nil || IsNil(o.UrlTitle) {
|
|
return nil, false
|
|
}
|
|
return o.UrlTitle, true
|
|
}
|
|
|
|
// HasUrlTitle returns a boolean if a field has been set.
|
|
func (o *SchemaGetRankPersonalPageResp) HasUrlTitle() bool {
|
|
if o != nil && !IsNil(o.UrlTitle) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUrlTitle gets a reference to the given string and assigns it to the UrlTitle field.
|
|
func (o *SchemaGetRankPersonalPageResp) SetUrlTitle(v string) {
|
|
o.UrlTitle = &v
|
|
}
|
|
|
|
func (o SchemaGetRankPersonalPageResp) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaGetRankPersonalPageResp) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.AnswerId) {
|
|
toSerialize["answer_id"] = o.AnswerId
|
|
}
|
|
if !IsNil(o.Content) {
|
|
toSerialize["content"] = o.Content
|
|
}
|
|
if !IsNil(o.CreatedAt) {
|
|
toSerialize["created_at"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.ObjectId) {
|
|
toSerialize["object_id"] = o.ObjectId
|
|
}
|
|
if !IsNil(o.ObjectType) {
|
|
toSerialize["object_type"] = o.ObjectType
|
|
}
|
|
if !IsNil(o.QuestionId) {
|
|
toSerialize["question_id"] = o.QuestionId
|
|
}
|
|
if !IsNil(o.RankType) {
|
|
toSerialize["rank_type"] = o.RankType
|
|
}
|
|
if !IsNil(o.Reputation) {
|
|
toSerialize["reputation"] = o.Reputation
|
|
}
|
|
if !IsNil(o.Title) {
|
|
toSerialize["title"] = o.Title
|
|
}
|
|
if !IsNil(o.UrlTitle) {
|
|
toSerialize["url_title"] = o.UrlTitle
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaGetRankPersonalPageResp struct {
|
|
value *SchemaGetRankPersonalPageResp
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaGetRankPersonalPageResp) Get() *SchemaGetRankPersonalPageResp {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaGetRankPersonalPageResp) Set(val *SchemaGetRankPersonalPageResp) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaGetRankPersonalPageResp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaGetRankPersonalPageResp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaGetRankPersonalPageResp(val *SchemaGetRankPersonalPageResp) *NullableSchemaGetRankPersonalPageResp {
|
|
return &NullableSchemaGetRankPersonalPageResp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaGetRankPersonalPageResp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaGetRankPersonalPageResp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|