Skip to content

Latest commit

 

History

History
415 lines (224 loc) · 9.74 KB

File metadata and controls

415 lines (224 loc) · 9.74 KB

HackerNewsItem

Properties

Name Type Description Notes
Id int32
Deleted Pointer to bool [optional]
Type Pointer to HackerNewsItemType [optional]
By Pointer to string [optional]
Time Pointer to int32 Unix epoch seconds [optional]
Text Pointer to string HTML text for comments, stories, polls, and jobs. [optional]
Dead Pointer to bool [optional]
Parent Pointer to int32 [optional]
Poll Pointer to int32 [optional]
Kids Pointer to []int32 [optional]
Url Pointer to string [optional]
Score Pointer to int32 [optional]
Title Pointer to string HTML title for stories, polls, and jobs. [optional]
Parts Pointer to []int32 [optional]
Descendants Pointer to int32 [optional]

Methods

NewHackerNewsItem

func NewHackerNewsItem(id int32, ) *HackerNewsItem

NewHackerNewsItem instantiates a new HackerNewsItem 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

NewHackerNewsItemWithDefaults

func NewHackerNewsItemWithDefaults() *HackerNewsItem

NewHackerNewsItemWithDefaults instantiates a new HackerNewsItem 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

GetId

func (o *HackerNewsItem) GetId() int32

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *HackerNewsItem) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *HackerNewsItem) SetId(v int32)

SetId sets Id field to given value.

GetDeleted

func (o *HackerNewsItem) GetDeleted() bool

GetDeleted returns the Deleted field if non-nil, zero value otherwise.

GetDeletedOk

func (o *HackerNewsItem) GetDeletedOk() (*bool, bool)

GetDeletedOk returns a tuple with the Deleted field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDeleted

func (o *HackerNewsItem) SetDeleted(v bool)

SetDeleted sets Deleted field to given value.

HasDeleted

func (o *HackerNewsItem) HasDeleted() bool

HasDeleted returns a boolean if a field has been set.

GetType

func (o *HackerNewsItem) GetType() HackerNewsItemType

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

func (o *HackerNewsItem) GetTypeOk() (*HackerNewsItemType, bool)

GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetType

func (o *HackerNewsItem) SetType(v HackerNewsItemType)

SetType sets Type field to given value.

HasType

func (o *HackerNewsItem) HasType() bool

HasType returns a boolean if a field has been set.

GetBy

func (o *HackerNewsItem) GetBy() string

GetBy returns the By field if non-nil, zero value otherwise.

GetByOk

func (o *HackerNewsItem) GetByOk() (*string, bool)

GetByOk returns a tuple with the By field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBy

func (o *HackerNewsItem) SetBy(v string)

SetBy sets By field to given value.

HasBy

func (o *HackerNewsItem) HasBy() bool

HasBy returns a boolean if a field has been set.

GetTime

func (o *HackerNewsItem) GetTime() int32

GetTime returns the Time field if non-nil, zero value otherwise.

GetTimeOk

func (o *HackerNewsItem) GetTimeOk() (*int32, bool)

GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTime

func (o *HackerNewsItem) SetTime(v int32)

SetTime sets Time field to given value.

HasTime

func (o *HackerNewsItem) HasTime() bool

HasTime returns a boolean if a field has been set.

GetText

func (o *HackerNewsItem) GetText() string

GetText returns the Text field if non-nil, zero value otherwise.

GetTextOk

func (o *HackerNewsItem) GetTextOk() (*string, bool)

GetTextOk returns a tuple with the Text field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetText

func (o *HackerNewsItem) SetText(v string)

SetText sets Text field to given value.

HasText

func (o *HackerNewsItem) HasText() bool

HasText returns a boolean if a field has been set.

GetDead

func (o *HackerNewsItem) GetDead() bool

GetDead returns the Dead field if non-nil, zero value otherwise.

GetDeadOk

func (o *HackerNewsItem) GetDeadOk() (*bool, bool)

