first version
This commit is contained in:
815
model_schema_question_page_resp.go
Normal file
815
model_schema_question_page_resp.go
Normal file
@@ -0,0 +1,815 @@
|
||||
/*
|
||||
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 SchemaQuestionPageResp type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaQuestionPageResp{}
|
||||
|
||||
// SchemaQuestionPageResp struct for SchemaQuestionPageResp
|
||||
type SchemaQuestionPageResp struct {
|
||||
// answer information
|
||||
AcceptedAnswerId *string `json:"accepted_answer_id,omitempty"`
|
||||
AnswerCount *int32 `json:"answer_count,omitempty"`
|
||||
CollectionCount *int32 `json:"collection_count,omitempty"`
|
||||
CreatedAt *int32 `json:"created_at,omitempty"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
FollowCount *int32 `json:"follow_count,omitempty"`
|
||||
Id *string `json:"id,omitempty"`
|
||||
LastAnswerId *string `json:"last_answer_id,omitempty"`
|
||||
// operator information
|
||||
OperatedAt *int32 `json:"operated_at,omitempty"`
|
||||
OperationType *string `json:"operation_type,omitempty"`
|
||||
Operator *SchemaQuestionPageRespOperator `json:"operator,omitempty"`
|
||||
// 1: unpin, 2: pin
|
||||
Pin *int32 `json:"pin,omitempty"`
|
||||
// 0: show, 1: hide
|
||||
Show *int32 `json:"show,omitempty"`
|
||||
Status *int32 `json:"status,omitempty"`
|
||||
Tags []SchemaTagResp `json:"tags,omitempty"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
UniqueViewCount *int32 `json:"unique_view_count,omitempty"`
|
||||
UrlTitle *string `json:"url_title,omitempty"`
|
||||
// question statistical information
|
||||
ViewCount *int32 `json:"view_count,omitempty"`
|
||||
VoteCount *int32 `json:"vote_count,omitempty"`
|
||||
}
|
||||
|
||||
// NewSchemaQuestionPageResp instantiates a new SchemaQuestionPageResp 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 NewSchemaQuestionPageResp() *SchemaQuestionPageResp {
|
||||
this := SchemaQuestionPageResp{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaQuestionPageRespWithDefaults instantiates a new SchemaQuestionPageResp 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 NewSchemaQuestionPageRespWithDefaults() *SchemaQuestionPageResp {
|
||||
this := SchemaQuestionPageResp{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAcceptedAnswerId returns the AcceptedAnswerId field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetAcceptedAnswerId() string {
|
||||
if o == nil || IsNil(o.AcceptedAnswerId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.AcceptedAnswerId
|
||||
}
|
||||
|
||||
// GetAcceptedAnswerIdOk returns a tuple with the AcceptedAnswerId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetAcceptedAnswerIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.AcceptedAnswerId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.AcceptedAnswerId, true
|
||||
}
|
||||
|
||||
// HasAcceptedAnswerId returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasAcceptedAnswerId() bool {
|
||||
if o != nil && !IsNil(o.AcceptedAnswerId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAcceptedAnswerId gets a reference to the given string and assigns it to the AcceptedAnswerId field.
|
||||
func (o *SchemaQuestionPageResp) SetAcceptedAnswerId(v string) {
|
||||
o.AcceptedAnswerId = &v
|
||||
}
|
||||
|
||||
// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetAnswerCount() int32 {
|
||||
if o == nil || IsNil(o.AnswerCount) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.AnswerCount
|
||||
}
|
||||
|
||||
// GetAnswerCountOk returns a tuple with the AnswerCount field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetAnswerCountOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.AnswerCount) {
|
||||
return nil, false
|
||||
}
|
||||
return o.AnswerCount, true
|
||||
}
|
||||
|
||||
// HasAnswerCount returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasAnswerCount() bool {
|
||||
if o != nil && !IsNil(o.AnswerCount) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAnswerCount gets a reference to the given int32 and assigns it to the AnswerCount field.
|
||||
func (o *SchemaQuestionPageResp) SetAnswerCount(v int32) {
|
||||
o.AnswerCount = &v
|
||||
}
|
||||
|
||||
// GetCollectionCount returns the CollectionCount field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetCollectionCount() int32 {
|
||||
if o == nil || IsNil(o.CollectionCount) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.CollectionCount
|
||||
}
|
||||
|
||||
// GetCollectionCountOk returns a tuple with the CollectionCount field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetCollectionCountOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.CollectionCount) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CollectionCount, true
|
||||
}
|
||||
|
||||
// HasCollectionCount returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasCollectionCount() bool {
|
||||
if o != nil && !IsNil(o.CollectionCount) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCollectionCount gets a reference to the given int32 and assigns it to the CollectionCount field.
|
||||
func (o *SchemaQuestionPageResp) SetCollectionCount(v int32) {
|
||||
o.CollectionCount = &v
|
||||
}
|
||||
|
||||
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetCreatedAt(v int32) {
|
||||
o.CreatedAt = &v
|
||||
}
|
||||
|
||||
// GetDescription returns the Description field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetDescription() string {
|
||||
if o == nil || IsNil(o.Description) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Description
|
||||
}
|
||||
|
||||
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetDescriptionOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Description) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Description, true
|
||||
}
|
||||
|
||||
// HasDescription returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasDescription() bool {
|
||||
if o != nil && !IsNil(o.Description) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
||||
func (o *SchemaQuestionPageResp) SetDescription(v string) {
|
||||
o.Description = &v
|
||||
}
|
||||
|
||||
// GetFollowCount returns the FollowCount field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetFollowCount() int32 {
|
||||
if o == nil || IsNil(o.FollowCount) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.FollowCount
|
||||
}
|
||||
|
||||
// GetFollowCountOk returns a tuple with the FollowCount field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetFollowCountOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.FollowCount) {
|
||||
return nil, false
|
||||
}
|
||||
return o.FollowCount, true
|
||||
}
|
||||
|
||||
// HasFollowCount returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasFollowCount() bool {
|
||||
if o != nil && !IsNil(o.FollowCount) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetFollowCount gets a reference to the given int32 and assigns it to the FollowCount field.
|
||||
func (o *SchemaQuestionPageResp) SetFollowCount(v int32) {
|
||||
o.FollowCount = &v
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetId() string {
|
||||
if o == nil || IsNil(o.Id) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Id
|
||||
}
|
||||
|
||||
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Id) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Id, true
|
||||
}
|
||||
|
||||
// HasId returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasId() bool {
|
||||
if o != nil && !IsNil(o.Id) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetId gets a reference to the given string and assigns it to the Id field.
|
||||
func (o *SchemaQuestionPageResp) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetLastAnswerId returns the LastAnswerId field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetLastAnswerId() string {
|
||||
if o == nil || IsNil(o.LastAnswerId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.LastAnswerId
|
||||
}
|
||||
|
||||
// GetLastAnswerIdOk returns a tuple with the LastAnswerId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetLastAnswerIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.LastAnswerId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.LastAnswerId, true
|
||||
}
|
||||
|
||||
// HasLastAnswerId returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasLastAnswerId() bool {
|
||||
if o != nil && !IsNil(o.LastAnswerId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetLastAnswerId gets a reference to the given string and assigns it to the LastAnswerId field.
|
||||
func (o *SchemaQuestionPageResp) SetLastAnswerId(v string) {
|
||||
o.LastAnswerId = &v
|
||||
}
|
||||
|
||||
// GetOperatedAt returns the OperatedAt field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetOperatedAt() int32 {
|
||||
if o == nil || IsNil(o.OperatedAt) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.OperatedAt
|
||||
}
|
||||
|
||||
// GetOperatedAtOk returns a tuple with the OperatedAt field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetOperatedAtOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.OperatedAt) {
|
||||
return nil, false
|
||||
}
|
||||
return o.OperatedAt, true
|
||||
}
|
||||
|
||||
// HasOperatedAt returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasOperatedAt() bool {
|
||||
if o != nil && !IsNil(o.OperatedAt) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOperatedAt gets a reference to the given int32 and assigns it to the OperatedAt field.
|
||||
func (o *SchemaQuestionPageResp) SetOperatedAt(v int32) {
|
||||
o.OperatedAt = &v
|
||||
}
|
||||
|
||||
// GetOperationType returns the OperationType field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetOperationType() string {
|
||||
if o == nil || IsNil(o.OperationType) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OperationType
|
||||
}
|
||||
|
||||
// GetOperationTypeOk returns a tuple with the OperationType field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetOperationTypeOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.OperationType) {
|
||||
return nil, false
|
||||
}
|
||||
return o.OperationType, true
|
||||
}
|
||||
|
||||
// HasOperationType returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasOperationType() bool {
|
||||
if o != nil && !IsNil(o.OperationType) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOperationType gets a reference to the given string and assigns it to the OperationType field.
|
||||
func (o *SchemaQuestionPageResp) SetOperationType(v string) {
|
||||
o.OperationType = &v
|
||||
}
|
||||
|
||||
// GetOperator returns the Operator field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetOperator() SchemaQuestionPageRespOperator {
|
||||
if o == nil || IsNil(o.Operator) {
|
||||
var ret SchemaQuestionPageRespOperator
|
||||
return ret
|
||||
}
|
||||
return *o.Operator
|
||||
}
|
||||
|
||||
// GetOperatorOk returns a tuple with the Operator field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetOperatorOk() (*SchemaQuestionPageRespOperator, bool) {
|
||||
if o == nil || IsNil(o.Operator) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Operator, true
|
||||
}
|
||||
|
||||
// HasOperator returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasOperator() bool {
|
||||
if o != nil && !IsNil(o.Operator) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOperator gets a reference to the given SchemaQuestionPageRespOperator and assigns it to the Operator field.
|
||||
func (o *SchemaQuestionPageResp) SetOperator(v SchemaQuestionPageRespOperator) {
|
||||
o.Operator = &v
|
||||
}
|
||||
|
||||
// GetPin returns the Pin field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetPin() int32 {
|
||||
if o == nil || IsNil(o.Pin) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Pin
|
||||
}
|
||||
|
||||
// GetPinOk returns a tuple with the Pin field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetPinOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Pin) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Pin, true
|
||||
}
|
||||
|
||||
// HasPin returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasPin() bool {
|
||||
if o != nil && !IsNil(o.Pin) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetPin gets a reference to the given int32 and assigns it to the Pin field.
|
||||
func (o *SchemaQuestionPageResp) SetPin(v int32) {
|
||||
o.Pin = &v
|
||||
}
|
||||
|
||||
// GetShow returns the Show field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetShow() int32 {
|
||||
if o == nil || IsNil(o.Show) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Show
|
||||
}
|
||||
|
||||
// GetShowOk returns a tuple with the Show field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetShowOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Show) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Show, true
|
||||
}
|
||||
|
||||
// HasShow returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasShow() bool {
|
||||
if o != nil && !IsNil(o.Show) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetShow gets a reference to the given int32 and assigns it to the Show field.
|
||||
func (o *SchemaQuestionPageResp) SetShow(v int32) {
|
||||
o.Show = &v
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetStatus() int32 {
|
||||
if o == nil || IsNil(o.Status) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Status
|
||||
}
|
||||
|
||||
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetStatusOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Status) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Status, true
|
||||
}
|
||||
|
||||
// HasStatus returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasStatus() bool {
|
||||
if o != nil && !IsNil(o.Status) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetStatus gets a reference to the given int32 and assigns it to the Status field.
|
||||
func (o *SchemaQuestionPageResp) SetStatus(v int32) {
|
||||
o.Status = &v
|
||||
}
|
||||
|
||||
// GetTags returns the Tags field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetTags() []SchemaTagResp {
|
||||
if o == nil || IsNil(o.Tags) {
|
||||
var ret []SchemaTagResp
|
||||
return ret
|
||||
}
|
||||
return o.Tags
|
||||
}
|
||||
|
||||
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetTagsOk() ([]SchemaTagResp, bool) {
|
||||
if o == nil || IsNil(o.Tags) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Tags, true
|
||||
}
|
||||
|
||||
// HasTags returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasTags() bool {
|
||||
if o != nil && !IsNil(o.Tags) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTags gets a reference to the given []SchemaTagResp and assigns it to the Tags field.
|
||||
func (o *SchemaQuestionPageResp) SetTags(v []SchemaTagResp) {
|
||||
o.Tags = v
|
||||
}
|
||||
|
||||
// GetTitle returns the Title field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetTitle(v string) {
|
||||
o.Title = &v
|
||||
}
|
||||
|
||||
// GetUniqueViewCount returns the UniqueViewCount field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetUniqueViewCount() int32 {
|
||||
if o == nil || IsNil(o.UniqueViewCount) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.UniqueViewCount
|
||||
}
|
||||
|
||||
// GetUniqueViewCountOk returns a tuple with the UniqueViewCount field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetUniqueViewCountOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.UniqueViewCount) {
|
||||
return nil, false
|
||||
}
|
||||
return o.UniqueViewCount, true
|
||||
}
|
||||
|
||||
// HasUniqueViewCount returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasUniqueViewCount() bool {
|
||||
if o != nil && !IsNil(o.UniqueViewCount) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUniqueViewCount gets a reference to the given int32 and assigns it to the UniqueViewCount field.
|
||||
func (o *SchemaQuestionPageResp) SetUniqueViewCount(v int32) {
|
||||
o.UniqueViewCount = &v
|
||||
}
|
||||
|
||||
// GetUrlTitle returns the UrlTitle field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetUrlTitle(v string) {
|
||||
o.UrlTitle = &v
|
||||
}
|
||||
|
||||
// GetViewCount returns the ViewCount field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetViewCount() int32 {
|
||||
if o == nil || IsNil(o.ViewCount) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.ViewCount
|
||||
}
|
||||
|
||||
// GetViewCountOk returns a tuple with the ViewCount field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetViewCountOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.ViewCount) {
|
||||
return nil, false
|
||||
}
|
||||
return o.ViewCount, true
|
||||
}
|
||||
|
||||
// HasViewCount returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasViewCount() bool {
|
||||
if o != nil && !IsNil(o.ViewCount) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetViewCount gets a reference to the given int32 and assigns it to the ViewCount field.
|
||||
func (o *SchemaQuestionPageResp) SetViewCount(v int32) {
|
||||
o.ViewCount = &v
|
||||
}
|
||||
|
||||
// GetVoteCount returns the VoteCount field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionPageResp) GetVoteCount() int32 {
|
||||
if o == nil || IsNil(o.VoteCount) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.VoteCount
|
||||
}
|
||||
|
||||
// GetVoteCountOk returns a tuple with the VoteCount field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionPageResp) GetVoteCountOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.VoteCount) {
|
||||
return nil, false
|
||||
}
|
||||
return o.VoteCount, true
|
||||
}
|
||||
|
||||
// HasVoteCount returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionPageResp) HasVoteCount() bool {
|
||||
if o != nil && !IsNil(o.VoteCount) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetVoteCount gets a reference to the given int32 and assigns it to the VoteCount field.
|
||||
func (o *SchemaQuestionPageResp) SetVoteCount(v int32) {
|
||||
o.VoteCount = &v
|
||||
}
|
||||
|
||||
func (o SchemaQuestionPageResp) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaQuestionPageResp) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.AcceptedAnswerId) {
|
||||
toSerialize["accepted_answer_id"] = o.AcceptedAnswerId
|
||||
}
|
||||
if !IsNil(o.AnswerCount) {
|
||||
toSerialize["answer_count"] = o.AnswerCount
|
||||
}
|
||||
if !IsNil(o.CollectionCount) {
|
||||
toSerialize["collection_count"] = o.CollectionCount
|
||||
}
|
||||
if !IsNil(o.CreatedAt) {
|
||||
toSerialize["created_at"] = o.CreatedAt
|
||||
}
|
||||
if !IsNil(o.Description) {
|
||||
toSerialize["description"] = o.Description
|
||||
}
|
||||
if !IsNil(o.FollowCount) {
|
||||
toSerialize["follow_count"] = o.FollowCount
|
||||
}
|
||||
if !IsNil(o.Id) {
|
||||
toSerialize["id"] = o.Id
|
||||
}
|
||||
if !IsNil(o.LastAnswerId) {
|
||||
toSerialize["last_answer_id"] = o.LastAnswerId
|
||||
}
|
||||
if !IsNil(o.OperatedAt) {
|
||||
toSerialize["operated_at"] = o.OperatedAt
|
||||
}
|
||||
if !IsNil(o.OperationType) {
|
||||
toSerialize["operation_type"] = o.OperationType
|
||||
}
|
||||
if !IsNil(o.Operator) {
|
||||
toSerialize["operator"] = o.Operator
|
||||
}
|
||||
if !IsNil(o.Pin) {
|
||||
toSerialize["pin"] = o.Pin
|
||||
}
|
||||
if !IsNil(o.Show) {
|
||||
toSerialize["show"] = o.Show
|
||||
}
|
||||
if !IsNil(o.Status) {
|
||||
toSerialize["status"] = o.Status
|
||||
}
|
||||
if !IsNil(o.Tags) {
|
||||
toSerialize["tags"] = o.Tags
|
||||
}
|
||||
if !IsNil(o.Title) {
|
||||
toSerialize["title"] = o.Title
|
||||
}
|
||||
if !IsNil(o.UniqueViewCount) {
|
||||
toSerialize["unique_view_count"] = o.UniqueViewCount
|
||||
}
|
||||
if !IsNil(o.UrlTitle) {
|
||||
toSerialize["url_title"] = o.UrlTitle
|
||||
}
|
||||
if !IsNil(o.ViewCount) {
|
||||
toSerialize["view_count"] = o.ViewCount
|
||||
}
|
||||
if !IsNil(o.VoteCount) {
|
||||
toSerialize["vote_count"] = o.VoteCount
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaQuestionPageResp struct {
|
||||
value *SchemaQuestionPageResp
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaQuestionPageResp) Get() *SchemaQuestionPageResp {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaQuestionPageResp) Set(val *SchemaQuestionPageResp) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaQuestionPageResp) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaQuestionPageResp) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaQuestionPageResp(val *SchemaQuestionPageResp) *NullableSchemaQuestionPageResp {
|
||||
return &NullableSchemaQuestionPageResp{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaQuestionPageResp) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaQuestionPageResp) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user