Skip to content

Latest commit

 

History

History
213 lines (114 loc) · 5.53 KB

File metadata and controls

213 lines (114 loc) · 5.53 KB

CommentResponse

Properties

Name Type Description Notes
Content string Comment text content
Id int32
UserId int32
ResourceType string
ResourceId string
Context Pointer to NullableContext [optional]
CreatedAt time.Time
UpdatedAt time.Time

Methods

NewCommentResponse

func NewCommentResponse(content string, id int32, userId int32, resourceType string, resourceId string, createdAt time.Time, updatedAt time.Time, ) *CommentResponse

NewCommentResponse instantiates a new CommentResponse 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

NewCommentResponseWithDefaults

func NewCommentResponseWithDefaults() *CommentResponse

NewCommentResponseWithDefaults instantiates a new CommentResponse 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

GetContent

func (o *CommentResponse) GetContent() string

GetContent returns the Content field if non-nil, zero value otherwise.

GetContentOk

func (o *CommentResponse) GetContentOk() (*string, bool)

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

SetContent

func (o *CommentResponse) SetContent(v string)

SetContent sets Content field to given value.

GetId

func (o *CommentResponse) GetId() int32

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

GetIdOk

func (o *CommentResponse) 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 *CommentResponse) SetId(v int32)

SetId sets Id field to given value.

GetUserId

func (o *CommentResponse) GetUserId() int32

GetUserId returns the UserId field if non-nil, zero value otherwise.

GetUserIdOk

func (o *CommentResponse) GetUserIdOk() (*int32, bool)

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

SetUserId

func (o *CommentResponse) SetUserId(v int32)

SetUserId sets UserId field to given value.

GetResourceType

func (o *CommentResponse) GetResourceType() string

GetResourceType returns the ResourceType field if non-nil, zero value otherwise.

GetResourceTypeOk

func (o *CommentResponse) GetResourceTypeOk() (*string, bool)

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

SetResourceType

func (o *CommentResponse) SetResourceType(v string)

SetResourceType sets ResourceType field to given value.

GetResourceId

func (o *CommentResponse) GetResourceId() string

GetResourceId returns the ResourceId field if non-nil, zero value otherwise.

GetResourceIdOk

func (o *CommentResponse) GetResourceIdOk() (*string, bool)

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

SetResourceId

func (o *CommentResponse) SetResourceId(v string)

SetResourceId sets ResourceId field to given value.

GetContext

func (o *CommentResponse) GetContext() Context

GetContext returns the Context field if non-nil, zero value otherwise.

GetContextOk

func (o *CommentResponse) GetContextOk() (*Context, bool)

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

SetContext

func (o *CommentResponse) SetContext(v Context)

SetContext sets Context field to given value.

HasContext

func (o *CommentResponse) HasContext() bool

HasContext returns a boolean if a field has been set.

SetContextNil

func (o *CommentResponse) SetContextNil(b bool)

SetContextNil sets the value for Context to be an explicit nil

UnsetContext

func (o *CommentResponse) UnsetContext()

UnsetContext ensures that no value is present for Context, not even an explicit nil

GetCreatedAt

func (o *CommentResponse) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *CommentResponse) GetCreatedAtOk() (*time.Time, bool)

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

SetCreatedAt

func (o *CommentResponse) SetCreatedAt(v time.Time)

SetCreatedAt sets CreatedAt field to given value.

GetUpdatedAt

func (o *CommentResponse) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.

GetUpdatedAtOk

func (o *CommentResponse) GetUpdatedAtOk() (*time.Time, bool)

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

SetUpdatedAt

func (o *CommentResponse) SetUpdatedAt(v time.Time)

SetUpdatedAt sets UpdatedAt field to given value.

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