GetDeadOk returns a tuple with the Dead field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDead

func (o *HackerNewsItem) SetDead(v bool)

SetDead sets Dead field to given value.

HasDead

func (o *HackerNewsItem) HasDead() bool

HasDead returns a boolean if a field has been set.

GetParent

func (o *HackerNewsItem) GetParent() int32

GetParent returns the Parent field if non-nil, zero value otherwise.

GetParentOk

func (o *HackerNewsItem) GetParentOk() (*int32, bool)

GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetParent

func (o *HackerNewsItem) SetParent(v int32)

SetParent sets Parent field to given value.

HasParent

func (o *HackerNewsItem) HasParent() bool

HasParent returns a boolean if a field has been set.

GetPoll

func (o *HackerNewsItem) GetPoll() int32

GetPoll returns the Poll field if non-nil, zero value otherwise.

GetPollOk

func (o *HackerNewsItem) GetPollOk() (*int32, bool)

GetPollOk returns a tuple with the Poll field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPoll

func (o *HackerNewsItem) SetPoll(v int32)

SetPoll sets Poll field to given value.

HasPoll

func (o *HackerNewsItem) HasPoll() bool

HasPoll returns a boolean if a field has been set.

GetKids

func (o *HackerNewsItem) GetKids() []int32

GetKids returns the Kids field if non-nil, zero value otherwise.

GetKidsOk

func (o *HackerNewsItem) GetKidsOk() (*[]int32, bool)

GetKidsOk returns a tuple with the Kids field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetKids

func (o *HackerNewsItem) SetKids(v []int32)

SetKids sets Kids field to given value.

HasKids

func (o *HackerNewsItem) HasKids() bool

HasKids returns a boolean if a field has been set.

GetUrl

func (o *HackerNewsItem) GetUrl() string

GetUrl returns the Url field if non-nil, zero value otherwise.

GetUrlOk

func (o *HackerNewsItem) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUrl

func (o *HackerNewsItem) SetUrl(v string)

SetUrl sets Url field to given value.

HasUrl

func (o *HackerNewsItem) HasUrl() bool

HasUrl returns a boolean if a field has been set.

GetScore

func (o *HackerNewsItem) GetScore() int32

GetScore returns the Score field if non-nil, zero value otherwise.

GetScoreOk

func (o *HackerNewsItem) GetScoreOk() (*int32, bool)

GetScoreOk returns a tuple with the Score field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetScore

func (o *HackerNewsItem) SetScore(v int32)

SetScore sets Score field to given value.

HasScore

func (o *HackerNewsItem) HasScore() bool

HasScore returns a boolean if a field has been set.

GetTitle

func (o *HackerNewsItem) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

GetTitleOk

func (o *HackerNewsItem) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTitle

func (o *HackerNewsItem) SetTitle(v string)

SetTitle sets Title field to given value.

HasTitle

func (o *HackerNewsItem) HasTitle() bool

HasTitle returns a boolean if a field has been set.

GetParts

func (o *HackerNewsItem) GetParts() []int32

GetParts returns the Parts field if non-nil, zero value otherwise.

GetPartsOk

func (o *HackerNewsItem) GetPartsOk() (*[]int32, bool)

GetPartsOk returns a tuple with the Parts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetParts

func (o *HackerNewsItem) SetParts(v []int32)

SetParts sets Parts field to given value.

HasParts

func (o *HackerNewsItem) HasParts() bool

HasParts returns a boolean if a field has been set.

GetDescendants

func (o *HackerNewsItem) GetDescendants() int32

GetDescendants returns the Descendants field if non-nil, zero value otherwise.

GetDescendantsOk

func (o *HackerNewsItem) GetDescendantsOk() (*int32, bool)

GetDescendantsOk returns a tuple with the Descendants field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDescendants

func (o *HackerNewsItem) SetDescendants(v int32)

SetDescendants sets Descendants field to given value.

HasDescendants

func (o *HackerNewsItem) HasDescendants() bool

HasDescendants returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]