diff --git a/bump.sh b/bump.sh new file mode 100755 index 0000000..1e64861 --- /dev/null +++ b/bump.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e + +if [ -z "$1" ]; then + echo "Usage: ./bump.sh " + echo "Example: ./bump.sh 0.0.2" + exit 1 +fi + +NEW_VERSION=$1 + +echo "Bumping version to $NEW_VERSION..." + +# Update config.json +jq ".packageVersion = \"$NEW_VERSION\"" config.json > config.json.tmp && mv config.json.tmp config.json + +echo "✓ Updated config.json packageVersion to $NEW_VERSION" +echo "Done! Version bumped to $NEW_VERSION" diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index c5e50c7..ce67b21 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -7,6 +7,9 @@ api_default.go api_public.go client.go configuration.go +docs/APIAuditLog.md +docs/APIComment.md +docs/APICommentBase.md docs/APICreateUserBadgeResponse.md docs/APIEmptyResponse.md docs/APIEmptySuccessResponse.md @@ -51,6 +54,9 @@ docs/CombineCommentsWithQuestionResults200Response.md docs/CombineQuestionResultsWithCommentsResponse.md docs/CommentData.md docs/CommentHTMLRenderingMode.md +docs/CommentLogData.md +docs/CommentLogEntry.md +docs/CommentLogType.md docs/CommentQuestionResultsRenderingType.md docs/CommentQuestionsRequired.md docs/CommentTextUpdateRequest.md @@ -85,6 +91,7 @@ docs/DeleteFeedPostPublic200ResponseAnyOf.md docs/DeletePageAPIResponse.md docs/DeleteSSOUserAPIResponse.md docs/DeleteSubscriptionAPIResponse.md +docs/DeletedCommentResultComment.md docs/EventLogEntry.md docs/FComment.md docs/FCommentMeta.md @@ -141,8 +148,6 @@ docs/GifRating.md docs/HeaderState.md docs/IgnoredResponse.md docs/ImageContentProfanityLevel.md -docs/ImportedAPIStatusFAILED.md -docs/ImportedAPIStatusSUCCESS.md docs/LiveEvent.md docs/LiveEventExtraInfo.md docs/LiveEventType.md @@ -155,16 +160,9 @@ docs/NotificationType.md docs/PatchDomainConfigParams.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md -docs/PickAPICommentUpdatableCommentFields.md -docs/PickFCommentAPICommentFieldsKeys.md -docs/PickFCommentAPICommentFieldsKeysMeta.md -docs/PickFCommentApprovedOrCommentHTML.md -docs/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md -docs/PickFCommentPublicCommentFieldsKeys.md -docs/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.md -docs/PickTenantAuditLogTenantAuditLogKeys.md docs/PinComment200Response.md docs/PubSubComment.md +docs/PubSubCommentBase.md docs/PubSubVote.md docs/PublicAPI.md docs/PublicAPIDeleteCommentResponse.md @@ -172,6 +170,7 @@ docs/PublicAPIGetCommentTextResponse.md docs/PublicAPISetCommentTextResponse.md docs/PublicBlockFromCommentParams.md docs/PublicComment.md +docs/PublicCommentBase.md docs/PublicFeedPostsResponse.md docs/PutSSOUserAPIResponse.md docs/QueryPredicate.md @@ -188,6 +187,8 @@ docs/ReactFeedPostResponse.md docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md docs/RecordStringStringOrNumberValue.md docs/RenderableUserNotification.md +docs/RepeatCommentCheckIgnoredReason.md +docs/RepeatCommentHandlingAction.md docs/ResetUserNotifications200Response.md docs/ResetUserNotificationsResponse.md docs/SORTDIR.md @@ -199,12 +200,14 @@ docs/SaveCommentsResponseWithPresence.md docs/SearchUsers200Response.md docs/SearchUsersResponse.md docs/SetCommentText200Response.md +docs/SetCommentTextResult.md docs/SizePreset.md docs/SortDirections.md docs/SpamRule.md docs/UnBlockCommentPublic200Response.md docs/UnBlockFromCommentParams.md docs/UnblockSuccess.md +docs/UpdatableCommentParams.md docs/UpdateAPIPageData.md docs/UpdateAPISSOUserData.md docs/UpdateDomainConfigParams.md @@ -224,7 +227,6 @@ docs/UserSessionInfo.md docs/VoteBodyParams.md docs/VoteComment200Response.md docs/VoteDeleteResponse.md -docs/VoteDeleteResponseStatus.md docs/VoteResponse.md docs/VoteResponseStatus.md docs/VoteResponseUser.md @@ -248,6 +250,9 @@ model_aggregation_request_sort.go model_aggregation_response.go model_aggregation_response_stats.go model_aggregation_value.go +model_api_audit_log.go +model_api_comment.go +model_api_comment_base.go model_api_create_user_badge_response.go model_api_empty_response.go model_api_empty_success_response.go @@ -276,6 +281,9 @@ model_combine_comments_with_question_results_200_response.go model_combine_question_results_with_comments_response.go model_comment_data.go model_comment_html_rendering_mode.go +model_comment_log_data.go +model_comment_log_entry.go +model_comment_log_type.go model_comment_question_results_rendering_type.go model_comment_questions_required.go model_comment_text_update_request.go @@ -309,6 +317,7 @@ model_delete_feed_post_public_200_response_any_of.go model_delete_page_api_response.go model_delete_sso_user_api_response.go model_delete_subscription_api_response.go +model_deleted_comment_result_comment.go model_event_log_entry.go model_f_comment.go model_f_comment_meta.go @@ -365,8 +374,6 @@ model_gif_rating.go model_header_state.go model_ignored_response.go model_image_content_profanity_level.go -model_imported_api_status_failed.go -model_imported_api_status_success.go model_live_event.go model_live_event_extra_info.go model_live_event_type.go @@ -379,22 +386,16 @@ model_notification_type.go model_patch_domain_config_params.go model_patch_page_api_response.go model_patch_sso_user_api_response.go -model_pick_api_comment_updatable_comment_fields_.go -model_pick_f_comment_api_comment_fields_keys_.go -model_pick_f_comment_api_comment_fields_keys__meta.go -model_pick_f_comment_approved_or_comment_html_.go -model_pick_f_comment_is_deleted_or_comment_html_or_commenter_name_or_user_id_.go -model_pick_f_comment_public_comment_fields_keys_.go -model_pick_omit_f_comment_date__public_comment_pub_sub_fields_keys_.go -model_pick_tenant_audit_log_tenant_audit_log_keys_.go model_pin_comment_200_response.go model_pub_sub_comment.go +model_pub_sub_comment_base.go model_pub_sub_vote.go model_public_api_delete_comment_response.go model_public_api_get_comment_text_response.go model_public_api_set_comment_text_response.go model_public_block_from_comment_params.go model_public_comment.go +model_public_comment_base.go model_public_feed_posts_response.go model_put_sso_user_api_response.go model_query_predicate.go @@ -411,6 +412,8 @@ model_react_feed_post_response.go model_record_string__before_string_or_null__after_string_or_null___value.go model_record_string_string_or_number__value.go model_renderable_user_notification.go +model_repeat_comment_check_ignored_reason.go +model_repeat_comment_handling_action.go model_reset_user_notifications_200_response.go model_reset_user_notifications_response.go model_save_comment_200_response.go @@ -420,6 +423,7 @@ model_save_comments_response_with_presence.go model_search_users_200_response.go model_search_users_response.go model_set_comment_text_200_response.go +model_set_comment_text_result.go model_size_preset.go model_sort_dir.go model_sort_directions.go @@ -428,6 +432,7 @@ model_sso_security_level.go model_un_block_comment_public_200_response.go model_un_block_from_comment_params.go model_unblock_success.go +model_updatable_comment_params.go model_update_api_page_data.go model_update_apisso_user_data.go model_update_domain_config_params.go @@ -447,7 +452,6 @@ model_user_session_info.go model_vote_body_params.go model_vote_comment_200_response.go model_vote_delete_response.go -model_vote_delete_response_status.go model_vote_response.go model_vote_response_status.go model_vote_response_user.go diff --git a/client/README.md b/client/README.md index 5c53500..2ea5b7d 100644 --- a/client/README.md +++ b/client/README.md @@ -164,6 +164,9 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [APIAuditLog](docs/APIAuditLog.md) + - [APIComment](docs/APIComment.md) + - [APICommentBase](docs/APICommentBase.md) - [APICreateUserBadgeResponse](docs/APICreateUserBadgeResponse.md) - [APIEmptyResponse](docs/APIEmptyResponse.md) - [APIEmptySuccessResponse](docs/APIEmptySuccessResponse.md) @@ -208,6 +211,9 @@ Class | Method | HTTP request | Description - [CombineQuestionResultsWithCommentsResponse](docs/CombineQuestionResultsWithCommentsResponse.md) - [CommentData](docs/CommentData.md) - [CommentHTMLRenderingMode](docs/CommentHTMLRenderingMode.md) + - [CommentLogData](docs/CommentLogData.md) + - [CommentLogEntry](docs/CommentLogEntry.md) + - [CommentLogType](docs/CommentLogType.md) - [CommentQuestionResultsRenderingType](docs/CommentQuestionResultsRenderingType.md) - [CommentQuestionsRequired](docs/CommentQuestionsRequired.md) - [CommentTextUpdateRequest](docs/CommentTextUpdateRequest.md) @@ -241,6 +247,7 @@ Class | Method | HTTP request | Description - [DeletePageAPIResponse](docs/DeletePageAPIResponse.md) - [DeleteSSOUserAPIResponse](docs/DeleteSSOUserAPIResponse.md) - [DeleteSubscriptionAPIResponse](docs/DeleteSubscriptionAPIResponse.md) + - [DeletedCommentResultComment](docs/DeletedCommentResultComment.md) - [EventLogEntry](docs/EventLogEntry.md) - [FComment](docs/FComment.md) - [FCommentMeta](docs/FCommentMeta.md) @@ -297,8 +304,6 @@ Class | Method | HTTP request | Description - [HeaderState](docs/HeaderState.md) - [IgnoredResponse](docs/IgnoredResponse.md) - [ImageContentProfanityLevel](docs/ImageContentProfanityLevel.md) - - [ImportedAPIStatusFAILED](docs/ImportedAPIStatusFAILED.md) - - [ImportedAPIStatusSUCCESS](docs/ImportedAPIStatusSUCCESS.md) - [LiveEvent](docs/LiveEvent.md) - [LiveEventExtraInfo](docs/LiveEventExtraInfo.md) - [LiveEventType](docs/LiveEventType.md) @@ -311,22 +316,16 @@ Class | Method | HTTP request | Description - [PatchDomainConfigParams](docs/PatchDomainConfigParams.md) - [PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - - [PickAPICommentUpdatableCommentFields](docs/PickAPICommentUpdatableCommentFields.md) - - [PickFCommentAPICommentFieldsKeys](docs/PickFCommentAPICommentFieldsKeys.md) - - [PickFCommentAPICommentFieldsKeysMeta](docs/PickFCommentAPICommentFieldsKeysMeta.md) - - [PickFCommentApprovedOrCommentHTML](docs/PickFCommentApprovedOrCommentHTML.md) - - [PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId](docs/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md) - - [PickFCommentPublicCommentFieldsKeys](docs/PickFCommentPublicCommentFieldsKeys.md) - - [PickOmitFCommentDatePublicCommentPubSubFieldsKeys](docs/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.md) - - [PickTenantAuditLogTenantAuditLogKeys](docs/PickTenantAuditLogTenantAuditLogKeys.md) - [PinComment200Response](docs/PinComment200Response.md) - [PubSubComment](docs/PubSubComment.md) + - [PubSubCommentBase](docs/PubSubCommentBase.md) - [PubSubVote](docs/PubSubVote.md) - [PublicAPIDeleteCommentResponse](docs/PublicAPIDeleteCommentResponse.md) - [PublicAPIGetCommentTextResponse](docs/PublicAPIGetCommentTextResponse.md) - [PublicAPISetCommentTextResponse](docs/PublicAPISetCommentTextResponse.md) - [PublicBlockFromCommentParams](docs/PublicBlockFromCommentParams.md) - [PublicComment](docs/PublicComment.md) + - [PublicCommentBase](docs/PublicCommentBase.md) - [PublicFeedPostsResponse](docs/PublicFeedPostsResponse.md) - [PutSSOUserAPIResponse](docs/PutSSOUserAPIResponse.md) - [QueryPredicate](docs/QueryPredicate.md) @@ -343,6 +342,8 @@ Class | Method | HTTP request | Description - [RecordStringBeforeStringOrNullAfterStringOrNullValue](docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - [RecordStringStringOrNumberValue](docs/RecordStringStringOrNumberValue.md) - [RenderableUserNotification](docs/RenderableUserNotification.md) + - [RepeatCommentCheckIgnoredReason](docs/RepeatCommentCheckIgnoredReason.md) + - [RepeatCommentHandlingAction](docs/RepeatCommentHandlingAction.md) - [ResetUserNotifications200Response](docs/ResetUserNotifications200Response.md) - [ResetUserNotificationsResponse](docs/ResetUserNotificationsResponse.md) - [SORTDIR](docs/SORTDIR.md) @@ -354,12 +355,14 @@ Class | Method | HTTP request | Description - [SearchUsers200Response](docs/SearchUsers200Response.md) - [SearchUsersResponse](docs/SearchUsersResponse.md) - [SetCommentText200Response](docs/SetCommentText200Response.md) + - [SetCommentTextResult](docs/SetCommentTextResult.md) - [SizePreset](docs/SizePreset.md) - [SortDirections](docs/SortDirections.md) - [SpamRule](docs/SpamRule.md) - [UnBlockCommentPublic200Response](docs/UnBlockCommentPublic200Response.md) - [UnBlockFromCommentParams](docs/UnBlockFromCommentParams.md) - [UnblockSuccess](docs/UnblockSuccess.md) + - [UpdatableCommentParams](docs/UpdatableCommentParams.md) - [UpdateAPIPageData](docs/UpdateAPIPageData.md) - [UpdateAPISSOUserData](docs/UpdateAPISSOUserData.md) - [UpdateDomainConfigParams](docs/UpdateDomainConfigParams.md) @@ -379,7 +382,6 @@ Class | Method | HTTP request | Description - [VoteBodyParams](docs/VoteBodyParams.md) - [VoteComment200Response](docs/VoteComment200Response.md) - [VoteDeleteResponse](docs/VoteDeleteResponse.md) - - [VoteDeleteResponseStatus](docs/VoteDeleteResponseStatus.md) - [VoteResponse](docs/VoteResponse.md) - [VoteResponseStatus](docs/VoteResponseStatus.md) - [VoteResponseUser](docs/VoteResponseUser.md) diff --git a/client/api/openapi.yaml b/client/api/openapi.yaml index d00f264..34d0049 100644 --- a/client/api/openapi.yaml +++ b/client/api/openapi.yaml @@ -3737,10 +3737,6 @@ components: - name - type type: object - ImportedAPIStatus.SUCCESS: - enum: - - success - type: string SearchUsersResponse: example: users: @@ -3757,7 +3753,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" users: items: $ref: "#/components/schemas/UserSearchResult" @@ -3766,10 +3762,6 @@ components: - status - users type: object - ImportedAPIStatus.FAILED: - enum: - - failed - type: string CommentHTMLRenderingMode: enum: - 0 @@ -3949,6 +3941,7 @@ components: hideAvatars: true defaultAvatarSrc: defaultAvatarSrc commentHTMLRenderingMode: 1.4658129805029452 + noNewRootComments: true maxCommentCharacterLength: 5 useSingleLineCommentInput: true allowedLanguages: @@ -4088,6 +4081,8 @@ components: type: integer readonly: type: boolean + noNewRootComments: + type: boolean requireSSO: type: boolean enableResizeHandle: @@ -4216,6 +4211,7 @@ components: hideAvatars: true defaultAvatarSrc: defaultAvatarSrc commentHTMLRenderingMode: 1.4658129805029452 + noNewRootComments: true maxCommentCharacterLength: 5 useSingleLineCommentInput: true allowedLanguages: @@ -4230,10 +4226,10 @@ components: translatedError: translatedError secondaryCode: secondaryCode maxCharacterLength: 6 - status: failed + status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.FAILED" + $ref: "#/components/schemas/APIStatus" reason: type: string code: @@ -4268,7 +4264,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" userIdsOnline: additionalProperties: type: boolean @@ -4475,7 +4471,7 @@ components: $ref: "#/components/schemas/RenderableUserNotification" type: array status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" required: - hasMore - isSubscribed @@ -4489,7 +4485,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" code: enum: - ignored-since-impersonated @@ -4505,7 +4501,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" count: format: int64 type: integer @@ -4532,7 +4528,7 @@ components: additionalProperties: false properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" NotificationType: properties: {} type: object @@ -4559,7 +4555,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" matchedCount: format: int64 type: integer @@ -4575,7 +4571,7 @@ components: additionalProperties: false properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" note: enum: - ignored-since-impersonated @@ -4645,7 +4641,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" required: - status type: object @@ -4907,7 +4903,7 @@ components: additionalProperties: false properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" feedPosts: items: $ref: "#/components/schemas/FeedPost" @@ -5380,7 +5376,7 @@ components: $ref: "#/components/schemas/EventLogEntry" type: array status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" required: - events - status @@ -5523,110 +5519,134 @@ components: - urlIdRaw - verificationId type: object - Pick_Omit_FComment.date_.PublicCommentPubSubFieldsKeys_: - description: "From T, pick a set of properties whose keys are in the union K" + UserId: + type: string + FDomain: + type: string + PubSubCommentBase: + additionalProperties: false properties: - date: {} _id: type: string tenantId: type: string - urlId: - type: string - url: - type: string - pageTitle: - type: string userId: - type: string - anonUserId: + allOf: + - $ref: "#/components/schemas/UserId" + nullable: true + urlId: type: string commenterName: type: string commenterLink: - type: string - comment: + nullable: true type: string commentHTML: type: string + comment: + type: string parentId: + nullable: true type: string votes: format: int32 + nullable: true type: integer votesUp: format: int32 + nullable: true type: integer votesDown: format: int32 + nullable: true type: integer - expireAt: - format: date-time - type: string verified: type: boolean - reviewed: - type: boolean avatarSrc: + nullable: true type: string - isSpam: - type: boolean hasImages: type: boolean hasLinks: type: boolean - hasCode: - type: boolean - approved: - type: boolean - locale: - type: string - isDeleted: - type: boolean - isDeletedUser: - type: boolean - isBannedUser: - type: boolean isByAdmin: type: boolean isByModerator: type: boolean isPinned: + nullable: true type: boolean isLocked: + nullable: true type: boolean - flagCount: - format: int32 - type: integer + displayLabel: + nullable: true + type: string rating: format: double + nullable: true type: number - displayLabel: - type: string badges: items: $ref: "#/components/schemas/CommentUserBadgeInfo" + nullable: true type: array - domain: + viewCount: + format: int64 + nullable: true + type: integer + isDeleted: + type: boolean + isDeletedUser: + type: boolean + isSpam: + type: boolean + anonUserId: + nullable: true type: string feedbackIds: items: type: string type: array + flagCount: + format: int32 + nullable: true + type: integer + domain: + allOf: + - $ref: "#/components/schemas/FDomain" + nullable: true + url: + type: string + pageTitle: + nullable: true + type: string + expireAt: + format: date-time + nullable: true + type: string + reviewed: + type: boolean + hasCode: + type: boolean + approved: + type: boolean + locale: + nullable: true + type: string + isBannedUser: + type: boolean groupIds: items: type: string + nullable: true type: array - viewCount: - format: int64 - type: integer required: - _id - approved - comment - commentHTML - commenterName - - date - locale - tenantId - url @@ -5635,7 +5655,7 @@ components: type: object PubSubComment: allOf: - - $ref: "#/components/schemas/Pick_Omit_FComment.date_.PublicCommentPubSubFieldsKeys_" + - $ref: "#/components/schemas/PubSubCommentBase" - properties: isLive: type: boolean @@ -5712,7 +5732,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" commentText: type: string sanitizedCommentText: @@ -5722,16 +5742,16 @@ components: - sanitizedCommentText - status type: object - Pick_FComment.approved-or-commentHTML_: - description: "From T, pick a set of properties whose keys are in the union K" + SetCommentTextResult: + additionalProperties: false example: commentHTML: commentHTML approved: true properties: - commentHTML: - type: string approved: type: boolean + commentHTML: + type: string required: - approved - commentHTML @@ -5744,9 +5764,9 @@ components: status: success properties: comment: - $ref: "#/components/schemas/Pick_FComment.approved-or-commentHTML_" + $ref: "#/components/schemas/SetCommentTextResult" status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" required: - comment - status @@ -5872,7 +5892,7 @@ components: isBlocked: type: boolean type: object - - $ref: "#/components/schemas/Pick_FComment.PublicCommentFieldsKeys_" + - $ref: "#/components/schemas/PublicCommentBase" example: date: 2000-01-23T04:56:07.000+00:00 editKey: editKey @@ -5885,6 +5905,7 @@ components: commenterLink: commenterLink isVotedDown: true commentHTML: commentHTML + approved: true isDeleted: true children: - null @@ -5903,7 +5924,7 @@ components: - feedbackIds anonUserId: anonUserId childCount: 1 - userId: userId + userId: "" isUnread: true parentId: parentId isFlagged: true @@ -5934,75 +5955,93 @@ components: _id: _id isSpam: true isByAdmin: true - Pick_FComment.PublicCommentFieldsKeys_: - description: "From T, pick a set of properties whose keys are in the union K" + PublicCommentBase: + additionalProperties: false properties: - date: - format: date-time - type: string _id: type: string userId: - type: string - anonUserId: - type: string + allOf: + - $ref: "#/components/schemas/UserId" + nullable: true commenterName: type: string commenterLink: + nullable: true type: string commentHTML: type: string parentId: + nullable: true + type: string + date: + format: date-time + nullable: true type: string votes: format: int32 + nullable: true type: integer votesUp: format: int32 + nullable: true type: integer votesDown: format: int32 + nullable: true type: integer verified: type: boolean avatarSrc: + nullable: true type: string - isSpam: - type: boolean hasImages: type: boolean - isDeleted: - type: boolean - isDeletedUser: - type: boolean isByAdmin: type: boolean isByModerator: type: boolean isPinned: + nullable: true type: boolean isLocked: + nullable: true type: boolean + displayLabel: + nullable: true + type: string rating: format: double + nullable: true type: number - displayLabel: - type: string badges: items: $ref: "#/components/schemas/CommentUserBadgeInfo" + nullable: true type: array + viewCount: + format: int64 + nullable: true + type: integer + isDeleted: + type: boolean + isDeletedUser: + type: boolean + isSpam: + type: boolean + anonUserId: + nullable: true + type: string feedbackIds: items: type: string type: array - viewCount: - format: int64 - type: integer requiresVerification: type: boolean editKey: type: string + approved: + type: boolean required: - _id - commentHTML @@ -6177,6 +6216,7 @@ components: hideAvatars: true defaultAvatarSrc: defaultAvatarSrc commentHTMLRenderingMode: 1.4658129805029452 + noNewRootComments: true maxCommentCharacterLength: 5 useSingleLineCommentInput: true allowedLanguages: @@ -6203,6 +6243,7 @@ components: commenterLink: commenterLink isVotedDown: true commentHTML: commentHTML + approved: true isDeleted: true children: - null @@ -6221,7 +6262,7 @@ components: - feedbackIds anonUserId: anonUserId childCount: 1 - userId: userId + userId: "" isUnread: true parentId: parentId isFlagged: true @@ -6263,6 +6304,7 @@ components: commenterLink: commenterLink isVotedDown: true commentHTML: commentHTML + approved: true isDeleted: true children: - null @@ -6281,7 +6323,7 @@ components: - feedbackIds anonUserId: anonUserId childCount: 1 - userId: userId + userId: "" isUnread: true parentId: parentId isFlagged: true @@ -6331,7 +6373,7 @@ components: additionalProperties: false properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" comment: $ref: "#/components/schemas/PublicComment" user: @@ -6368,6 +6410,7 @@ components: commenterLink: commenterLink isVotedDown: true commentHTML: commentHTML + approved: true isDeleted: true children: - null @@ -6386,7 +6429,7 @@ components: - feedbackIds anonUserId: anonUserId childCount: 1 - userId: userId + userId: "" isUnread: true parentId: parentId isFlagged: true @@ -6556,22 +6599,23 @@ components: - url - urlId type: object - Pick_FComment.isDeleted-or-commentHTML-or-commenterName-or-userId_: - description: "From T, pick a set of properties whose keys are in the union K" + DeletedCommentResultComment: + additionalProperties: false example: commentHTML: commentHTML isDeleted: true commenterName: commenterName userId: userId properties: - userId: + isDeleted: + type: boolean + commentHTML: type: string commenterName: type: string - commentHTML: + userId: + nullable: true type: string - isDeleted: - type: boolean required: - commentHTML - commenterName @@ -6587,11 +6631,11 @@ components: status: success properties: comment: - $ref: "#/components/schemas/Pick_FComment.isDeleted-or-commentHTML-or-commenterName-or-userId_" + $ref: "#/components/schemas/DeletedCommentResultComment" hardRemoved: type: boolean status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" required: - hardRemoved - status @@ -6609,7 +6653,7 @@ components: properties: {} type: object status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" required: - commentStatuses - status @@ -6681,7 +6725,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/VoteDeleteResponse_status" + $ref: "#/components/schemas/APIStatus" wasPendingVote: type: boolean required: @@ -6697,7 +6741,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" voteUserNames: items: type: string @@ -6724,7 +6768,7 @@ components: properties: {} type: object status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" required: - commentPositions - status @@ -6737,7 +6781,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" commentStatuses: additionalProperties: type: boolean @@ -6773,7 +6817,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" commentStatuses: additionalProperties: type: boolean @@ -7538,6 +7582,7 @@ components: example: reason: reason code: code + commentsUpdated: 0 page: createdAt: 2000-01-23T04:56:07.000+00:00 isClosed: true @@ -7556,6 +7601,9 @@ components: type: string code: type: string + commentsUpdated: + format: int64 + type: integer page: $ref: "#/components/schemas/APIPage" status: @@ -7790,12 +7838,19 @@ components: fromTenantId: fromTenantId displaySrc: displaySrc order: 5 + notes: + - notes + - notes status: success properties: status: $ref: "#/components/schemas/APIStatus" userBadge: $ref: "#/components/schemas/UserBadge" + notes: + items: + type: string + type: array required: - status - userBadge @@ -8161,21 +8216,317 @@ components: required: - aggregations type: object - UserId: - type: string - FDomain: - type: string - CommentLog: - items: {} - type: array - FComment: + CommentLogType: + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + type: number + RepeatCommentHandlingAction: + enum: + - 0 + - 1 + - 2 + type: number + RepeatCommentCheckIgnoredReason: + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + type: number + CommentLogData: additionalProperties: false example: - date: 2000-01-23T04:56:07.000+00:00 - editKey: editKey - pageNumber: 5 - pageTitle: pageTitle - rating: 3.616076749251911 + votesDownAfter: 9.369310271410669 + repeatAction: 6.683562403749608 + reason: 8.762042012749001 + votesUpBefore: 1.1730742509559433 + tenantBadgeId: tenantBadgeId + badgeId: badgeId + reviewedBefore: true + reviewedAfter: true + trustFactorBefore: 6.438423552598547 + trustFactor: 1.0246457001441578 + engineTokens: 1.2315135367772556 + rule: + commentContains: commentContains + actions: + - spam + - spam + expireBefore: 2000-01-23T04:56:07.000+00:00 + textBefore: textBefore + locale: locale + spamBefore: true + votesBefore: 7.457744773683766 + votesDownBefore: 4.965218492984954 + spamAfter: true + foundUser: true + textAfter: textAfter + engine: engine + engineResponse: engineResponse + trustFactorAfter: 3.5571952270680973 + approvedBefore: true + notificationCount: 6.84685269835264 + subscribers: 1.4894159098541704 + otherData: "" + clearContent: true + verified: true + expireAfter: 2000-01-23T04:56:07.000+00:00 + flagCountBefore: 9.018348186070783 + userId: userId + approvedAfter: true + phrase: phrase + isDeletedUser: true + votesAfter: 5.025004791520295 + votesUpAfter: 9.965781217890562 + permanentFlag: permanent + wasLoggedIn: true + badWord: badWord + word: word + referencedCommentId: referencedCommentId + properties: + clearContent: + type: boolean + isDeletedUser: + type: boolean + phrase: + type: string + badWord: + type: string + word: + type: string + locale: + type: string + tenantBadgeId: + type: string + badgeId: + type: string + wasLoggedIn: + type: boolean + foundUser: + type: boolean + verified: + type: boolean + engine: + type: string + engineResponse: + type: string + engineTokens: + format: double + type: number + trustFactor: + format: double + type: number + rule: + $ref: "#/components/schemas/SpamRule" + userId: + type: string + subscribers: + format: double + type: number + notificationCount: + format: double + type: number + votesBefore: + format: double + nullable: true + type: number + votesUpBefore: + format: double + nullable: true + type: number + votesDownBefore: + format: double + nullable: true + type: number + votesAfter: + format: double + nullable: true + type: number + votesUpAfter: + format: double + nullable: true + type: number + votesDownAfter: + format: double + nullable: true + type: number + repeatAction: + $ref: "#/components/schemas/RepeatCommentHandlingAction" + reason: + $ref: "#/components/schemas/RepeatCommentCheckIgnoredReason" + otherData: {} + spamBefore: + type: boolean + spamAfter: + type: boolean + permanentFlag: + enum: + - permanent + nullable: false + type: string + approvedBefore: + type: boolean + approvedAfter: + type: boolean + reviewedBefore: + type: boolean + reviewedAfter: + type: boolean + textBefore: + type: string + textAfter: + type: string + expireBefore: + format: date-time + nullable: true + type: string + expireAfter: + format: date-time + nullable: true + type: string + flagCountBefore: + format: double + nullable: true + type: number + trustFactorBefore: + format: double + type: number + trustFactorAfter: + format: double + type: number + referencedCommentId: + type: string + type: object + CommentLogEntry: + additionalProperties: false + example: + d: 2000-01-23T04:56:07.000+00:00 + t: 7.386281948385884 + da: + votesDownAfter: 9.369310271410669 + repeatAction: 6.683562403749608 + reason: 8.762042012749001 + votesUpBefore: 1.1730742509559433 + tenantBadgeId: tenantBadgeId + badgeId: badgeId + reviewedBefore: true + reviewedAfter: true + trustFactorBefore: 6.438423552598547 + trustFactor: 1.0246457001441578 + engineTokens: 1.2315135367772556 + rule: + commentContains: commentContains + actions: + - spam + - spam + expireBefore: 2000-01-23T04:56:07.000+00:00 + textBefore: textBefore + locale: locale + spamBefore: true + votesBefore: 7.457744773683766 + votesDownBefore: 4.965218492984954 + spamAfter: true + foundUser: true + textAfter: textAfter + engine: engine + engineResponse: engineResponse + trustFactorAfter: 3.5571952270680973 + approvedBefore: true + notificationCount: 6.84685269835264 + subscribers: 1.4894159098541704 + otherData: "" + clearContent: true + verified: true + expireAfter: 2000-01-23T04:56:07.000+00:00 + flagCountBefore: 9.018348186070783 + userId: userId + approvedAfter: true + phrase: phrase + isDeletedUser: true + votesAfter: 5.025004791520295 + votesUpAfter: 9.965781217890562 + permanentFlag: permanent + wasLoggedIn: true + badWord: badWord + word: word + referencedCommentId: referencedCommentId + properties: + d: + format: date-time + type: string + t: + $ref: "#/components/schemas/CommentLogType" + da: + $ref: "#/components/schemas/CommentLogData" + required: + - d + - t + type: object + FComment: + additionalProperties: false + example: + date: 2000-01-23T04:56:07.000+00:00 + editKey: editKey + pageNumber: 5 + pageTitle: pageTitle + rating: 3.616076749251911 approved: true hashTags: - retain: true @@ -8196,10 +8547,106 @@ components: aiDeterminedSpam: true reviewed: true logs: - - - "" - - "" - - - "" - - "" + - d: 2000-01-23T04:56:07.000+00:00 + t: 7.386281948385884 + da: + votesDownAfter: 9.369310271410669 + repeatAction: 6.683562403749608 + reason: 8.762042012749001 + votesUpBefore: 1.1730742509559433 + tenantBadgeId: tenantBadgeId + badgeId: badgeId + reviewedBefore: true + reviewedAfter: true + trustFactorBefore: 6.438423552598547 + trustFactor: 1.0246457001441578 + engineTokens: 1.2315135367772556 + rule: + commentContains: commentContains + actions: + - spam + - spam + expireBefore: 2000-01-23T04:56:07.000+00:00 + textBefore: textBefore + locale: locale + spamBefore: true + votesBefore: 7.457744773683766 + votesDownBefore: 4.965218492984954 + spamAfter: true + foundUser: true + textAfter: textAfter + engine: engine + engineResponse: engineResponse + trustFactorAfter: 3.5571952270680973 + approvedBefore: true + notificationCount: 6.84685269835264 + subscribers: 1.4894159098541704 + otherData: "" + clearContent: true + verified: true + expireAfter: 2000-01-23T04:56:07.000+00:00 + flagCountBefore: 9.018348186070783 + userId: userId + approvedAfter: true + phrase: phrase + isDeletedUser: true + votesAfter: 5.025004791520295 + votesUpAfter: 9.965781217890562 + permanentFlag: permanent + wasLoggedIn: true + badWord: badWord + word: word + referencedCommentId: referencedCommentId + - d: 2000-01-23T04:56:07.000+00:00 + t: 7.386281948385884 + da: + votesDownAfter: 9.369310271410669 + repeatAction: 6.683562403749608 + reason: 8.762042012749001 + votesUpBefore: 1.1730742509559433 + tenantBadgeId: tenantBadgeId + badgeId: badgeId + reviewedBefore: true + reviewedAfter: true + trustFactorBefore: 6.438423552598547 + trustFactor: 1.0246457001441578 + engineTokens: 1.2315135367772556 + rule: + commentContains: commentContains + actions: + - spam + - spam + expireBefore: 2000-01-23T04:56:07.000+00:00 + textBefore: textBefore + locale: locale + spamBefore: true + votesBefore: 7.457744773683766 + votesDownBefore: 4.965218492984954 + spamAfter: true + foundUser: true + textAfter: textAfter + engine: engine + engineResponse: engineResponse + trustFactorAfter: 3.5571952270680973 + approvedBefore: true + notificationCount: 6.84685269835264 + subscribers: 1.4894159098541704 + otherData: "" + clearContent: true + verified: true + expireAfter: 2000-01-23T04:56:07.000+00:00 + flagCountBefore: 9.018348186070783 + userId: userId + approvedAfter: true + phrase: phrase + isDeletedUser: true + votesAfter: 5.025004791520295 + votesUpAfter: 9.965781217890562 + permanentFlag: permanent + wasLoggedIn: true + badWord: badWord + word: word + referencedCommentId: referencedCommentId fromProductId: 2 flagCount: 9 pageNumberNF: 7 @@ -8248,7 +8695,7 @@ components: permNotSpam: true pageNumberOF: 2 localDateHours: 0 - viewCount: 7 + viewCount: 6 votesUp: 1 displayLabel: displayLabel requiresVerification: true @@ -8480,7 +8927,7 @@ components: type: array logs: items: - $ref: "#/components/schemas/CommentLog" + $ref: "#/components/schemas/CommentLogEntry" nullable: true type: array groupIds: @@ -9006,231 +9453,162 @@ components: properties: {} type: object type: object - Pick_FComment.APICommentFieldsKeys_: - description: "From T, pick a set of properties whose keys are in the union K" - example: - date: 2000-01-23T04:56:07.000+00:00 - pageTitle: pageTitle - rating: 2.3021358869347655 - approved: true - hashTags: - - retain: true - id: id - tag: tag - url: url - - retain: true - id: id - tag: tag - url: url - localDateString: localDateString - notificationSentForParentTenant: true - verifiedDate: 2000-01-23T04:56:07.000+00:00 - isLocked: true - aiDeterminedSpam: true - reviewed: true - fromProductId: 7 - flagCount: 5 - hasCode: true - feedbackIds: - - feedbackIds - - feedbackIds - urlIdRaw: urlIdRaw - moderationGroupIds: - - moderationGroupIds - - moderationGroupIds - isDeletedUser: true - meta: - wpUserId: wpUserId - wpPostId: wpPostId - mentions: - - rawTag: rawTag - id: id - tag: tag - type: user - sent: true - - rawTag: rawTag - id: id - tag: tag - type: user - sent: true - domain: domain - avatarSrc: avatarSrc - _id: _id - isSpam: true - externalParentId: externalParentId - votesDown: 5 - commenterName: commenterName - isByModerator: true - commenterLink: commenterLink - urlId: urlId - locale: locale - commentHTML: commentHTML - isDeleted: true - localDateHours: 0 - votesUp: 1 - displayLabel: displayLabel - isPinned: true - verified: true - anonUserId: anonUserId - externalId: externalId - hasLinks: true - expireAt: 2000-01-23T04:56:07.000+00:00 - userId: userId - url: url - parentId: parentId - commenterEmail: commenterEmail - badges: - - displayLabel: displayLabel - backgroundColor: backgroundColor - borderColor: borderColor - cssClass: cssClass - description: description - id: id - type: 9 - textColor: textColor - displaySrc: displaySrc - - displayLabel: displayLabel - backgroundColor: backgroundColor - borderColor: borderColor - cssClass: cssClass - description: description - id: id - type: 9 - textColor: textColor - displaySrc: displaySrc - notificationSentForParent: true - tenantId: tenantId - hasImages: true - comment: comment - votes: 6 - isByAdmin: true + APICommentBase: + additionalProperties: false properties: - date: - format: date-time - type: string _id: type: string - tenantId: - type: string - urlId: - type: string - urlIdRaw: - type: string - url: + aiDeterminedSpam: + type: boolean + anonUserId: + nullable: true type: string - pageTitle: + approved: + type: boolean + avatarSrc: + nullable: true type: string - userId: + badges: + items: + $ref: "#/components/schemas/CommentUserBadgeInfo" + nullable: true + type: array + comment: type: string - anonUserId: + commentHTML: type: string commenterEmail: + nullable: true + type: string + commenterLink: + nullable: true type: string commenterName: type: string - commenterLink: + date: + format: date-time + nullable: true type: string - comment: + displayLabel: + nullable: true type: string - commentHTML: + domain: + allOf: + - $ref: "#/components/schemas/FDomain" + nullable: true + externalId: type: string - parentId: + externalParentId: + nullable: true type: string - localDateString: + expireAt: + format: date-time + nullable: true type: string - localDateHours: - format: int32 - type: integer - votes: - format: int32 - type: integer - votesUp: + feedbackIds: + items: + type: string + type: array + flagCount: format: int32 + nullable: true type: integer - votesDown: + fromProductId: format: int32 type: integer - expireAt: - format: date-time - type: string - verified: - type: boolean - verifiedDate: - format: date-time - type: string - notificationSentForParent: - type: boolean - notificationSentForParentTenant: - type: boolean - reviewed: - type: boolean - externalId: - type: string - externalParentId: - type: string - avatarSrc: - type: string - isSpam: - type: boolean - aiDeterminedSpam: + hasCode: type: boolean hasImages: type: boolean hasLinks: type: boolean - hasCode: + hashTags: + items: + $ref: "#/components/schemas/CommentUserHashTagInfo" + type: array + isByAdmin: type: boolean - approved: + isByModerator: type: boolean - locale: - type: string isDeleted: type: boolean isDeletedUser: type: boolean - isByAdmin: - type: boolean - isByModerator: - type: boolean isPinned: + nullable: true type: boolean isLocked: + nullable: true type: boolean - flagCount: + isSpam: + type: boolean + localDateHours: format: int32 + nullable: true type: integer - rating: - format: double - type: number - displayLabel: + localDateString: + nullable: true + type: string + locale: + nullable: true type: string - fromProductId: - format: int32 - type: integer - meta: - $ref: "#/components/schemas/Pick_FComment_APICommentFieldsKeys__meta" mentions: items: $ref: "#/components/schemas/CommentUserMentionInfo" type: array - hashTags: - items: - $ref: "#/components/schemas/CommentUserHashTagInfo" - type: array - badges: - items: - $ref: "#/components/schemas/CommentUserBadgeInfo" - type: array - domain: - type: string + meta: + $ref: "#/components/schemas/FComment_meta" moderationGroupIds: items: type: string + nullable: true type: array - feedbackIds: - items: - type: string - type: array + notificationSentForParent: + type: boolean + notificationSentForParentTenant: + type: boolean + pageTitle: + nullable: true + type: string + parentId: + nullable: true + type: string + rating: + format: double + nullable: true + type: number + reviewed: + type: boolean + tenantId: + type: string + url: + type: string + urlId: + type: string + urlIdRaw: + type: string + userId: + allOf: + - $ref: "#/components/schemas/UserId" + nullable: true + verified: + type: boolean + verifiedDate: + format: date-time + nullable: true + type: string + votes: + format: int32 + nullable: true + type: integer + votesDown: + format: int32 + nullable: true + type: integer + votesUp: + format: int32 + nullable: true + type: integer required: - _id - approved @@ -9244,15 +9622,229 @@ components: - urlId - verified type: object - APIComment: - $ref: "#/components/schemas/Pick_FComment.APICommentFieldsKeys_" - APIGetCommentResponse: + APIComment: + allOf: + - $ref: "#/components/schemas/APICommentBase" + - properties: + date: + format: double + nullable: true + type: number + required: + - date + type: object + example: + date: 9.301444243932576 + pageTitle: pageTitle + rating: 5.962133916683182 + approved: true + hashTags: + - retain: true + id: id + tag: tag + url: url + - retain: true + id: id + tag: tag + url: url + localDateString: localDateString + notificationSentForParentTenant: true + verifiedDate: 2000-01-23T04:56:07.000+00:00 + isLocked: true + aiDeterminedSpam: true + reviewed: true + fromProductId: 6 + flagCount: 0 + hasCode: true + feedbackIds: + - feedbackIds + - feedbackIds + urlIdRaw: urlIdRaw + moderationGroupIds: + - moderationGroupIds + - moderationGroupIds + isDeletedUser: true + meta: + wpUserId: wpUserId + wpPostId: wpPostId + domain: "" + mentions: + - rawTag: rawTag + id: id + tag: tag + type: user + sent: true + - rawTag: rawTag + id: id + tag: tag + type: user + sent: true + avatarSrc: avatarSrc + _id: _id + isSpam: true + externalParentId: externalParentId + votesDown: 2 + commenterName: commenterName + isByModerator: true + commenterLink: commenterLink + locale: locale + urlId: urlId + commentHTML: commentHTML + isDeleted: true + localDateHours: 1 + votesUp: 7 + displayLabel: displayLabel + isPinned: true + verified: true + anonUserId: anonUserId + externalId: externalId + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + parentId: parentId + url: url + commenterEmail: commenterEmail + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 9 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 9 + textColor: textColor + displaySrc: displaySrc + notificationSentForParent: true + tenantId: tenantId + hasImages: true + comment: comment + votes: 5 + isByAdmin: true + APIGetCommentResponse: + additionalProperties: false + example: + comment: + date: 9.301444243932576 + pageTitle: pageTitle + rating: 5.962133916683182 + approved: true + hashTags: + - retain: true + id: id + tag: tag + url: url + - retain: true + id: id + tag: tag + url: url + localDateString: localDateString + notificationSentForParentTenant: true + verifiedDate: 2000-01-23T04:56:07.000+00:00 + isLocked: true + aiDeterminedSpam: true + reviewed: true + fromProductId: 6 + flagCount: 0 + hasCode: true + feedbackIds: + - feedbackIds + - feedbackIds + urlIdRaw: urlIdRaw + moderationGroupIds: + - moderationGroupIds + - moderationGroupIds + isDeletedUser: true + meta: + wpUserId: wpUserId + wpPostId: wpPostId + domain: "" + mentions: + - rawTag: rawTag + id: id + tag: tag + type: user + sent: true + - rawTag: rawTag + id: id + tag: tag + type: user + sent: true + avatarSrc: avatarSrc + _id: _id + isSpam: true + externalParentId: externalParentId + votesDown: 2 + commenterName: commenterName + isByModerator: true + commenterLink: commenterLink + locale: locale + urlId: urlId + commentHTML: commentHTML + isDeleted: true + localDateHours: 1 + votesUp: 7 + displayLabel: displayLabel + isPinned: true + verified: true + anonUserId: anonUserId + externalId: externalId + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + parentId: parentId + url: url + commenterEmail: commenterEmail + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 9 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 9 + textColor: textColor + displaySrc: displaySrc + notificationSentForParent: true + tenantId: tenantId + hasImages: true + comment: comment + votes: 5 + isByAdmin: true + status: success + properties: + status: + $ref: "#/components/schemas/APIStatus" + comment: + $ref: "#/components/schemas/APIComment" + required: + - comment + - status + type: object + APIGetCommentsResponse: additionalProperties: false example: - comment: - date: 2000-01-23T04:56:07.000+00:00 + comments: + - date: 9.301444243932576 pageTitle: pageTitle - rating: 2.3021358869347655 + rating: 5.962133916683182 approved: true hashTags: - retain: true @@ -9269,8 +9861,8 @@ components: isLocked: true aiDeterminedSpam: true reviewed: true - fromProductId: 7 - flagCount: 5 + fromProductId: 6 + flagCount: 0 hasCode: true feedbackIds: - feedbackIds @@ -9283,6 +9875,7 @@ components: meta: wpUserId: wpUserId wpPostId: wpPostId + domain: "" mentions: - rawTag: rawTag id: id @@ -9294,21 +9887,20 @@ components: tag: tag type: user sent: true - domain: domain avatarSrc: avatarSrc _id: _id isSpam: true externalParentId: externalParentId - votesDown: 5 + votesDown: 2 commenterName: commenterName isByModerator: true commenterLink: commenterLink - urlId: urlId locale: locale + urlId: urlId commentHTML: commentHTML isDeleted: true - localDateHours: 0 - votesUp: 1 + localDateHours: 1 + votesUp: 7 displayLabel: displayLabel isPinned: true verified: true @@ -9316,9 +9908,104 @@ components: externalId: externalId hasLinks: true expireAt: 2000-01-23T04:56:07.000+00:00 - userId: userId + userId: "" + parentId: parentId url: url + commenterEmail: commenterEmail + badges: + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 9 + textColor: textColor + displaySrc: displaySrc + - displayLabel: displayLabel + backgroundColor: backgroundColor + borderColor: borderColor + cssClass: cssClass + description: description + id: id + type: 9 + textColor: textColor + displaySrc: displaySrc + notificationSentForParent: true + tenantId: tenantId + hasImages: true + comment: comment + votes: 5 + isByAdmin: true + - date: 9.301444243932576 + pageTitle: pageTitle + rating: 5.962133916683182 + approved: true + hashTags: + - retain: true + id: id + tag: tag + url: url + - retain: true + id: id + tag: tag + url: url + localDateString: localDateString + notificationSentForParentTenant: true + verifiedDate: 2000-01-23T04:56:07.000+00:00 + isLocked: true + aiDeterminedSpam: true + reviewed: true + fromProductId: 6 + flagCount: 0 + hasCode: true + feedbackIds: + - feedbackIds + - feedbackIds + urlIdRaw: urlIdRaw + moderationGroupIds: + - moderationGroupIds + - moderationGroupIds + isDeletedUser: true + meta: + wpUserId: wpUserId + wpPostId: wpPostId + domain: "" + mentions: + - rawTag: rawTag + id: id + tag: tag + type: user + sent: true + - rawTag: rawTag + id: id + tag: tag + type: user + sent: true + avatarSrc: avatarSrc + _id: _id + isSpam: true + externalParentId: externalParentId + votesDown: 2 + commenterName: commenterName + isByModerator: true + commenterLink: commenterLink + locale: locale + urlId: urlId + commentHTML: commentHTML + isDeleted: true + localDateHours: 1 + votesUp: 7 + displayLabel: displayLabel + isPinned: true + verified: true + anonUserId: anonUserId + externalId: externalId + hasLinks: true + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" parentId: parentId + url: url commenterEmail: commenterEmail badges: - displayLabel: displayLabel @@ -9343,25 +10030,9 @@ components: tenantId: tenantId hasImages: true comment: comment - votes: 6 + votes: 5 isByAdmin: true status: success - properties: - status: - $ref: "#/components/schemas/APIStatus" - comment: - $ref: "#/components/schemas/Pick_FComment.APICommentFieldsKeys_" - required: - - comment - - status - type: object - APIGetCommentsResponse: - additionalProperties: false - example: - comments: - - null - - null - status: success properties: status: $ref: "#/components/schemas/APIStatus" @@ -9373,12 +10044,55 @@ components: - comments - status type: object - Pick_APIComment.UpdatableCommentFields_: - description: "From T, pick a set of properties whose keys are in the union K" + UpdatableCommentParams: + additionalProperties: false + example: + date: 0.8008281904610115 + externalParentId: externalParentId + votesDown: 5 + pageTitle: pageTitle + commenterName: commenterName + isByModerator: true + commenterLink: commenterLink + urlId: urlId + commentHTML: commentHTML + approved: true + localDateString: localDateString + notificationSentForParentTenant: true + isDeleted: true + verifiedDate: 2000-01-23T04:56:07.000+00:00 + isLocked: true + reviewed: true + localDateHours: 6 + votesUp: 5 + displayLabel: displayLabel + flagCount: 2 + isPinned: true + verified: true + feedbackIds: + - feedbackIds + - feedbackIds + externalId: externalId + expireAt: 2000-01-23T04:56:07.000+00:00 + userId: "" + url: url + parentId: parentId + commenterEmail: commenterEmail + urlIdRaw: urlIdRaw + moderationGroupIds: + - moderationGroupIds + - moderationGroupIds + isDeletedUser: true + meta: + wpUserId: wpUserId + wpPostId: wpPostId + notificationSentForParent: true + avatarSrc: avatarSrc + comment: comment + votes: 1 + isSpam: true + isByAdmin: true properties: - date: - format: date-time - type: string urlId: type: string urlIdRaw: @@ -9386,42 +10100,59 @@ components: url: type: string pageTitle: + nullable: true type: string userId: - type: string + allOf: + - $ref: "#/components/schemas/UserId" + nullable: true commenterEmail: + nullable: true type: string commenterName: type: string commenterLink: + nullable: true type: string comment: type: string commentHTML: type: string parentId: + nullable: true type: string + date: + format: double + nullable: true + type: number localDateString: + nullable: true type: string localDateHours: format: int32 + nullable: true type: integer votes: format: int32 + nullable: true type: integer votesUp: format: int32 + nullable: true type: integer votesDown: format: int32 + nullable: true type: integer expireAt: format: date-time + nullable: true type: string verified: type: boolean verifiedDate: format: date-time + nullable: true type: string notificationSentForParent: type: boolean @@ -9432,8 +10163,10 @@ components: externalId: type: string externalParentId: + nullable: true type: string avatarSrc: + nullable: true type: string isSpam: type: boolean @@ -9448,36 +10181,30 @@ components: isByModerator: type: boolean isPinned: + nullable: true type: boolean isLocked: + nullable: true type: boolean flagCount: format: int32 + nullable: true type: integer displayLabel: + nullable: true type: string meta: - $ref: "#/components/schemas/Pick_FComment_APICommentFieldsKeys__meta" + $ref: "#/components/schemas/FComment_meta" moderationGroupIds: items: type: string + nullable: true type: array feedbackIds: items: type: string type: array - required: - - approved - - comment - - commentHTML - - commenterName - - date - - url - - urlId - - verified type: object - UpdatableCommentParams: - $ref: "#/components/schemas/Pick_APIComment.UpdatableCommentFields_" DeleteCommentAction: enum: - already-deleted @@ -9492,7 +10219,7 @@ components: action: $ref: "#/components/schemas/DeleteCommentAction" status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" required: - action - status @@ -9526,10 +10253,106 @@ components: aiDeterminedSpam: true reviewed: true logs: - - - "" - - "" - - - "" - - "" + - d: 2000-01-23T04:56:07.000+00:00 + t: 7.386281948385884 + da: + votesDownAfter: 9.369310271410669 + repeatAction: 6.683562403749608 + reason: 8.762042012749001 + votesUpBefore: 1.1730742509559433 + tenantBadgeId: tenantBadgeId + badgeId: badgeId + reviewedBefore: true + reviewedAfter: true + trustFactorBefore: 6.438423552598547 + trustFactor: 1.0246457001441578 + engineTokens: 1.2315135367772556 + rule: + commentContains: commentContains + actions: + - spam + - spam + expireBefore: 2000-01-23T04:56:07.000+00:00 + textBefore: textBefore + locale: locale + spamBefore: true + votesBefore: 7.457744773683766 + votesDownBefore: 4.965218492984954 + spamAfter: true + foundUser: true + textAfter: textAfter + engine: engine + engineResponse: engineResponse + trustFactorAfter: 3.5571952270680973 + approvedBefore: true + notificationCount: 6.84685269835264 + subscribers: 1.4894159098541704 + otherData: "" + clearContent: true + verified: true + expireAfter: 2000-01-23T04:56:07.000+00:00 + flagCountBefore: 9.018348186070783 + userId: userId + approvedAfter: true + phrase: phrase + isDeletedUser: true + votesAfter: 5.025004791520295 + votesUpAfter: 9.965781217890562 + permanentFlag: permanent + wasLoggedIn: true + badWord: badWord + word: word + referencedCommentId: referencedCommentId + - d: 2000-01-23T04:56:07.000+00:00 + t: 7.386281948385884 + da: + votesDownAfter: 9.369310271410669 + repeatAction: 6.683562403749608 + reason: 8.762042012749001 + votesUpBefore: 1.1730742509559433 + tenantBadgeId: tenantBadgeId + badgeId: badgeId + reviewedBefore: true + reviewedAfter: true + trustFactorBefore: 6.438423552598547 + trustFactor: 1.0246457001441578 + engineTokens: 1.2315135367772556 + rule: + commentContains: commentContains + actions: + - spam + - spam + expireBefore: 2000-01-23T04:56:07.000+00:00 + textBefore: textBefore + locale: locale + spamBefore: true + votesBefore: 7.457744773683766 + votesDownBefore: 4.965218492984954 + spamAfter: true + foundUser: true + textAfter: textAfter + engine: engine + engineResponse: engineResponse + trustFactorAfter: 3.5571952270680973 + approvedBefore: true + notificationCount: 6.84685269835264 + subscribers: 1.4894159098541704 + otherData: "" + clearContent: true + verified: true + expireAfter: 2000-01-23T04:56:07.000+00:00 + flagCountBefore: 9.018348186070783 + userId: userId + approvedAfter: true + phrase: phrase + isDeletedUser: true + votesAfter: 5.025004791520295 + votesUpAfter: 9.965781217890562 + permanentFlag: permanent + wasLoggedIn: true + badWord: badWord + word: word + referencedCommentId: referencedCommentId fromProductId: 2 flagCount: 9 pageNumberNF: 7 @@ -9578,7 +10401,7 @@ components: permNotSpam: true pageNumberOF: 2 localDateHours: 0 - viewCount: 7 + viewCount: 6 votesUp: 1 displayLabel: displayLabel requiresVerification: true @@ -9626,7 +10449,7 @@ components: status: success properties: status: - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" + $ref: "#/components/schemas/APIStatus" comment: $ref: "#/components/schemas/FComment" user: @@ -9853,13 +10676,24 @@ components: type: string type: array type: object - Pick_TenantAuditLog.TenantAuditLogKeys_: - description: "From T, pick a set of properties whose keys are in the union K" + APIAuditLog: + additionalProperties: false + example: + crudType: c + serverStartDate: 2000-01-23T04:56:07.000+00:00 + ip: ip + description: description + resourceName: resourceName + from: ui + _id: _id + userId: userId + when: 2000-01-23T04:56:07.000+00:00 + url: url + objectDetails: "" + username: username properties: _id: type: string - url: - type: string userId: type: string username: @@ -9880,7 +10714,11 @@ components: - api - cron type: string + url: + nullable: true + type: string ip: + nullable: true type: string when: format: date-time @@ -9891,23 +10729,42 @@ components: format: date-time type: string objectDetails: - additionalProperties: {} - description: Construct a type with a set of properties K of type T - properties: {} - type: object + allOf: + - $ref: "#/components/schemas/Record_string.any_" + nullable: true required: - _id - crudType - resourceName type: object - APIAuditLog: - $ref: "#/components/schemas/Pick_TenantAuditLog.TenantAuditLogKeys_" GetAuditLogsResponse: additionalProperties: false example: auditLogs: - - null - - null + - crudType: c + serverStartDate: 2000-01-23T04:56:07.000+00:00 + ip: ip + description: description + resourceName: resourceName + from: ui + _id: _id + userId: userId + when: 2000-01-23T04:56:07.000+00:00 + url: url + objectDetails: "" + username: username + - crudType: c + serverStartDate: 2000-01-23T04:56:07.000+00:00 + ip: ip + description: description + resourceName: resourceName + from: ui + _id: _id + userId: userId + when: 2000-01-23T04:56:07.000+00:00 + url: url + objectDetails: "" + username: username status: success properties: status: @@ -10441,15 +11298,10 @@ components: type: number VoteResponse_status: anyOf: - - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" - - $ref: "#/components/schemas/ImportedAPIStatus.FAILED" + - $ref: "#/components/schemas/APIStatus" - enum: - pending-verification type: string - VoteDeleteResponse_status: - anyOf: - - $ref: "#/components/schemas/ImportedAPIStatus.SUCCESS" - - $ref: "#/components/schemas/ImportedAPIStatus.FAILED" FComment_meta: additionalProperties: {} example: @@ -10462,17 +11314,6 @@ components: wpPostId: type: string type: object - Pick_FComment_APICommentFieldsKeys__meta: - additionalProperties: {} - example: - wpUserId: wpUserId - wpPostId: wpPostId - properties: - wpUserId: - type: string - wpPostId: - type: string - type: object AggregationResponse_stats: example: scanned: 6 diff --git a/client/api_default.go b/client/api_default.go index 4892ab9..5396a18 100644 --- a/client/api_default.go +++ b/client/api_default.go @@ -6364,7 +6364,7 @@ type ApiUpdateCommentRequest struct { ApiService *DefaultAPIService tenantId *string id string - body *PickAPICommentUpdatableCommentFields + updatableCommentParams *UpdatableCommentParams contextUserId *string doSpamCheck *bool isLive *bool @@ -6375,8 +6375,8 @@ func (r ApiUpdateCommentRequest) TenantId(tenantId string) ApiUpdateCommentReque return r } -func (r ApiUpdateCommentRequest) Body(body PickAPICommentUpdatableCommentFields) ApiUpdateCommentRequest { - r.body = &body +func (r ApiUpdateCommentRequest) UpdatableCommentParams(updatableCommentParams UpdatableCommentParams) ApiUpdateCommentRequest { + r.updatableCommentParams = &updatableCommentParams return r } @@ -6438,8 +6438,8 @@ func (a *DefaultAPIService) UpdateCommentExecute(r ApiUpdateCommentRequest) (*Fl if r.tenantId == nil { return localVarReturnValue, nil, reportError("tenantId is required and must be specified") } - if r.body == nil { - return localVarReturnValue, nil, reportError("body is required and must be specified") + if r.updatableCommentParams == nil { + return localVarReturnValue, nil, reportError("updatableCommentParams is required and must be specified") } parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") @@ -6470,7 +6470,7 @@ func (a *DefaultAPIService) UpdateCommentExecute(r ApiUpdateCommentRequest) (*Fl localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.body + localVarPostBody = r.updatableCommentParams if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { diff --git a/client/docs/PickTenantAuditLogTenantAuditLogKeys.md b/client/docs/APIAuditLog.md similarity index 58% rename from client/docs/PickTenantAuditLogTenantAuditLogKeys.md rename to client/docs/APIAuditLog.md index 4387447..1436360 100644 --- a/client/docs/PickTenantAuditLogTenantAuditLogKeys.md +++ b/client/docs/APIAuditLog.md @@ -1,17 +1,17 @@ -# PickTenantAuditLogTenantAuditLogKeys +# APIAuditLog ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | | -**Url** | Pointer to **string** | | [optional] **UserId** | Pointer to **string** | | [optional] **Username** | Pointer to **string** | | [optional] **ResourceName** | **string** | | **CrudType** | **string** | | **From** | Pointer to **string** | | [optional] -**Ip** | Pointer to **string** | | [optional] +**Url** | Pointer to **NullableString** | | [optional] +**Ip** | Pointer to **NullableString** | | [optional] **When** | Pointer to **time.Time** | | [optional] **Description** | Pointer to **string** | | [optional] **ServerStartDate** | Pointer to **time.Time** | | [optional] @@ -19,308 +19,338 @@ Name | Type | Description | Notes ## Methods -### NewPickTenantAuditLogTenantAuditLogKeys +### NewAPIAuditLog -`func NewPickTenantAuditLogTenantAuditLogKeys(id string, resourceName string, crudType string, ) *PickTenantAuditLogTenantAuditLogKeys` +`func NewAPIAuditLog(id string, resourceName string, crudType string, ) *APIAuditLog` -NewPickTenantAuditLogTenantAuditLogKeys instantiates a new PickTenantAuditLogTenantAuditLogKeys object +NewAPIAuditLog instantiates a new APIAuditLog 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 -### NewPickTenantAuditLogTenantAuditLogKeysWithDefaults +### NewAPIAuditLogWithDefaults -`func NewPickTenantAuditLogTenantAuditLogKeysWithDefaults() *PickTenantAuditLogTenantAuditLogKeys` +`func NewAPIAuditLogWithDefaults() *APIAuditLog` -NewPickTenantAuditLogTenantAuditLogKeysWithDefaults instantiates a new PickTenantAuditLogTenantAuditLogKeys object +NewAPIAuditLogWithDefaults instantiates a new APIAuditLog 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 *PickTenantAuditLogTenantAuditLogKeys) GetId() string` +`func (o *APIAuditLog) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetIdOk() (*string, bool)` +`func (o *APIAuditLog) GetIdOk() (*string, 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 *PickTenantAuditLogTenantAuditLogKeys) SetId(v string)` +`func (o *APIAuditLog) SetId(v string)` SetId sets Id field to given value. -### GetUrl - -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *PickTenantAuditLogTenantAuditLogKeys) 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 *PickTenantAuditLogTenantAuditLogKeys) SetUrl(v string)` - -SetUrl sets Url field to given value. - -### HasUrl - -`func (o *PickTenantAuditLogTenantAuditLogKeys) HasUrl() bool` - -HasUrl returns a boolean if a field has been set. - ### GetUserId -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetUserId() string` +`func (o *APIAuditLog) GetUserId() string` GetUserId returns the UserId field if non-nil, zero value otherwise. ### GetUserIdOk -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetUserIdOk() (*string, bool)` +`func (o *APIAuditLog) GetUserIdOk() (*string, 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 *PickTenantAuditLogTenantAuditLogKeys) SetUserId(v string)` +`func (o *APIAuditLog) SetUserId(v string)` SetUserId sets UserId field to given value. ### HasUserId -`func (o *PickTenantAuditLogTenantAuditLogKeys) HasUserId() bool` +`func (o *APIAuditLog) HasUserId() bool` HasUserId returns a boolean if a field has been set. ### GetUsername -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetUsername() string` +`func (o *APIAuditLog) GetUsername() string` GetUsername returns the Username field if non-nil, zero value otherwise. ### GetUsernameOk -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetUsernameOk() (*string, bool)` +`func (o *APIAuditLog) GetUsernameOk() (*string, bool)` GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUsername -`func (o *PickTenantAuditLogTenantAuditLogKeys) SetUsername(v string)` +`func (o *APIAuditLog) SetUsername(v string)` SetUsername sets Username field to given value. ### HasUsername -`func (o *PickTenantAuditLogTenantAuditLogKeys) HasUsername() bool` +`func (o *APIAuditLog) HasUsername() bool` HasUsername returns a boolean if a field has been set. ### GetResourceName -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetResourceName() string` +`func (o *APIAuditLog) GetResourceName() string` GetResourceName returns the ResourceName field if non-nil, zero value otherwise. ### GetResourceNameOk -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetResourceNameOk() (*string, bool)` +`func (o *APIAuditLog) GetResourceNameOk() (*string, bool)` GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetResourceName -`func (o *PickTenantAuditLogTenantAuditLogKeys) SetResourceName(v string)` +`func (o *APIAuditLog) SetResourceName(v string)` SetResourceName sets ResourceName field to given value. ### GetCrudType -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetCrudType() string` +`func (o *APIAuditLog) GetCrudType() string` GetCrudType returns the CrudType field if non-nil, zero value otherwise. ### GetCrudTypeOk -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetCrudTypeOk() (*string, bool)` +`func (o *APIAuditLog) GetCrudTypeOk() (*string, bool)` GetCrudTypeOk returns a tuple with the CrudType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCrudType -`func (o *PickTenantAuditLogTenantAuditLogKeys) SetCrudType(v string)` +`func (o *APIAuditLog) SetCrudType(v string)` SetCrudType sets CrudType field to given value. ### GetFrom -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetFrom() string` +`func (o *APIAuditLog) GetFrom() string` GetFrom returns the From field if non-nil, zero value otherwise. ### GetFromOk -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetFromOk() (*string, bool)` +`func (o *APIAuditLog) GetFromOk() (*string, bool)` GetFromOk returns a tuple with the From field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetFrom -`func (o *PickTenantAuditLogTenantAuditLogKeys) SetFrom(v string)` +`func (o *APIAuditLog) SetFrom(v string)` SetFrom sets From field to given value. ### HasFrom -`func (o *PickTenantAuditLogTenantAuditLogKeys) HasFrom() bool` +`func (o *APIAuditLog) HasFrom() bool` HasFrom returns a boolean if a field has been set. +### GetUrl + +`func (o *APIAuditLog) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *APIAuditLog) 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 *APIAuditLog) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *APIAuditLog) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### SetUrlNil + +`func (o *APIAuditLog) SetUrlNil(b bool)` + + SetUrlNil sets the value for Url to be an explicit nil + +### UnsetUrl +`func (o *APIAuditLog) UnsetUrl()` + +UnsetUrl ensures that no value is present for Url, not even an explicit nil ### GetIp -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetIp() string` +`func (o *APIAuditLog) GetIp() string` GetIp returns the Ip field if non-nil, zero value otherwise. ### GetIpOk -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetIpOk() (*string, bool)` +`func (o *APIAuditLog) GetIpOk() (*string, bool)` GetIpOk returns a tuple with the Ip field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIp -`func (o *PickTenantAuditLogTenantAuditLogKeys) SetIp(v string)` +`func (o *APIAuditLog) SetIp(v string)` SetIp sets Ip field to given value. ### HasIp -`func (o *PickTenantAuditLogTenantAuditLogKeys) HasIp() bool` +`func (o *APIAuditLog) HasIp() bool` HasIp returns a boolean if a field has been set. +### SetIpNil + +`func (o *APIAuditLog) SetIpNil(b bool)` + + SetIpNil sets the value for Ip to be an explicit nil + +### UnsetIp +`func (o *APIAuditLog) UnsetIp()` + +UnsetIp ensures that no value is present for Ip, not even an explicit nil ### GetWhen -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetWhen() time.Time` +`func (o *APIAuditLog) GetWhen() time.Time` GetWhen returns the When field if non-nil, zero value otherwise. ### GetWhenOk -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetWhenOk() (*time.Time, bool)` +`func (o *APIAuditLog) GetWhenOk() (*time.Time, bool)` GetWhenOk returns a tuple with the When field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWhen -`func (o *PickTenantAuditLogTenantAuditLogKeys) SetWhen(v time.Time)` +`func (o *APIAuditLog) SetWhen(v time.Time)` SetWhen sets When field to given value. ### HasWhen -`func (o *PickTenantAuditLogTenantAuditLogKeys) HasWhen() bool` +`func (o *APIAuditLog) HasWhen() bool` HasWhen returns a boolean if a field has been set. ### GetDescription -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetDescription() string` +`func (o *APIAuditLog) GetDescription() string` GetDescription returns the Description field if non-nil, zero value otherwise. ### GetDescriptionOk -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetDescriptionOk() (*string, bool)` +`func (o *APIAuditLog) GetDescriptionOk() (*string, bool)` GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDescription -`func (o *PickTenantAuditLogTenantAuditLogKeys) SetDescription(v string)` +`func (o *APIAuditLog) SetDescription(v string)` SetDescription sets Description field to given value. ### HasDescription -`func (o *PickTenantAuditLogTenantAuditLogKeys) HasDescription() bool` +`func (o *APIAuditLog) HasDescription() bool` HasDescription returns a boolean if a field has been set. ### GetServerStartDate -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetServerStartDate() time.Time` +`func (o *APIAuditLog) GetServerStartDate() time.Time` GetServerStartDate returns the ServerStartDate field if non-nil, zero value otherwise. ### GetServerStartDateOk -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetServerStartDateOk() (*time.Time, bool)` +`func (o *APIAuditLog) GetServerStartDateOk() (*time.Time, bool)` GetServerStartDateOk returns a tuple with the ServerStartDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetServerStartDate -`func (o *PickTenantAuditLogTenantAuditLogKeys) SetServerStartDate(v time.Time)` +`func (o *APIAuditLog) SetServerStartDate(v time.Time)` SetServerStartDate sets ServerStartDate field to given value. ### HasServerStartDate -`func (o *PickTenantAuditLogTenantAuditLogKeys) HasServerStartDate() bool` +`func (o *APIAuditLog) HasServerStartDate() bool` HasServerStartDate returns a boolean if a field has been set. ### GetObjectDetails -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetObjectDetails() map[string]interface{}` +`func (o *APIAuditLog) GetObjectDetails() map[string]interface{}` GetObjectDetails returns the ObjectDetails field if non-nil, zero value otherwise. ### GetObjectDetailsOk -`func (o *PickTenantAuditLogTenantAuditLogKeys) GetObjectDetailsOk() (*map[string]interface{}, bool)` +`func (o *APIAuditLog) GetObjectDetailsOk() (*map[string]interface{}, bool)` GetObjectDetailsOk returns a tuple with the ObjectDetails field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetObjectDetails -`func (o *PickTenantAuditLogTenantAuditLogKeys) SetObjectDetails(v map[string]interface{})` +`func (o *APIAuditLog) SetObjectDetails(v map[string]interface{})` SetObjectDetails sets ObjectDetails field to given value. ### HasObjectDetails -`func (o *PickTenantAuditLogTenantAuditLogKeys) HasObjectDetails() bool` +`func (o *APIAuditLog) HasObjectDetails() bool` HasObjectDetails returns a boolean if a field has been set. +### SetObjectDetailsNil + +`func (o *APIAuditLog) SetObjectDetailsNil(b bool)` + + SetObjectDetailsNil sets the value for ObjectDetails to be an explicit nil + +### UnsetObjectDetails +`func (o *APIAuditLog) UnsetObjectDetails()` + +UnsetObjectDetails ensures that no value is present for ObjectDetails, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/PickFCommentAPICommentFieldsKeys.md b/client/docs/APIComment.md similarity index 55% rename from client/docs/PickFCommentAPICommentFieldsKeys.md rename to client/docs/APIComment.md index 7ffd53d..b78f234 100644 --- a/client/docs/PickFCommentAPICommentFieldsKeys.md +++ b/client/docs/APIComment.md @@ -1,1352 +1,1612 @@ -# PickFCommentAPICommentFieldsKeys +# APIComment ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Date** | **time.Time** | | **Id** | **string** | | -**TenantId** | **string** | | -**UrlId** | **string** | | -**UrlIdRaw** | Pointer to **string** | | [optional] -**Url** | **string** | | -**PageTitle** | Pointer to **string** | | [optional] -**UserId** | Pointer to **string** | | [optional] -**AnonUserId** | Pointer to **string** | | [optional] -**CommenterEmail** | Pointer to **string** | | [optional] -**CommenterName** | **string** | | -**CommenterLink** | Pointer to **string** | | [optional] +**AiDeterminedSpam** | Pointer to **bool** | | [optional] +**AnonUserId** | Pointer to **NullableString** | | [optional] +**Approved** | **bool** | | +**AvatarSrc** | Pointer to **NullableString** | | [optional] +**Badges** | Pointer to [**[]CommentUserBadgeInfo**](CommentUserBadgeInfo.md) | | [optional] **Comment** | **string** | | **CommentHTML** | **string** | | -**ParentId** | Pointer to **string** | | [optional] -**LocalDateString** | Pointer to **string** | | [optional] -**LocalDateHours** | Pointer to **int32** | | [optional] -**Votes** | Pointer to **int32** | | [optional] -**VotesUp** | Pointer to **int32** | | [optional] -**VotesDown** | Pointer to **int32** | | [optional] -**ExpireAt** | Pointer to **time.Time** | | [optional] -**Verified** | **bool** | | -**VerifiedDate** | Pointer to **time.Time** | | [optional] -**NotificationSentForParent** | Pointer to **bool** | | [optional] -**NotificationSentForParentTenant** | Pointer to **bool** | | [optional] -**Reviewed** | Pointer to **bool** | | [optional] +**CommenterEmail** | Pointer to **NullableString** | | [optional] +**CommenterLink** | Pointer to **NullableString** | | [optional] +**CommenterName** | **string** | | +**Date** | **NullableFloat64** | | +**DisplayLabel** | Pointer to **NullableString** | | [optional] +**Domain** | Pointer to **NullableString** | | [optional] **ExternalId** | Pointer to **string** | | [optional] -**ExternalParentId** | Pointer to **string** | | [optional] -**AvatarSrc** | Pointer to **string** | | [optional] -**IsSpam** | Pointer to **bool** | | [optional] -**AiDeterminedSpam** | Pointer to **bool** | | [optional] +**ExternalParentId** | Pointer to **NullableString** | | [optional] +**ExpireAt** | Pointer to **NullableTime** | | [optional] +**FeedbackIds** | Pointer to **[]string** | | [optional] +**FlagCount** | Pointer to **NullableInt32** | | [optional] +**FromProductId** | Pointer to **int32** | | [optional] +**HasCode** | Pointer to **bool** | | [optional] **HasImages** | Pointer to **bool** | | [optional] **HasLinks** | Pointer to **bool** | | [optional] -**HasCode** | Pointer to **bool** | | [optional] -**Approved** | **bool** | | -**Locale** | **string** | | -**IsDeleted** | Pointer to **bool** | | [optional] -**IsDeletedUser** | Pointer to **bool** | | [optional] +**HashTags** | Pointer to [**[]CommentUserHashTagInfo**](CommentUserHashTagInfo.md) | | [optional] **IsByAdmin** | Pointer to **bool** | | [optional] **IsByModerator** | Pointer to **bool** | | [optional] -**IsPinned** | Pointer to **bool** | | [optional] -**IsLocked** | Pointer to **bool** | | [optional] -**FlagCount** | Pointer to **int32** | | [optional] -**Rating** | Pointer to **float64** | | [optional] -**DisplayLabel** | Pointer to **string** | | [optional] -**FromProductId** | Pointer to **int32** | | [optional] -**Meta** | Pointer to [**PickFCommentAPICommentFieldsKeysMeta**](PickFCommentAPICommentFieldsKeysMeta.md) | | [optional] +**IsDeleted** | Pointer to **bool** | | [optional] +**IsDeletedUser** | Pointer to **bool** | | [optional] +**IsPinned** | Pointer to **NullableBool** | | [optional] +**IsLocked** | Pointer to **NullableBool** | | [optional] +**IsSpam** | Pointer to **bool** | | [optional] +**LocalDateHours** | Pointer to **NullableInt32** | | [optional] +**LocalDateString** | Pointer to **NullableString** | | [optional] +**Locale** | **NullableString** | | **Mentions** | Pointer to [**[]CommentUserMentionInfo**](CommentUserMentionInfo.md) | | [optional] -**HashTags** | Pointer to [**[]CommentUserHashTagInfo**](CommentUserHashTagInfo.md) | | [optional] -**Badges** | Pointer to [**[]CommentUserBadgeInfo**](CommentUserBadgeInfo.md) | | [optional] -**Domain** | Pointer to **string** | | [optional] +**Meta** | Pointer to [**NullableFCommentMeta**](FCommentMeta.md) | | [optional] **ModerationGroupIds** | Pointer to **[]string** | | [optional] -**FeedbackIds** | Pointer to **[]string** | | [optional] +**NotificationSentForParent** | Pointer to **bool** | | [optional] +**NotificationSentForParentTenant** | Pointer to **bool** | | [optional] +**PageTitle** | Pointer to **NullableString** | | [optional] +**ParentId** | Pointer to **NullableString** | | [optional] +**Rating** | Pointer to **NullableFloat64** | | [optional] +**Reviewed** | Pointer to **bool** | | [optional] +**TenantId** | **string** | | +**Url** | **string** | | +**UrlId** | **string** | | +**UrlIdRaw** | Pointer to **string** | | [optional] +**UserId** | Pointer to **NullableString** | | [optional] +**Verified** | **bool** | | +**VerifiedDate** | Pointer to **NullableTime** | | [optional] +**Votes** | Pointer to **NullableInt32** | | [optional] +**VotesDown** | Pointer to **NullableInt32** | | [optional] +**VotesUp** | Pointer to **NullableInt32** | | [optional] ## Methods -### NewPickFCommentAPICommentFieldsKeys +### NewAPIComment -`func NewPickFCommentAPICommentFieldsKeys(date time.Time, id string, tenantId string, urlId string, url string, commenterName string, comment string, commentHTML string, verified bool, approved bool, locale string, ) *PickFCommentAPICommentFieldsKeys` +`func NewAPIComment(id string, approved bool, comment string, commentHTML string, commenterName string, date NullableFloat64, locale NullableString, tenantId string, url string, urlId string, verified bool, ) *APIComment` -NewPickFCommentAPICommentFieldsKeys instantiates a new PickFCommentAPICommentFieldsKeys object +NewAPIComment instantiates a new APIComment 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 -### NewPickFCommentAPICommentFieldsKeysWithDefaults +### NewAPICommentWithDefaults -`func NewPickFCommentAPICommentFieldsKeysWithDefaults() *PickFCommentAPICommentFieldsKeys` +`func NewAPICommentWithDefaults() *APIComment` -NewPickFCommentAPICommentFieldsKeysWithDefaults instantiates a new PickFCommentAPICommentFieldsKeys object +NewAPICommentWithDefaults instantiates a new APIComment 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 -### GetDate +### GetId -`func (o *PickFCommentAPICommentFieldsKeys) GetDate() time.Time` +`func (o *APIComment) GetId() string` -GetDate returns the Date field if non-nil, zero value otherwise. +GetId returns the Id field if non-nil, zero value otherwise. -### GetDateOk +### GetIdOk -`func (o *PickFCommentAPICommentFieldsKeys) GetDateOk() (*time.Time, bool)` +`func (o *APIComment) GetIdOk() (*string, bool)` -GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +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. -### SetDate +### SetId -`func (o *PickFCommentAPICommentFieldsKeys) SetDate(v time.Time)` +`func (o *APIComment) SetId(v string)` -SetDate sets Date field to given value. +SetId sets Id field to given value. -### GetId +### GetAiDeterminedSpam -`func (o *PickFCommentAPICommentFieldsKeys) GetId() string` +`func (o *APIComment) GetAiDeterminedSpam() bool` -GetId returns the Id field if non-nil, zero value otherwise. +GetAiDeterminedSpam returns the AiDeterminedSpam field if non-nil, zero value otherwise. -### GetIdOk +### GetAiDeterminedSpamOk -`func (o *PickFCommentAPICommentFieldsKeys) GetIdOk() (*string, bool)` +`func (o *APIComment) GetAiDeterminedSpamOk() (*bool, bool)` -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +GetAiDeterminedSpamOk returns a tuple with the AiDeterminedSpam field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetId +### SetAiDeterminedSpam -`func (o *PickFCommentAPICommentFieldsKeys) SetId(v string)` +`func (o *APIComment) SetAiDeterminedSpam(v bool)` -SetId sets Id field to given value. +SetAiDeterminedSpam sets AiDeterminedSpam field to given value. +### HasAiDeterminedSpam -### GetTenantId +`func (o *APIComment) HasAiDeterminedSpam() bool` -`func (o *PickFCommentAPICommentFieldsKeys) GetTenantId() string` +HasAiDeterminedSpam returns a boolean if a field has been set. -GetTenantId returns the TenantId field if non-nil, zero value otherwise. +### GetAnonUserId -### GetTenantIdOk +`func (o *APIComment) GetAnonUserId() string` -`func (o *PickFCommentAPICommentFieldsKeys) GetTenantIdOk() (*string, bool)` +GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. -GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise +### GetAnonUserIdOk + +`func (o *APIComment) GetAnonUserIdOk() (*string, bool)` + +GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetTenantId +### SetAnonUserId -`func (o *PickFCommentAPICommentFieldsKeys) SetTenantId(v string)` +`func (o *APIComment) SetAnonUserId(v string)` -SetTenantId sets TenantId field to given value. +SetAnonUserId sets AnonUserId field to given value. +### HasAnonUserId -### GetUrlId +`func (o *APIComment) HasAnonUserId() bool` -`func (o *PickFCommentAPICommentFieldsKeys) GetUrlId() string` +HasAnonUserId returns a boolean if a field has been set. -GetUrlId returns the UrlId field if non-nil, zero value otherwise. +### SetAnonUserIdNil -### GetUrlIdOk +`func (o *APIComment) SetAnonUserIdNil(b bool)` -`func (o *PickFCommentAPICommentFieldsKeys) GetUrlIdOk() (*string, bool)` + SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil -GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### UnsetAnonUserId +`func (o *APIComment) UnsetAnonUserId()` -### SetUrlId +UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +### GetApproved -`func (o *PickFCommentAPICommentFieldsKeys) SetUrlId(v string)` +`func (o *APIComment) GetApproved() bool` -SetUrlId sets UrlId field to given value. +GetApproved returns the Approved field if non-nil, zero value otherwise. +### GetApprovedOk -### GetUrlIdRaw +`func (o *APIComment) GetApprovedOk() (*bool, bool)` -`func (o *PickFCommentAPICommentFieldsKeys) GetUrlIdRaw() string` +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -GetUrlIdRaw returns the UrlIdRaw field if non-nil, zero value otherwise. +### SetApproved -### GetUrlIdRawOk +`func (o *APIComment) SetApproved(v bool)` -`func (o *PickFCommentAPICommentFieldsKeys) GetUrlIdRawOk() (*string, bool)` +SetApproved sets Approved field to given value. -GetUrlIdRawOk returns a tuple with the UrlIdRaw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. -### SetUrlIdRaw +### GetAvatarSrc -`func (o *PickFCommentAPICommentFieldsKeys) SetUrlIdRaw(v string)` +`func (o *APIComment) GetAvatarSrc() string` -SetUrlIdRaw sets UrlIdRaw field to given value. +GetAvatarSrc returns the AvatarSrc field if non-nil, zero value otherwise. -### HasUrlIdRaw +### GetAvatarSrcOk -`func (o *PickFCommentAPICommentFieldsKeys) HasUrlIdRaw() bool` +`func (o *APIComment) GetAvatarSrcOk() (*string, bool)` -HasUrlIdRaw returns a boolean if a field has been set. +GetAvatarSrcOk returns a tuple with the AvatarSrc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -### GetUrl +### SetAvatarSrc -`func (o *PickFCommentAPICommentFieldsKeys) GetUrl() string` +`func (o *APIComment) SetAvatarSrc(v string)` -GetUrl returns the Url field if non-nil, zero value otherwise. +SetAvatarSrc sets AvatarSrc field to given value. -### GetUrlOk +### HasAvatarSrc -`func (o *PickFCommentAPICommentFieldsKeys) GetUrlOk() (*string, bool)` +`func (o *APIComment) HasAvatarSrc() 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. +HasAvatarSrc returns a boolean if a field has been set. -### SetUrl +### SetAvatarSrcNil -`func (o *PickFCommentAPICommentFieldsKeys) SetUrl(v string)` +`func (o *APIComment) SetAvatarSrcNil(b bool)` -SetUrl sets Url field to given value. + SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil +### UnsetAvatarSrc +`func (o *APIComment) UnsetAvatarSrc()` -### GetPageTitle +UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +### GetBadges -`func (o *PickFCommentAPICommentFieldsKeys) GetPageTitle() string` +`func (o *APIComment) GetBadges() []CommentUserBadgeInfo` -GetPageTitle returns the PageTitle field if non-nil, zero value otherwise. +GetBadges returns the Badges field if non-nil, zero value otherwise. -### GetPageTitleOk +### GetBadgesOk -`func (o *PickFCommentAPICommentFieldsKeys) GetPageTitleOk() (*string, bool)` +`func (o *APIComment) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` -GetPageTitleOk returns a tuple with the PageTitle field if it's non-nil, zero value otherwise +GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPageTitle +### SetBadges -`func (o *PickFCommentAPICommentFieldsKeys) SetPageTitle(v string)` +`func (o *APIComment) SetBadges(v []CommentUserBadgeInfo)` -SetPageTitle sets PageTitle field to given value. +SetBadges sets Badges field to given value. -### HasPageTitle +### HasBadges -`func (o *PickFCommentAPICommentFieldsKeys) HasPageTitle() bool` +`func (o *APIComment) HasBadges() bool` -HasPageTitle returns a boolean if a field has been set. +HasBadges returns a boolean if a field has been set. -### GetUserId +### SetBadgesNil -`func (o *PickFCommentAPICommentFieldsKeys) GetUserId() string` +`func (o *APIComment) SetBadgesNil(b bool)` -GetUserId returns the UserId field if non-nil, zero value otherwise. + SetBadgesNil sets the value for Badges to be an explicit nil -### GetUserIdOk +### UnsetBadges +`func (o *APIComment) UnsetBadges()` -`func (o *PickFCommentAPICommentFieldsKeys) GetUserIdOk() (*string, bool)` +UnsetBadges ensures that no value is present for Badges, not even an explicit nil +### GetComment -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. +`func (o *APIComment) GetComment() string` -### SetUserId +GetComment returns the Comment field if non-nil, zero value otherwise. -`func (o *PickFCommentAPICommentFieldsKeys) SetUserId(v string)` +### GetCommentOk -SetUserId sets UserId field to given value. +`func (o *APIComment) GetCommentOk() (*string, bool)` -### HasUserId +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *PickFCommentAPICommentFieldsKeys) HasUserId() bool` +### SetComment -HasUserId returns a boolean if a field has been set. +`func (o *APIComment) SetComment(v string)` -### GetAnonUserId +SetComment sets Comment field to given value. -`func (o *PickFCommentAPICommentFieldsKeys) GetAnonUserId() string` -GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. +### GetCommentHTML -### GetAnonUserIdOk +`func (o *APIComment) GetCommentHTML() string` -`func (o *PickFCommentAPICommentFieldsKeys) GetAnonUserIdOk() (*string, bool)` +GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. -GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### GetCommentHTMLOk -### SetAnonUserId +`func (o *APIComment) GetCommentHTMLOk() (*string, bool)` -`func (o *PickFCommentAPICommentFieldsKeys) SetAnonUserId(v string)` +GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -SetAnonUserId sets AnonUserId field to given value. +### SetCommentHTML -### HasAnonUserId +`func (o *APIComment) SetCommentHTML(v string)` -`func (o *PickFCommentAPICommentFieldsKeys) HasAnonUserId() bool` +SetCommentHTML sets CommentHTML field to given value. -HasAnonUserId returns a boolean if a field has been set. ### GetCommenterEmail -`func (o *PickFCommentAPICommentFieldsKeys) GetCommenterEmail() string` +`func (o *APIComment) GetCommenterEmail() string` GetCommenterEmail returns the CommenterEmail field if non-nil, zero value otherwise. ### GetCommenterEmailOk -`func (o *PickFCommentAPICommentFieldsKeys) GetCommenterEmailOk() (*string, bool)` +`func (o *APIComment) GetCommenterEmailOk() (*string, bool)` GetCommenterEmailOk returns a tuple with the CommenterEmail field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCommenterEmail -`func (o *PickFCommentAPICommentFieldsKeys) SetCommenterEmail(v string)` +`func (o *APIComment) SetCommenterEmail(v string)` SetCommenterEmail sets CommenterEmail field to given value. ### HasCommenterEmail -`func (o *PickFCommentAPICommentFieldsKeys) HasCommenterEmail() bool` +`func (o *APIComment) HasCommenterEmail() bool` HasCommenterEmail returns a boolean if a field has been set. -### GetCommenterName - -`func (o *PickFCommentAPICommentFieldsKeys) GetCommenterName() string` - -GetCommenterName returns the CommenterName field if non-nil, zero value otherwise. - -### GetCommenterNameOk - -`func (o *PickFCommentAPICommentFieldsKeys) GetCommenterNameOk() (*string, bool)` - -GetCommenterNameOk returns a tuple with the CommenterName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommenterName +### SetCommenterEmailNil -`func (o *PickFCommentAPICommentFieldsKeys) SetCommenterName(v string)` +`func (o *APIComment) SetCommenterEmailNil(b bool)` -SetCommenterName sets CommenterName field to given value. + SetCommenterEmailNil sets the value for CommenterEmail to be an explicit nil +### UnsetCommenterEmail +`func (o *APIComment) UnsetCommenterEmail()` +UnsetCommenterEmail ensures that no value is present for CommenterEmail, not even an explicit nil ### GetCommenterLink -`func (o *PickFCommentAPICommentFieldsKeys) GetCommenterLink() string` +`func (o *APIComment) GetCommenterLink() string` GetCommenterLink returns the CommenterLink field if non-nil, zero value otherwise. ### GetCommenterLinkOk -`func (o *PickFCommentAPICommentFieldsKeys) GetCommenterLinkOk() (*string, bool)` +`func (o *APIComment) GetCommenterLinkOk() (*string, bool)` GetCommenterLinkOk returns a tuple with the CommenterLink field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCommenterLink -`func (o *PickFCommentAPICommentFieldsKeys) SetCommenterLink(v string)` +`func (o *APIComment) SetCommenterLink(v string)` SetCommenterLink sets CommenterLink field to given value. ### HasCommenterLink -`func (o *PickFCommentAPICommentFieldsKeys) HasCommenterLink() bool` +`func (o *APIComment) HasCommenterLink() bool` HasCommenterLink returns a boolean if a field has been set. -### GetComment +### SetCommenterLinkNil -`func (o *PickFCommentAPICommentFieldsKeys) GetComment() string` +`func (o *APIComment) SetCommenterLinkNil(b bool)` -GetComment returns the Comment field if non-nil, zero value otherwise. + SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil -### GetCommentOk +### UnsetCommenterLink +`func (o *APIComment) UnsetCommenterLink()` -`func (o *PickFCommentAPICommentFieldsKeys) GetCommentOk() (*string, bool)` +UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +### GetCommenterName -GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *APIComment) GetCommenterName() string` -### SetComment +GetCommenterName returns the CommenterName field if non-nil, zero value otherwise. -`func (o *PickFCommentAPICommentFieldsKeys) SetComment(v string)` +### GetCommenterNameOk -SetComment sets Comment field to given value. +`func (o *APIComment) GetCommenterNameOk() (*string, bool)` +GetCommenterNameOk returns a tuple with the CommenterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -### GetCommentHTML +### SetCommenterName -`func (o *PickFCommentAPICommentFieldsKeys) GetCommentHTML() string` +`func (o *APIComment) SetCommenterName(v string)` -GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. +SetCommenterName sets CommenterName field to given value. -### GetCommentHTMLOk -`func (o *PickFCommentAPICommentFieldsKeys) GetCommentHTMLOk() (*string, bool)` +### GetDate -GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *APIComment) GetDate() float64` -### SetCommentHTML +GetDate returns the Date field if non-nil, zero value otherwise. -`func (o *PickFCommentAPICommentFieldsKeys) SetCommentHTML(v string)` +### GetDateOk -SetCommentHTML sets CommentHTML field to given value. +`func (o *APIComment) GetDateOk() (*float64, bool)` +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -### GetParentId +### SetDate -`func (o *PickFCommentAPICommentFieldsKeys) GetParentId() string` +`func (o *APIComment) SetDate(v float64)` -GetParentId returns the ParentId field if non-nil, zero value otherwise. +SetDate sets Date field to given value. -### GetParentIdOk -`func (o *PickFCommentAPICommentFieldsKeys) GetParentIdOk() (*string, bool)` +### SetDateNil -GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *APIComment) SetDateNil(b bool)` -### SetParentId + SetDateNil sets the value for Date to be an explicit nil -`func (o *PickFCommentAPICommentFieldsKeys) SetParentId(v string)` +### UnsetDate +`func (o *APIComment) UnsetDate()` -SetParentId sets ParentId field to given value. +UnsetDate ensures that no value is present for Date, not even an explicit nil +### GetDisplayLabel -### HasParentId +`func (o *APIComment) GetDisplayLabel() string` -`func (o *PickFCommentAPICommentFieldsKeys) HasParentId() bool` +GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. -HasParentId returns a boolean if a field has been set. +### GetDisplayLabelOk -### GetLocalDateString +`func (o *APIComment) GetDisplayLabelOk() (*string, bool)` -`func (o *PickFCommentAPICommentFieldsKeys) GetLocalDateString() string` +GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -GetLocalDateString returns the LocalDateString field if non-nil, zero value otherwise. +### SetDisplayLabel -### GetLocalDateStringOk +`func (o *APIComment) SetDisplayLabel(v string)` -`func (o *PickFCommentAPICommentFieldsKeys) GetLocalDateStringOk() (*string, bool)` +SetDisplayLabel sets DisplayLabel field to given value. -GetLocalDateStringOk returns a tuple with the LocalDateString field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### HasDisplayLabel -### SetLocalDateString +`func (o *APIComment) HasDisplayLabel() bool` -`func (o *PickFCommentAPICommentFieldsKeys) SetLocalDateString(v string)` +HasDisplayLabel returns a boolean if a field has been set. -SetLocalDateString sets LocalDateString field to given value. +### SetDisplayLabelNil -### HasLocalDateString +`func (o *APIComment) SetDisplayLabelNil(b bool)` -`func (o *PickFCommentAPICommentFieldsKeys) HasLocalDateString() bool` + SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil -HasLocalDateString returns a boolean if a field has been set. +### UnsetDisplayLabel +`func (o *APIComment) UnsetDisplayLabel()` -### GetLocalDateHours +UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +### GetDomain -`func (o *PickFCommentAPICommentFieldsKeys) GetLocalDateHours() int32` +`func (o *APIComment) GetDomain() string` -GetLocalDateHours returns the LocalDateHours field if non-nil, zero value otherwise. +GetDomain returns the Domain field if non-nil, zero value otherwise. -### GetLocalDateHoursOk +### GetDomainOk -`func (o *PickFCommentAPICommentFieldsKeys) GetLocalDateHoursOk() (*int32, bool)` +`func (o *APIComment) GetDomainOk() (*string, bool)` -GetLocalDateHoursOk returns a tuple with the LocalDateHours field if it's non-nil, zero value otherwise +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetLocalDateHours +### SetDomain -`func (o *PickFCommentAPICommentFieldsKeys) SetLocalDateHours(v int32)` +`func (o *APIComment) SetDomain(v string)` -SetLocalDateHours sets LocalDateHours field to given value. +SetDomain sets Domain field to given value. -### HasLocalDateHours +### HasDomain -`func (o *PickFCommentAPICommentFieldsKeys) HasLocalDateHours() bool` +`func (o *APIComment) HasDomain() bool` -HasLocalDateHours returns a boolean if a field has been set. +HasDomain returns a boolean if a field has been set. -### GetVotes +### SetDomainNil -`func (o *PickFCommentAPICommentFieldsKeys) GetVotes() int32` +`func (o *APIComment) SetDomainNil(b bool)` -GetVotes returns the Votes field if non-nil, zero value otherwise. + SetDomainNil sets the value for Domain to be an explicit nil -### GetVotesOk +### UnsetDomain +`func (o *APIComment) UnsetDomain()` -`func (o *PickFCommentAPICommentFieldsKeys) GetVotesOk() (*int32, bool)` +UnsetDomain ensures that no value is present for Domain, not even an explicit nil +### GetExternalId -GetVotesOk returns a tuple with the Votes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVotes - -`func (o *PickFCommentAPICommentFieldsKeys) SetVotes(v int32)` - -SetVotes sets Votes field to given value. - -### HasVotes +`func (o *APIComment) GetExternalId() string` -`func (o *PickFCommentAPICommentFieldsKeys) HasVotes() bool` +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. -HasVotes returns a boolean if a field has been set. +### GetExternalIdOk -### GetVotesUp +`func (o *APIComment) GetExternalIdOk() (*string, bool)` -`func (o *PickFCommentAPICommentFieldsKeys) GetVotesUp() int32` +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -GetVotesUp returns the VotesUp field if non-nil, zero value otherwise. +### SetExternalId -### GetVotesUpOk +`func (o *APIComment) SetExternalId(v string)` -`func (o *PickFCommentAPICommentFieldsKeys) GetVotesUpOk() (*int32, bool)` +SetExternalId sets ExternalId field to given value. -GetVotesUpOk returns a tuple with the VotesUp field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### HasExternalId -### SetVotesUp +`func (o *APIComment) HasExternalId() bool` -`func (o *PickFCommentAPICommentFieldsKeys) SetVotesUp(v int32)` +HasExternalId returns a boolean if a field has been set. -SetVotesUp sets VotesUp field to given value. +### GetExternalParentId -### HasVotesUp +`func (o *APIComment) GetExternalParentId() string` -`func (o *PickFCommentAPICommentFieldsKeys) HasVotesUp() bool` +GetExternalParentId returns the ExternalParentId field if non-nil, zero value otherwise. -HasVotesUp returns a boolean if a field has been set. +### GetExternalParentIdOk -### GetVotesDown +`func (o *APIComment) GetExternalParentIdOk() (*string, bool)` -`func (o *PickFCommentAPICommentFieldsKeys) GetVotesDown() int32` +GetExternalParentIdOk returns a tuple with the ExternalParentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -GetVotesDown returns the VotesDown field if non-nil, zero value otherwise. +### SetExternalParentId -### GetVotesDownOk +`func (o *APIComment) SetExternalParentId(v string)` -`func (o *PickFCommentAPICommentFieldsKeys) GetVotesDownOk() (*int32, bool)` +SetExternalParentId sets ExternalParentId field to given value. -GetVotesDownOk returns a tuple with the VotesDown field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### HasExternalParentId -### SetVotesDown +`func (o *APIComment) HasExternalParentId() bool` -`func (o *PickFCommentAPICommentFieldsKeys) SetVotesDown(v int32)` +HasExternalParentId returns a boolean if a field has been set. -SetVotesDown sets VotesDown field to given value. +### SetExternalParentIdNil -### HasVotesDown +`func (o *APIComment) SetExternalParentIdNil(b bool)` -`func (o *PickFCommentAPICommentFieldsKeys) HasVotesDown() bool` + SetExternalParentIdNil sets the value for ExternalParentId to be an explicit nil -HasVotesDown returns a boolean if a field has been set. +### UnsetExternalParentId +`func (o *APIComment) UnsetExternalParentId()` +UnsetExternalParentId ensures that no value is present for ExternalParentId, not even an explicit nil ### GetExpireAt -`func (o *PickFCommentAPICommentFieldsKeys) GetExpireAt() time.Time` +`func (o *APIComment) GetExpireAt() time.Time` GetExpireAt returns the ExpireAt field if non-nil, zero value otherwise. ### GetExpireAtOk -`func (o *PickFCommentAPICommentFieldsKeys) GetExpireAtOk() (*time.Time, bool)` +`func (o *APIComment) GetExpireAtOk() (*time.Time, bool)` GetExpireAtOk returns a tuple with the ExpireAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetExpireAt -`func (o *PickFCommentAPICommentFieldsKeys) SetExpireAt(v time.Time)` +`func (o *APIComment) SetExpireAt(v time.Time)` SetExpireAt sets ExpireAt field to given value. ### HasExpireAt -`func (o *PickFCommentAPICommentFieldsKeys) HasExpireAt() bool` +`func (o *APIComment) HasExpireAt() bool` HasExpireAt returns a boolean if a field has been set. -### GetVerified - -`func (o *PickFCommentAPICommentFieldsKeys) GetVerified() bool` - -GetVerified returns the Verified field if non-nil, zero value otherwise. +### SetExpireAtNil -### GetVerifiedOk +`func (o *APIComment) SetExpireAtNil(b bool)` -`func (o *PickFCommentAPICommentFieldsKeys) GetVerifiedOk() (*bool, bool)` + SetExpireAtNil sets the value for ExpireAt to be an explicit nil -GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### UnsetExpireAt +`func (o *APIComment) UnsetExpireAt()` -### SetVerified +UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +### GetFeedbackIds -`func (o *PickFCommentAPICommentFieldsKeys) SetVerified(v bool)` +`func (o *APIComment) GetFeedbackIds() []string` -SetVerified sets Verified field to given value. +GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. +### GetFeedbackIdsOk -### GetVerifiedDate +`func (o *APIComment) GetFeedbackIdsOk() (*[]string, bool)` -`func (o *PickFCommentAPICommentFieldsKeys) GetVerifiedDate() time.Time` +GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -GetVerifiedDate returns the VerifiedDate field if non-nil, zero value otherwise. +### SetFeedbackIds -### GetVerifiedDateOk +`func (o *APIComment) SetFeedbackIds(v []string)` -`func (o *PickFCommentAPICommentFieldsKeys) GetVerifiedDateOk() (*time.Time, bool)` +SetFeedbackIds sets FeedbackIds field to given value. -GetVerifiedDateOk returns a tuple with the VerifiedDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### HasFeedbackIds -### SetVerifiedDate +`func (o *APIComment) HasFeedbackIds() bool` -`func (o *PickFCommentAPICommentFieldsKeys) SetVerifiedDate(v time.Time)` +HasFeedbackIds returns a boolean if a field has been set. -SetVerifiedDate sets VerifiedDate field to given value. +### GetFlagCount -### HasVerifiedDate +`func (o *APIComment) GetFlagCount() int32` -`func (o *PickFCommentAPICommentFieldsKeys) HasVerifiedDate() bool` +GetFlagCount returns the FlagCount field if non-nil, zero value otherwise. -HasVerifiedDate returns a boolean if a field has been set. +### GetFlagCountOk -### GetNotificationSentForParent +`func (o *APIComment) GetFlagCountOk() (*int32, bool)` -`func (o *PickFCommentAPICommentFieldsKeys) GetNotificationSentForParent() bool` +GetFlagCountOk returns a tuple with the FlagCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -GetNotificationSentForParent returns the NotificationSentForParent field if non-nil, zero value otherwise. +### SetFlagCount -### GetNotificationSentForParentOk +`func (o *APIComment) SetFlagCount(v int32)` -`func (o *PickFCommentAPICommentFieldsKeys) GetNotificationSentForParentOk() (*bool, bool)` +SetFlagCount sets FlagCount field to given value. -GetNotificationSentForParentOk returns a tuple with the NotificationSentForParent field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### HasFlagCount -### SetNotificationSentForParent +`func (o *APIComment) HasFlagCount() bool` -`func (o *PickFCommentAPICommentFieldsKeys) SetNotificationSentForParent(v bool)` +HasFlagCount returns a boolean if a field has been set. -SetNotificationSentForParent sets NotificationSentForParent field to given value. +### SetFlagCountNil -### HasNotificationSentForParent +`func (o *APIComment) SetFlagCountNil(b bool)` -`func (o *PickFCommentAPICommentFieldsKeys) HasNotificationSentForParent() bool` + SetFlagCountNil sets the value for FlagCount to be an explicit nil -HasNotificationSentForParent returns a boolean if a field has been set. +### UnsetFlagCount +`func (o *APIComment) UnsetFlagCount()` -### GetNotificationSentForParentTenant +UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil +### GetFromProductId -`func (o *PickFCommentAPICommentFieldsKeys) GetNotificationSentForParentTenant() bool` +`func (o *APIComment) GetFromProductId() int32` -GetNotificationSentForParentTenant returns the NotificationSentForParentTenant field if non-nil, zero value otherwise. +GetFromProductId returns the FromProductId field if non-nil, zero value otherwise. -### GetNotificationSentForParentTenantOk +### GetFromProductIdOk -`func (o *PickFCommentAPICommentFieldsKeys) GetNotificationSentForParentTenantOk() (*bool, bool)` +`func (o *APIComment) GetFromProductIdOk() (*int32, bool)` -GetNotificationSentForParentTenantOk returns a tuple with the NotificationSentForParentTenant field if it's non-nil, zero value otherwise +GetFromProductIdOk returns a tuple with the FromProductId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetNotificationSentForParentTenant +### SetFromProductId -`func (o *PickFCommentAPICommentFieldsKeys) SetNotificationSentForParentTenant(v bool)` +`func (o *APIComment) SetFromProductId(v int32)` -SetNotificationSentForParentTenant sets NotificationSentForParentTenant field to given value. +SetFromProductId sets FromProductId field to given value. -### HasNotificationSentForParentTenant +### HasFromProductId -`func (o *PickFCommentAPICommentFieldsKeys) HasNotificationSentForParentTenant() bool` +`func (o *APIComment) HasFromProductId() bool` -HasNotificationSentForParentTenant returns a boolean if a field has been set. +HasFromProductId returns a boolean if a field has been set. -### GetReviewed +### GetHasCode -`func (o *PickFCommentAPICommentFieldsKeys) GetReviewed() bool` +`func (o *APIComment) GetHasCode() bool` -GetReviewed returns the Reviewed field if non-nil, zero value otherwise. +GetHasCode returns the HasCode field if non-nil, zero value otherwise. -### GetReviewedOk +### GetHasCodeOk -`func (o *PickFCommentAPICommentFieldsKeys) GetReviewedOk() (*bool, bool)` +`func (o *APIComment) GetHasCodeOk() (*bool, bool)` -GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise +GetHasCodeOk returns a tuple with the HasCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetReviewed +### SetHasCode -`func (o *PickFCommentAPICommentFieldsKeys) SetReviewed(v bool)` +`func (o *APIComment) SetHasCode(v bool)` -SetReviewed sets Reviewed field to given value. +SetHasCode sets HasCode field to given value. -### HasReviewed +### HasHasCode -`func (o *PickFCommentAPICommentFieldsKeys) HasReviewed() bool` +`func (o *APIComment) HasHasCode() bool` -HasReviewed returns a boolean if a field has been set. +HasHasCode returns a boolean if a field has been set. -### GetExternalId +### GetHasImages -`func (o *PickFCommentAPICommentFieldsKeys) GetExternalId() string` +`func (o *APIComment) GetHasImages() bool` -GetExternalId returns the ExternalId field if non-nil, zero value otherwise. +GetHasImages returns the HasImages field if non-nil, zero value otherwise. -### GetExternalIdOk +### GetHasImagesOk -`func (o *PickFCommentAPICommentFieldsKeys) GetExternalIdOk() (*string, bool)` +`func (o *APIComment) GetHasImagesOk() (*bool, bool)` -GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +GetHasImagesOk returns a tuple with the HasImages field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetExternalId +### SetHasImages -`func (o *PickFCommentAPICommentFieldsKeys) SetExternalId(v string)` +`func (o *APIComment) SetHasImages(v bool)` -SetExternalId sets ExternalId field to given value. +SetHasImages sets HasImages field to given value. -### HasExternalId +### HasHasImages -`func (o *PickFCommentAPICommentFieldsKeys) HasExternalId() bool` +`func (o *APIComment) HasHasImages() bool` -HasExternalId returns a boolean if a field has been set. +HasHasImages returns a boolean if a field has been set. -### GetExternalParentId +### GetHasLinks -`func (o *PickFCommentAPICommentFieldsKeys) GetExternalParentId() string` +`func (o *APIComment) GetHasLinks() bool` -GetExternalParentId returns the ExternalParentId field if non-nil, zero value otherwise. +GetHasLinks returns the HasLinks field if non-nil, zero value otherwise. -### GetExternalParentIdOk +### GetHasLinksOk -`func (o *PickFCommentAPICommentFieldsKeys) GetExternalParentIdOk() (*string, bool)` +`func (o *APIComment) GetHasLinksOk() (*bool, bool)` -GetExternalParentIdOk returns a tuple with the ExternalParentId field if it's non-nil, zero value otherwise +GetHasLinksOk returns a tuple with the HasLinks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetExternalParentId +### SetHasLinks -`func (o *PickFCommentAPICommentFieldsKeys) SetExternalParentId(v string)` +`func (o *APIComment) SetHasLinks(v bool)` -SetExternalParentId sets ExternalParentId field to given value. +SetHasLinks sets HasLinks field to given value. -### HasExternalParentId +### HasHasLinks -`func (o *PickFCommentAPICommentFieldsKeys) HasExternalParentId() bool` +`func (o *APIComment) HasHasLinks() bool` -HasExternalParentId returns a boolean if a field has been set. +HasHasLinks returns a boolean if a field has been set. -### GetAvatarSrc +### GetHashTags -`func (o *PickFCommentAPICommentFieldsKeys) GetAvatarSrc() string` +`func (o *APIComment) GetHashTags() []CommentUserHashTagInfo` -GetAvatarSrc returns the AvatarSrc field if non-nil, zero value otherwise. +GetHashTags returns the HashTags field if non-nil, zero value otherwise. -### GetAvatarSrcOk +### GetHashTagsOk -`func (o *PickFCommentAPICommentFieldsKeys) GetAvatarSrcOk() (*string, bool)` +`func (o *APIComment) GetHashTagsOk() (*[]CommentUserHashTagInfo, bool)` -GetAvatarSrcOk returns a tuple with the AvatarSrc field if it's non-nil, zero value otherwise +GetHashTagsOk returns a tuple with the HashTags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAvatarSrc +### SetHashTags -`func (o *PickFCommentAPICommentFieldsKeys) SetAvatarSrc(v string)` +`func (o *APIComment) SetHashTags(v []CommentUserHashTagInfo)` -SetAvatarSrc sets AvatarSrc field to given value. +SetHashTags sets HashTags field to given value. -### HasAvatarSrc +### HasHashTags -`func (o *PickFCommentAPICommentFieldsKeys) HasAvatarSrc() bool` +`func (o *APIComment) HasHashTags() bool` -HasAvatarSrc returns a boolean if a field has been set. +HasHashTags returns a boolean if a field has been set. -### GetIsSpam +### GetIsByAdmin -`func (o *PickFCommentAPICommentFieldsKeys) GetIsSpam() bool` +`func (o *APIComment) GetIsByAdmin() bool` -GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. +GetIsByAdmin returns the IsByAdmin field if non-nil, zero value otherwise. -### GetIsSpamOk +### GetIsByAdminOk -`func (o *PickFCommentAPICommentFieldsKeys) GetIsSpamOk() (*bool, bool)` +`func (o *APIComment) GetIsByAdminOk() (*bool, bool)` -GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise +GetIsByAdminOk returns a tuple with the IsByAdmin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsSpam +### SetIsByAdmin -`func (o *PickFCommentAPICommentFieldsKeys) SetIsSpam(v bool)` +`func (o *APIComment) SetIsByAdmin(v bool)` -SetIsSpam sets IsSpam field to given value. +SetIsByAdmin sets IsByAdmin field to given value. -### HasIsSpam +### HasIsByAdmin -`func (o *PickFCommentAPICommentFieldsKeys) HasIsSpam() bool` +`func (o *APIComment) HasIsByAdmin() bool` -HasIsSpam returns a boolean if a field has been set. +HasIsByAdmin returns a boolean if a field has been set. -### GetAiDeterminedSpam +### GetIsByModerator -`func (o *PickFCommentAPICommentFieldsKeys) GetAiDeterminedSpam() bool` +`func (o *APIComment) GetIsByModerator() bool` -GetAiDeterminedSpam returns the AiDeterminedSpam field if non-nil, zero value otherwise. +GetIsByModerator returns the IsByModerator field if non-nil, zero value otherwise. -### GetAiDeterminedSpamOk +### GetIsByModeratorOk -`func (o *PickFCommentAPICommentFieldsKeys) GetAiDeterminedSpamOk() (*bool, bool)` +`func (o *APIComment) GetIsByModeratorOk() (*bool, bool)` -GetAiDeterminedSpamOk returns a tuple with the AiDeterminedSpam field if it's non-nil, zero value otherwise +GetIsByModeratorOk returns a tuple with the IsByModerator field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAiDeterminedSpam +### SetIsByModerator -`func (o *PickFCommentAPICommentFieldsKeys) SetAiDeterminedSpam(v bool)` +`func (o *APIComment) SetIsByModerator(v bool)` -SetAiDeterminedSpam sets AiDeterminedSpam field to given value. +SetIsByModerator sets IsByModerator field to given value. -### HasAiDeterminedSpam +### HasIsByModerator -`func (o *PickFCommentAPICommentFieldsKeys) HasAiDeterminedSpam() bool` +`func (o *APIComment) HasIsByModerator() bool` -HasAiDeterminedSpam returns a boolean if a field has been set. +HasIsByModerator returns a boolean if a field has been set. -### GetHasImages +### GetIsDeleted -`func (o *PickFCommentAPICommentFieldsKeys) GetHasImages() bool` +`func (o *APIComment) GetIsDeleted() bool` -GetHasImages returns the HasImages field if non-nil, zero value otherwise. +GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. -### GetHasImagesOk +### GetIsDeletedOk -`func (o *PickFCommentAPICommentFieldsKeys) GetHasImagesOk() (*bool, bool)` +`func (o *APIComment) GetIsDeletedOk() (*bool, bool)` -GetHasImagesOk returns a tuple with the HasImages field if it's non-nil, zero value otherwise +GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHasImages +### SetIsDeleted -`func (o *PickFCommentAPICommentFieldsKeys) SetHasImages(v bool)` +`func (o *APIComment) SetIsDeleted(v bool)` -SetHasImages sets HasImages field to given value. +SetIsDeleted sets IsDeleted field to given value. -### HasHasImages +### HasIsDeleted -`func (o *PickFCommentAPICommentFieldsKeys) HasHasImages() bool` +`func (o *APIComment) HasIsDeleted() bool` -HasHasImages returns a boolean if a field has been set. +HasIsDeleted returns a boolean if a field has been set. -### GetHasLinks +### GetIsDeletedUser -`func (o *PickFCommentAPICommentFieldsKeys) GetHasLinks() bool` +`func (o *APIComment) GetIsDeletedUser() bool` -GetHasLinks returns the HasLinks field if non-nil, zero value otherwise. +GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. -### GetHasLinksOk +### GetIsDeletedUserOk -`func (o *PickFCommentAPICommentFieldsKeys) GetHasLinksOk() (*bool, bool)` +`func (o *APIComment) GetIsDeletedUserOk() (*bool, bool)` -GetHasLinksOk returns a tuple with the HasLinks field if it's non-nil, zero value otherwise +GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHasLinks +### SetIsDeletedUser -`func (o *PickFCommentAPICommentFieldsKeys) SetHasLinks(v bool)` +`func (o *APIComment) SetIsDeletedUser(v bool)` -SetHasLinks sets HasLinks field to given value. +SetIsDeletedUser sets IsDeletedUser field to given value. -### HasHasLinks +### HasIsDeletedUser -`func (o *PickFCommentAPICommentFieldsKeys) HasHasLinks() bool` +`func (o *APIComment) HasIsDeletedUser() bool` -HasHasLinks returns a boolean if a field has been set. +HasIsDeletedUser returns a boolean if a field has been set. -### GetHasCode +### GetIsPinned -`func (o *PickFCommentAPICommentFieldsKeys) GetHasCode() bool` +`func (o *APIComment) GetIsPinned() bool` -GetHasCode returns the HasCode field if non-nil, zero value otherwise. +GetIsPinned returns the IsPinned field if non-nil, zero value otherwise. -### GetHasCodeOk +### GetIsPinnedOk -`func (o *PickFCommentAPICommentFieldsKeys) GetHasCodeOk() (*bool, bool)` +`func (o *APIComment) GetIsPinnedOk() (*bool, bool)` -GetHasCodeOk returns a tuple with the HasCode field if it's non-nil, zero value otherwise +GetIsPinnedOk returns a tuple with the IsPinned field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHasCode +### SetIsPinned -`func (o *PickFCommentAPICommentFieldsKeys) SetHasCode(v bool)` +`func (o *APIComment) SetIsPinned(v bool)` -SetHasCode sets HasCode field to given value. +SetIsPinned sets IsPinned field to given value. -### HasHasCode +### HasIsPinned -`func (o *PickFCommentAPICommentFieldsKeys) HasHasCode() bool` +`func (o *APIComment) HasIsPinned() bool` -HasHasCode returns a boolean if a field has been set. +HasIsPinned returns a boolean if a field has been set. -### GetApproved +### SetIsPinnedNil -`func (o *PickFCommentAPICommentFieldsKeys) GetApproved() bool` +`func (o *APIComment) SetIsPinnedNil(b bool)` -GetApproved returns the Approved field if non-nil, zero value otherwise. + SetIsPinnedNil sets the value for IsPinned to be an explicit nil -### GetApprovedOk +### UnsetIsPinned +`func (o *APIComment) UnsetIsPinned()` -`func (o *PickFCommentAPICommentFieldsKeys) GetApprovedOk() (*bool, bool)` +UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +### GetIsLocked -GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *APIComment) GetIsLocked() bool` -### SetApproved +GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. + +### GetIsLockedOk -`func (o *PickFCommentAPICommentFieldsKeys) SetApproved(v bool)` +`func (o *APIComment) GetIsLockedOk() (*bool, bool)` -SetApproved sets Approved field to given value. +GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLocked + +`func (o *APIComment) SetIsLocked(v bool)` + +SetIsLocked sets IsLocked field to given value. + +### HasIsLocked + +`func (o *APIComment) HasIsLocked() bool` + +HasIsLocked returns a boolean if a field has been set. + +### SetIsLockedNil + +`func (o *APIComment) SetIsLockedNil(b bool)` + + SetIsLockedNil sets the value for IsLocked to be an explicit nil + +### UnsetIsLocked +`func (o *APIComment) UnsetIsLocked()` + +UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +### GetIsSpam + +`func (o *APIComment) GetIsSpam() bool` + +GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. + +### GetIsSpamOk +`func (o *APIComment) GetIsSpamOk() (*bool, bool)` + +GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSpam + +`func (o *APIComment) SetIsSpam(v bool)` + +SetIsSpam sets IsSpam field to given value. + +### HasIsSpam + +`func (o *APIComment) HasIsSpam() bool` + +HasIsSpam returns a boolean if a field has been set. + +### GetLocalDateHours + +`func (o *APIComment) GetLocalDateHours() int32` + +GetLocalDateHours returns the LocalDateHours field if non-nil, zero value otherwise. + +### GetLocalDateHoursOk + +`func (o *APIComment) GetLocalDateHoursOk() (*int32, bool)` + +GetLocalDateHoursOk returns a tuple with the LocalDateHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalDateHours +`func (o *APIComment) SetLocalDateHours(v int32)` + +SetLocalDateHours sets LocalDateHours field to given value. + +### HasLocalDateHours + +`func (o *APIComment) HasLocalDateHours() bool` + +HasLocalDateHours returns a boolean if a field has been set. + +### SetLocalDateHoursNil + +`func (o *APIComment) SetLocalDateHoursNil(b bool)` + + SetLocalDateHoursNil sets the value for LocalDateHours to be an explicit nil + +### UnsetLocalDateHours +`func (o *APIComment) UnsetLocalDateHours()` + +UnsetLocalDateHours ensures that no value is present for LocalDateHours, not even an explicit nil +### GetLocalDateString + +`func (o *APIComment) GetLocalDateString() string` + +GetLocalDateString returns the LocalDateString field if non-nil, zero value otherwise. + +### GetLocalDateStringOk + +`func (o *APIComment) GetLocalDateStringOk() (*string, bool)` + +GetLocalDateStringOk returns a tuple with the LocalDateString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalDateString + +`func (o *APIComment) SetLocalDateString(v string)` + +SetLocalDateString sets LocalDateString field to given value. + +### HasLocalDateString + +`func (o *APIComment) HasLocalDateString() bool` + +HasLocalDateString returns a boolean if a field has been set. + +### SetLocalDateStringNil + +`func (o *APIComment) SetLocalDateStringNil(b bool)` + + SetLocalDateStringNil sets the value for LocalDateString to be an explicit nil + +### UnsetLocalDateString +`func (o *APIComment) UnsetLocalDateString()` + +UnsetLocalDateString ensures that no value is present for LocalDateString, not even an explicit nil ### GetLocale -`func (o *PickFCommentAPICommentFieldsKeys) GetLocale() string` +`func (o *APIComment) GetLocale() string` GetLocale returns the Locale field if non-nil, zero value otherwise. ### GetLocaleOk -`func (o *PickFCommentAPICommentFieldsKeys) GetLocaleOk() (*string, bool)` +`func (o *APIComment) GetLocaleOk() (*string, bool)` GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocale -`func (o *PickFCommentAPICommentFieldsKeys) SetLocale(v string)` +`func (o *APIComment) SetLocale(v string)` SetLocale sets Locale field to given value. -### GetIsDeleted +### SetLocaleNil -`func (o *PickFCommentAPICommentFieldsKeys) GetIsDeleted() bool` +`func (o *APIComment) SetLocaleNil(b bool)` -GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. + SetLocaleNil sets the value for Locale to be an explicit nil -### GetIsDeletedOk +### UnsetLocale +`func (o *APIComment) UnsetLocale()` + +UnsetLocale ensures that no value is present for Locale, not even an explicit nil +### GetMentions -`func (o *PickFCommentAPICommentFieldsKeys) GetIsDeletedOk() (*bool, bool)` +`func (o *APIComment) GetMentions() []CommentUserMentionInfo` -GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise +GetMentions returns the Mentions field if non-nil, zero value otherwise. + +### GetMentionsOk + +`func (o *APIComment) GetMentionsOk() (*[]CommentUserMentionInfo, bool)` + +GetMentionsOk returns a tuple with the Mentions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsDeleted +### SetMentions -`func (o *PickFCommentAPICommentFieldsKeys) SetIsDeleted(v bool)` +`func (o *APIComment) SetMentions(v []CommentUserMentionInfo)` -SetIsDeleted sets IsDeleted field to given value. +SetMentions sets Mentions field to given value. -### HasIsDeleted +### HasMentions -`func (o *PickFCommentAPICommentFieldsKeys) HasIsDeleted() bool` +`func (o *APIComment) HasMentions() bool` -HasIsDeleted returns a boolean if a field has been set. +HasMentions returns a boolean if a field has been set. -### GetIsDeletedUser +### GetMeta -`func (o *PickFCommentAPICommentFieldsKeys) GetIsDeletedUser() bool` +`func (o *APIComment) GetMeta() FCommentMeta` -GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. +GetMeta returns the Meta field if non-nil, zero value otherwise. -### GetIsDeletedUserOk +### GetMetaOk -`func (o *PickFCommentAPICommentFieldsKeys) GetIsDeletedUserOk() (*bool, bool)` +`func (o *APIComment) GetMetaOk() (*FCommentMeta, bool)` -GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsDeletedUser +### SetMeta -`func (o *PickFCommentAPICommentFieldsKeys) SetIsDeletedUser(v bool)` +`func (o *APIComment) SetMeta(v FCommentMeta)` -SetIsDeletedUser sets IsDeletedUser field to given value. +SetMeta sets Meta field to given value. -### HasIsDeletedUser +### HasMeta -`func (o *PickFCommentAPICommentFieldsKeys) HasIsDeletedUser() bool` +`func (o *APIComment) HasMeta() bool` -HasIsDeletedUser returns a boolean if a field has been set. +HasMeta returns a boolean if a field has been set. -### GetIsByAdmin +### SetMetaNil -`func (o *PickFCommentAPICommentFieldsKeys) GetIsByAdmin() bool` +`func (o *APIComment) SetMetaNil(b bool)` -GetIsByAdmin returns the IsByAdmin field if non-nil, zero value otherwise. + SetMetaNil sets the value for Meta to be an explicit nil -### GetIsByAdminOk +### UnsetMeta +`func (o *APIComment) UnsetMeta()` -`func (o *PickFCommentAPICommentFieldsKeys) GetIsByAdminOk() (*bool, bool)` +UnsetMeta ensures that no value is present for Meta, not even an explicit nil +### GetModerationGroupIds -GetIsByAdminOk returns a tuple with the IsByAdmin field if it's non-nil, zero value otherwise +`func (o *APIComment) GetModerationGroupIds() []string` + +GetModerationGroupIds returns the ModerationGroupIds field if non-nil, zero value otherwise. + +### GetModerationGroupIdsOk + +`func (o *APIComment) GetModerationGroupIdsOk() (*[]string, bool)` + +GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsByAdmin +### SetModerationGroupIds -`func (o *PickFCommentAPICommentFieldsKeys) SetIsByAdmin(v bool)` +`func (o *APIComment) SetModerationGroupIds(v []string)` -SetIsByAdmin sets IsByAdmin field to given value. +SetModerationGroupIds sets ModerationGroupIds field to given value. -### HasIsByAdmin +### HasModerationGroupIds -`func (o *PickFCommentAPICommentFieldsKeys) HasIsByAdmin() bool` +`func (o *APIComment) HasModerationGroupIds() bool` -HasIsByAdmin returns a boolean if a field has been set. +HasModerationGroupIds returns a boolean if a field has been set. -### GetIsByModerator +### SetModerationGroupIdsNil -`func (o *PickFCommentAPICommentFieldsKeys) GetIsByModerator() bool` +`func (o *APIComment) SetModerationGroupIdsNil(b bool)` -GetIsByModerator returns the IsByModerator field if non-nil, zero value otherwise. + SetModerationGroupIdsNil sets the value for ModerationGroupIds to be an explicit nil -### GetIsByModeratorOk +### UnsetModerationGroupIds +`func (o *APIComment) UnsetModerationGroupIds()` -`func (o *PickFCommentAPICommentFieldsKeys) GetIsByModeratorOk() (*bool, bool)` +UnsetModerationGroupIds ensures that no value is present for ModerationGroupIds, not even an explicit nil +### GetNotificationSentForParent -GetIsByModeratorOk returns a tuple with the IsByModerator field if it's non-nil, zero value otherwise +`func (o *APIComment) GetNotificationSentForParent() bool` + +GetNotificationSentForParent returns the NotificationSentForParent field if non-nil, zero value otherwise. + +### GetNotificationSentForParentOk + +`func (o *APIComment) GetNotificationSentForParentOk() (*bool, bool)` + +GetNotificationSentForParentOk returns a tuple with the NotificationSentForParent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsByModerator +### SetNotificationSentForParent -`func (o *PickFCommentAPICommentFieldsKeys) SetIsByModerator(v bool)` +`func (o *APIComment) SetNotificationSentForParent(v bool)` -SetIsByModerator sets IsByModerator field to given value. +SetNotificationSentForParent sets NotificationSentForParent field to given value. -### HasIsByModerator +### HasNotificationSentForParent -`func (o *PickFCommentAPICommentFieldsKeys) HasIsByModerator() bool` +`func (o *APIComment) HasNotificationSentForParent() bool` -HasIsByModerator returns a boolean if a field has been set. +HasNotificationSentForParent returns a boolean if a field has been set. -### GetIsPinned +### GetNotificationSentForParentTenant -`func (o *PickFCommentAPICommentFieldsKeys) GetIsPinned() bool` +`func (o *APIComment) GetNotificationSentForParentTenant() bool` -GetIsPinned returns the IsPinned field if non-nil, zero value otherwise. +GetNotificationSentForParentTenant returns the NotificationSentForParentTenant field if non-nil, zero value otherwise. -### GetIsPinnedOk +### GetNotificationSentForParentTenantOk -`func (o *PickFCommentAPICommentFieldsKeys) GetIsPinnedOk() (*bool, bool)` +`func (o *APIComment) GetNotificationSentForParentTenantOk() (*bool, bool)` -GetIsPinnedOk returns a tuple with the IsPinned field if it's non-nil, zero value otherwise +GetNotificationSentForParentTenantOk returns a tuple with the NotificationSentForParentTenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsPinned +### SetNotificationSentForParentTenant -`func (o *PickFCommentAPICommentFieldsKeys) SetIsPinned(v bool)` +`func (o *APIComment) SetNotificationSentForParentTenant(v bool)` -SetIsPinned sets IsPinned field to given value. +SetNotificationSentForParentTenant sets NotificationSentForParentTenant field to given value. -### HasIsPinned +### HasNotificationSentForParentTenant -`func (o *PickFCommentAPICommentFieldsKeys) HasIsPinned() bool` +`func (o *APIComment) HasNotificationSentForParentTenant() bool` -HasIsPinned returns a boolean if a field has been set. +HasNotificationSentForParentTenant returns a boolean if a field has been set. -### GetIsLocked +### GetPageTitle -`func (o *PickFCommentAPICommentFieldsKeys) GetIsLocked() bool` +`func (o *APIComment) GetPageTitle() string` -GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. +GetPageTitle returns the PageTitle field if non-nil, zero value otherwise. -### GetIsLockedOk +### GetPageTitleOk -`func (o *PickFCommentAPICommentFieldsKeys) GetIsLockedOk() (*bool, bool)` +`func (o *APIComment) GetPageTitleOk() (*string, bool)` -GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise +GetPageTitleOk returns a tuple with the PageTitle field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsLocked +### SetPageTitle -`func (o *PickFCommentAPICommentFieldsKeys) SetIsLocked(v bool)` +`func (o *APIComment) SetPageTitle(v string)` -SetIsLocked sets IsLocked field to given value. +SetPageTitle sets PageTitle field to given value. -### HasIsLocked +### HasPageTitle -`func (o *PickFCommentAPICommentFieldsKeys) HasIsLocked() bool` +`func (o *APIComment) HasPageTitle() bool` -HasIsLocked returns a boolean if a field has been set. +HasPageTitle returns a boolean if a field has been set. -### GetFlagCount +### SetPageTitleNil -`func (o *PickFCommentAPICommentFieldsKeys) GetFlagCount() int32` +`func (o *APIComment) SetPageTitleNil(b bool)` -GetFlagCount returns the FlagCount field if non-nil, zero value otherwise. + SetPageTitleNil sets the value for PageTitle to be an explicit nil -### GetFlagCountOk +### UnsetPageTitle +`func (o *APIComment) UnsetPageTitle()` -`func (o *PickFCommentAPICommentFieldsKeys) GetFlagCountOk() (*int32, bool)` +UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +### GetParentId -GetFlagCountOk returns a tuple with the FlagCount field if it's non-nil, zero value otherwise +`func (o *APIComment) GetParentId() string` + +GetParentId returns the ParentId field if non-nil, zero value otherwise. + +### GetParentIdOk + +`func (o *APIComment) GetParentIdOk() (*string, bool)` + +GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFlagCount +### SetParentId -`func (o *PickFCommentAPICommentFieldsKeys) SetFlagCount(v int32)` +`func (o *APIComment) SetParentId(v string)` -SetFlagCount sets FlagCount field to given value. +SetParentId sets ParentId field to given value. -### HasFlagCount +### HasParentId -`func (o *PickFCommentAPICommentFieldsKeys) HasFlagCount() bool` +`func (o *APIComment) HasParentId() bool` -HasFlagCount returns a boolean if a field has been set. +HasParentId returns a boolean if a field has been set. + +### SetParentIdNil + +`func (o *APIComment) SetParentIdNil(b bool)` + SetParentIdNil sets the value for ParentId to be an explicit nil + +### UnsetParentId +`func (o *APIComment) UnsetParentId()` + +UnsetParentId ensures that no value is present for ParentId, not even an explicit nil ### GetRating -`func (o *PickFCommentAPICommentFieldsKeys) GetRating() float64` +`func (o *APIComment) GetRating() float64` GetRating returns the Rating field if non-nil, zero value otherwise. ### GetRatingOk -`func (o *PickFCommentAPICommentFieldsKeys) GetRatingOk() (*float64, bool)` +`func (o *APIComment) GetRatingOk() (*float64, bool)` GetRatingOk returns a tuple with the Rating field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRating -`func (o *PickFCommentAPICommentFieldsKeys) SetRating(v float64)` +`func (o *APIComment) SetRating(v float64)` SetRating sets Rating field to given value. ### HasRating -`func (o *PickFCommentAPICommentFieldsKeys) HasRating() bool` +`func (o *APIComment) HasRating() bool` HasRating returns a boolean if a field has been set. -### GetDisplayLabel +### SetRatingNil -`func (o *PickFCommentAPICommentFieldsKeys) GetDisplayLabel() string` +`func (o *APIComment) SetRatingNil(b bool)` -GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. + SetRatingNil sets the value for Rating to be an explicit nil -### GetDisplayLabelOk +### UnsetRating +`func (o *APIComment) UnsetRating()` -`func (o *PickFCommentAPICommentFieldsKeys) GetDisplayLabelOk() (*string, bool)` +UnsetRating ensures that no value is present for Rating, not even an explicit nil +### GetReviewed -GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise +`func (o *APIComment) GetReviewed() bool` + +GetReviewed returns the Reviewed field if non-nil, zero value otherwise. + +### GetReviewedOk + +`func (o *APIComment) GetReviewedOk() (*bool, bool)` + +GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisplayLabel +### SetReviewed -`func (o *PickFCommentAPICommentFieldsKeys) SetDisplayLabel(v string)` +`func (o *APIComment) SetReviewed(v bool)` -SetDisplayLabel sets DisplayLabel field to given value. +SetReviewed sets Reviewed field to given value. -### HasDisplayLabel +### HasReviewed -`func (o *PickFCommentAPICommentFieldsKeys) HasDisplayLabel() bool` +`func (o *APIComment) HasReviewed() bool` -HasDisplayLabel returns a boolean if a field has been set. +HasReviewed returns a boolean if a field has been set. -### GetFromProductId +### GetTenantId -`func (o *PickFCommentAPICommentFieldsKeys) GetFromProductId() int32` +`func (o *APIComment) GetTenantId() string` -GetFromProductId returns the FromProductId field if non-nil, zero value otherwise. +GetTenantId returns the TenantId field if non-nil, zero value otherwise. -### GetFromProductIdOk +### GetTenantIdOk -`func (o *PickFCommentAPICommentFieldsKeys) GetFromProductIdOk() (*int32, bool)` +`func (o *APIComment) GetTenantIdOk() (*string, bool)` -GetFromProductIdOk returns a tuple with the FromProductId field if it's non-nil, zero value otherwise +GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFromProductId +### SetTenantId -`func (o *PickFCommentAPICommentFieldsKeys) SetFromProductId(v int32)` +`func (o *APIComment) SetTenantId(v string)` -SetFromProductId sets FromProductId field to given value. +SetTenantId sets TenantId field to given value. -### HasFromProductId -`func (o *PickFCommentAPICommentFieldsKeys) HasFromProductId() bool` +### GetUrl -HasFromProductId returns a boolean if a field has been set. +`func (o *APIComment) GetUrl() string` -### GetMeta +GetUrl returns the Url field if non-nil, zero value otherwise. -`func (o *PickFCommentAPICommentFieldsKeys) GetMeta() PickFCommentAPICommentFieldsKeysMeta` +### GetUrlOk -GetMeta returns the Meta field if non-nil, zero value otherwise. +`func (o *APIComment) GetUrlOk() (*string, bool)` -### GetMetaOk +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. -`func (o *PickFCommentAPICommentFieldsKeys) GetMetaOk() (*PickFCommentAPICommentFieldsKeysMeta, bool)` +### SetUrl -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *APIComment) SetUrl(v string)` -### SetMeta +SetUrl sets Url field to given value. -`func (o *PickFCommentAPICommentFieldsKeys) SetMeta(v PickFCommentAPICommentFieldsKeysMeta)` -SetMeta sets Meta field to given value. +### GetUrlId -### HasMeta +`func (o *APIComment) GetUrlId() string` -`func (o *PickFCommentAPICommentFieldsKeys) HasMeta() bool` +GetUrlId returns the UrlId field if non-nil, zero value otherwise. -HasMeta returns a boolean if a field has been set. +### GetUrlIdOk -### GetMentions +`func (o *APIComment) GetUrlIdOk() (*string, bool)` -`func (o *PickFCommentAPICommentFieldsKeys) GetMentions() []CommentUserMentionInfo` +GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -GetMentions returns the Mentions field if non-nil, zero value otherwise. +### SetUrlId -### GetMentionsOk +`func (o *APIComment) SetUrlId(v string)` -`func (o *PickFCommentAPICommentFieldsKeys) GetMentionsOk() (*[]CommentUserMentionInfo, bool)` +SetUrlId sets UrlId field to given value. -GetMentionsOk returns a tuple with the Mentions field if it's non-nil, zero value otherwise + +### GetUrlIdRaw + +`func (o *APIComment) GetUrlIdRaw() string` + +GetUrlIdRaw returns the UrlIdRaw field if non-nil, zero value otherwise. + +### GetUrlIdRawOk + +`func (o *APIComment) GetUrlIdRawOk() (*string, bool)` + +GetUrlIdRawOk returns a tuple with the UrlIdRaw field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMentions +### SetUrlIdRaw -`func (o *PickFCommentAPICommentFieldsKeys) SetMentions(v []CommentUserMentionInfo)` +`func (o *APIComment) SetUrlIdRaw(v string)` -SetMentions sets Mentions field to given value. +SetUrlIdRaw sets UrlIdRaw field to given value. -### HasMentions +### HasUrlIdRaw -`func (o *PickFCommentAPICommentFieldsKeys) HasMentions() bool` +`func (o *APIComment) HasUrlIdRaw() bool` -HasMentions returns a boolean if a field has been set. +HasUrlIdRaw returns a boolean if a field has been set. -### GetHashTags +### GetUserId -`func (o *PickFCommentAPICommentFieldsKeys) GetHashTags() []CommentUserHashTagInfo` +`func (o *APIComment) GetUserId() string` -GetHashTags returns the HashTags field if non-nil, zero value otherwise. +GetUserId returns the UserId field if non-nil, zero value otherwise. -### GetHashTagsOk +### GetUserIdOk -`func (o *PickFCommentAPICommentFieldsKeys) GetHashTagsOk() (*[]CommentUserHashTagInfo, bool)` +`func (o *APIComment) GetUserIdOk() (*string, bool)` -GetHashTagsOk returns a tuple with the HashTags field if it's non-nil, zero value otherwise +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. -### SetHashTags +### SetUserId -`func (o *PickFCommentAPICommentFieldsKeys) SetHashTags(v []CommentUserHashTagInfo)` +`func (o *APIComment) SetUserId(v string)` -SetHashTags sets HashTags field to given value. +SetUserId sets UserId field to given value. -### HasHashTags +### HasUserId -`func (o *PickFCommentAPICommentFieldsKeys) HasHashTags() bool` +`func (o *APIComment) HasUserId() bool` -HasHashTags returns a boolean if a field has been set. +HasUserId returns a boolean if a field has been set. -### GetBadges +### SetUserIdNil -`func (o *PickFCommentAPICommentFieldsKeys) GetBadges() []CommentUserBadgeInfo` +`func (o *APIComment) SetUserIdNil(b bool)` -GetBadges returns the Badges field if non-nil, zero value otherwise. + SetUserIdNil sets the value for UserId to be an explicit nil -### GetBadgesOk +### UnsetUserId +`func (o *APIComment) UnsetUserId()` -`func (o *PickFCommentAPICommentFieldsKeys) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` +UnsetUserId ensures that no value is present for UserId, not even an explicit nil +### GetVerified -GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise +`func (o *APIComment) GetVerified() bool` + +GetVerified returns the Verified field if non-nil, zero value otherwise. + +### GetVerifiedOk + +`func (o *APIComment) GetVerifiedOk() (*bool, bool)` + +GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetBadges +### SetVerified -`func (o *PickFCommentAPICommentFieldsKeys) SetBadges(v []CommentUserBadgeInfo)` +`func (o *APIComment) SetVerified(v bool)` -SetBadges sets Badges field to given value. +SetVerified sets Verified field to given value. -### HasBadges -`func (o *PickFCommentAPICommentFieldsKeys) HasBadges() bool` +### GetVerifiedDate -HasBadges returns a boolean if a field has been set. +`func (o *APIComment) GetVerifiedDate() time.Time` -### GetDomain +GetVerifiedDate returns the VerifiedDate field if non-nil, zero value otherwise. -`func (o *PickFCommentAPICommentFieldsKeys) GetDomain() string` +### GetVerifiedDateOk -GetDomain returns the Domain field if non-nil, zero value otherwise. +`func (o *APIComment) GetVerifiedDateOk() (*time.Time, bool)` -### GetDomainOk +GetVerifiedDateOk returns a tuple with the VerifiedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *PickFCommentAPICommentFieldsKeys) GetDomainOk() (*string, bool)` +### SetVerifiedDate -GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +`func (o *APIComment) SetVerifiedDate(v time.Time)` + +SetVerifiedDate sets VerifiedDate field to given value. + +### HasVerifiedDate + +`func (o *APIComment) HasVerifiedDate() bool` + +HasVerifiedDate returns a boolean if a field has been set. + +### SetVerifiedDateNil + +`func (o *APIComment) SetVerifiedDateNil(b bool)` + + SetVerifiedDateNil sets the value for VerifiedDate to be an explicit nil + +### UnsetVerifiedDate +`func (o *APIComment) UnsetVerifiedDate()` + +UnsetVerifiedDate ensures that no value is present for VerifiedDate, not even an explicit nil +### GetVotes + +`func (o *APIComment) GetVotes() int32` + +GetVotes returns the Votes field if non-nil, zero value otherwise. + +### GetVotesOk + +`func (o *APIComment) GetVotesOk() (*int32, bool)` + +GetVotesOk returns a tuple with the Votes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDomain +### SetVotes -`func (o *PickFCommentAPICommentFieldsKeys) SetDomain(v string)` +`func (o *APIComment) SetVotes(v int32)` -SetDomain sets Domain field to given value. +SetVotes sets Votes field to given value. -### HasDomain +### HasVotes -`func (o *PickFCommentAPICommentFieldsKeys) HasDomain() bool` +`func (o *APIComment) HasVotes() bool` -HasDomain returns a boolean if a field has been set. +HasVotes returns a boolean if a field has been set. -### GetModerationGroupIds +### SetVotesNil -`func (o *PickFCommentAPICommentFieldsKeys) GetModerationGroupIds() []string` +`func (o *APIComment) SetVotesNil(b bool)` -GetModerationGroupIds returns the ModerationGroupIds field if non-nil, zero value otherwise. + SetVotesNil sets the value for Votes to be an explicit nil -### GetModerationGroupIdsOk +### UnsetVotes +`func (o *APIComment) UnsetVotes()` -`func (o *PickFCommentAPICommentFieldsKeys) GetModerationGroupIdsOk() (*[]string, bool)` +UnsetVotes ensures that no value is present for Votes, not even an explicit nil +### GetVotesDown -GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field if it's non-nil, zero value otherwise +`func (o *APIComment) GetVotesDown() int32` + +GetVotesDown returns the VotesDown field if non-nil, zero value otherwise. + +### GetVotesDownOk + +`func (o *APIComment) GetVotesDownOk() (*int32, bool)` + +GetVotesDownOk returns a tuple with the VotesDown field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetModerationGroupIds +### SetVotesDown -`func (o *PickFCommentAPICommentFieldsKeys) SetModerationGroupIds(v []string)` +`func (o *APIComment) SetVotesDown(v int32)` -SetModerationGroupIds sets ModerationGroupIds field to given value. +SetVotesDown sets VotesDown field to given value. -### HasModerationGroupIds +### HasVotesDown -`func (o *PickFCommentAPICommentFieldsKeys) HasModerationGroupIds() bool` +`func (o *APIComment) HasVotesDown() bool` -HasModerationGroupIds returns a boolean if a field has been set. +HasVotesDown returns a boolean if a field has been set. -### GetFeedbackIds +### SetVotesDownNil -`func (o *PickFCommentAPICommentFieldsKeys) GetFeedbackIds() []string` +`func (o *APIComment) SetVotesDownNil(b bool)` -GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. + SetVotesDownNil sets the value for VotesDown to be an explicit nil -### GetFeedbackIdsOk +### UnsetVotesDown +`func (o *APIComment) UnsetVotesDown()` -`func (o *PickFCommentAPICommentFieldsKeys) GetFeedbackIdsOk() (*[]string, bool)` +UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +### GetVotesUp -GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise +`func (o *APIComment) GetVotesUp() int32` + +GetVotesUp returns the VotesUp field if non-nil, zero value otherwise. + +### GetVotesUpOk + +`func (o *APIComment) GetVotesUpOk() (*int32, bool)` + +GetVotesUpOk returns a tuple with the VotesUp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFeedbackIds +### SetVotesUp -`func (o *PickFCommentAPICommentFieldsKeys) SetFeedbackIds(v []string)` +`func (o *APIComment) SetVotesUp(v int32)` -SetFeedbackIds sets FeedbackIds field to given value. +SetVotesUp sets VotesUp field to given value. -### HasFeedbackIds +### HasVotesUp -`func (o *PickFCommentAPICommentFieldsKeys) HasFeedbackIds() bool` +`func (o *APIComment) HasVotesUp() bool` -HasFeedbackIds returns a boolean if a field has been set. +HasVotesUp returns a boolean if a field has been set. + +### SetVotesUpNil + +`func (o *APIComment) SetVotesUpNil(b bool)` + + SetVotesUpNil sets the value for VotesUp to be an explicit nil + +### UnsetVotesUp +`func (o *APIComment) UnsetVotesUp()` +UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/APICommentBase.md b/client/docs/APICommentBase.md new file mode 100644 index 0000000..ebed618 --- /dev/null +++ b/client/docs/APICommentBase.md @@ -0,0 +1,1613 @@ +# APICommentBase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**AiDeterminedSpam** | Pointer to **bool** | | [optional] +**AnonUserId** | Pointer to **NullableString** | | [optional] +**Approved** | **bool** | | +**AvatarSrc** | Pointer to **NullableString** | | [optional] +**Badges** | Pointer to [**[]CommentUserBadgeInfo**](CommentUserBadgeInfo.md) | | [optional] +**Comment** | **string** | | +**CommentHTML** | **string** | | +**CommenterEmail** | Pointer to **NullableString** | | [optional] +**CommenterLink** | Pointer to **NullableString** | | [optional] +**CommenterName** | **string** | | +**Date** | **NullableTime** | | +**DisplayLabel** | Pointer to **NullableString** | | [optional] +**Domain** | Pointer to **NullableString** | | [optional] +**ExternalId** | Pointer to **string** | | [optional] +**ExternalParentId** | Pointer to **NullableString** | | [optional] +**ExpireAt** | Pointer to **NullableTime** | | [optional] +**FeedbackIds** | Pointer to **[]string** | | [optional] +**FlagCount** | Pointer to **NullableInt32** | | [optional] +**FromProductId** | Pointer to **int32** | | [optional] +**HasCode** | Pointer to **bool** | | [optional] +**HasImages** | Pointer to **bool** | | [optional] +**HasLinks** | Pointer to **bool** | | [optional] +**HashTags** | Pointer to [**[]CommentUserHashTagInfo**](CommentUserHashTagInfo.md) | | [optional] +**IsByAdmin** | Pointer to **bool** | | [optional] +**IsByModerator** | Pointer to **bool** | | [optional] +**IsDeleted** | Pointer to **bool** | | [optional] +**IsDeletedUser** | Pointer to **bool** | | [optional] +**IsPinned** | Pointer to **NullableBool** | | [optional] +**IsLocked** | Pointer to **NullableBool** | | [optional] +**IsSpam** | Pointer to **bool** | | [optional] +**LocalDateHours** | Pointer to **NullableInt32** | | [optional] +**LocalDateString** | Pointer to **NullableString** | | [optional] +**Locale** | **NullableString** | | +**Mentions** | Pointer to [**[]CommentUserMentionInfo**](CommentUserMentionInfo.md) | | [optional] +**Meta** | Pointer to [**NullableFCommentMeta**](FCommentMeta.md) | | [optional] +**ModerationGroupIds** | Pointer to **[]string** | | [optional] +**NotificationSentForParent** | Pointer to **bool** | | [optional] +**NotificationSentForParentTenant** | Pointer to **bool** | | [optional] +**PageTitle** | Pointer to **NullableString** | | [optional] +**ParentId** | Pointer to **NullableString** | | [optional] +**Rating** | Pointer to **NullableFloat64** | | [optional] +**Reviewed** | Pointer to **bool** | | [optional] +**TenantId** | **string** | | +**Url** | **string** | | +**UrlId** | **string** | | +**UrlIdRaw** | Pointer to **string** | | [optional] +**UserId** | Pointer to **NullableString** | | [optional] +**Verified** | **bool** | | +**VerifiedDate** | Pointer to **NullableTime** | | [optional] +**Votes** | Pointer to **NullableInt32** | | [optional] +**VotesDown** | Pointer to **NullableInt32** | | [optional] +**VotesUp** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewAPICommentBase + +`func NewAPICommentBase(id string, approved bool, comment string, commentHTML string, commenterName string, date NullableTime, locale NullableString, tenantId string, url string, urlId string, verified bool, ) *APICommentBase` + +NewAPICommentBase instantiates a new APICommentBase 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 + +### NewAPICommentBaseWithDefaults + +`func NewAPICommentBaseWithDefaults() *APICommentBase` + +NewAPICommentBaseWithDefaults instantiates a new APICommentBase 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 *APICommentBase) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *APICommentBase) GetIdOk() (*string, 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 *APICommentBase) SetId(v string)` + +SetId sets Id field to given value. + + +### GetAiDeterminedSpam + +`func (o *APICommentBase) GetAiDeterminedSpam() bool` + +GetAiDeterminedSpam returns the AiDeterminedSpam field if non-nil, zero value otherwise. + +### GetAiDeterminedSpamOk + +`func (o *APICommentBase) GetAiDeterminedSpamOk() (*bool, bool)` + +GetAiDeterminedSpamOk returns a tuple with the AiDeterminedSpam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAiDeterminedSpam + +`func (o *APICommentBase) SetAiDeterminedSpam(v bool)` + +SetAiDeterminedSpam sets AiDeterminedSpam field to given value. + +### HasAiDeterminedSpam + +`func (o *APICommentBase) HasAiDeterminedSpam() bool` + +HasAiDeterminedSpam returns a boolean if a field has been set. + +### GetAnonUserId + +`func (o *APICommentBase) GetAnonUserId() string` + +GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. + +### GetAnonUserIdOk + +`func (o *APICommentBase) GetAnonUserIdOk() (*string, bool)` + +GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnonUserId + +`func (o *APICommentBase) SetAnonUserId(v string)` + +SetAnonUserId sets AnonUserId field to given value. + +### HasAnonUserId + +`func (o *APICommentBase) HasAnonUserId() bool` + +HasAnonUserId returns a boolean if a field has been set. + +### SetAnonUserIdNil + +`func (o *APICommentBase) SetAnonUserIdNil(b bool)` + + SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil + +### UnsetAnonUserId +`func (o *APICommentBase) UnsetAnonUserId()` + +UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +### GetApproved + +`func (o *APICommentBase) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *APICommentBase) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *APICommentBase) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + + +### GetAvatarSrc + +`func (o *APICommentBase) GetAvatarSrc() string` + +GetAvatarSrc returns the AvatarSrc field if non-nil, zero value otherwise. + +### GetAvatarSrcOk + +`func (o *APICommentBase) GetAvatarSrcOk() (*string, bool)` + +GetAvatarSrcOk returns a tuple with the AvatarSrc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatarSrc + +`func (o *APICommentBase) SetAvatarSrc(v string)` + +SetAvatarSrc sets AvatarSrc field to given value. + +### HasAvatarSrc + +`func (o *APICommentBase) HasAvatarSrc() bool` + +HasAvatarSrc returns a boolean if a field has been set. + +### SetAvatarSrcNil + +`func (o *APICommentBase) SetAvatarSrcNil(b bool)` + + SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil + +### UnsetAvatarSrc +`func (o *APICommentBase) UnsetAvatarSrc()` + +UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +### GetBadges + +`func (o *APICommentBase) GetBadges() []CommentUserBadgeInfo` + +GetBadges returns the Badges field if non-nil, zero value otherwise. + +### GetBadgesOk + +`func (o *APICommentBase) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` + +GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBadges + +`func (o *APICommentBase) SetBadges(v []CommentUserBadgeInfo)` + +SetBadges sets Badges field to given value. + +### HasBadges + +`func (o *APICommentBase) HasBadges() bool` + +HasBadges returns a boolean if a field has been set. + +### SetBadgesNil + +`func (o *APICommentBase) SetBadgesNil(b bool)` + + SetBadgesNil sets the value for Badges to be an explicit nil + +### UnsetBadges +`func (o *APICommentBase) UnsetBadges()` + +UnsetBadges ensures that no value is present for Badges, not even an explicit nil +### GetComment + +`func (o *APICommentBase) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *APICommentBase) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *APICommentBase) SetComment(v string)` + +SetComment sets Comment field to given value. + + +### GetCommentHTML + +`func (o *APICommentBase) GetCommentHTML() string` + +GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. + +### GetCommentHTMLOk + +`func (o *APICommentBase) GetCommentHTMLOk() (*string, bool)` + +GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentHTML + +`func (o *APICommentBase) SetCommentHTML(v string)` + +SetCommentHTML sets CommentHTML field to given value. + + +### GetCommenterEmail + +`func (o *APICommentBase) GetCommenterEmail() string` + +GetCommenterEmail returns the CommenterEmail field if non-nil, zero value otherwise. + +### GetCommenterEmailOk + +`func (o *APICommentBase) GetCommenterEmailOk() (*string, bool)` + +GetCommenterEmailOk returns a tuple with the CommenterEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommenterEmail + +`func (o *APICommentBase) SetCommenterEmail(v string)` + +SetCommenterEmail sets CommenterEmail field to given value. + +### HasCommenterEmail + +`func (o *APICommentBase) HasCommenterEmail() bool` + +HasCommenterEmail returns a boolean if a field has been set. + +### SetCommenterEmailNil + +`func (o *APICommentBase) SetCommenterEmailNil(b bool)` + + SetCommenterEmailNil sets the value for CommenterEmail to be an explicit nil + +### UnsetCommenterEmail +`func (o *APICommentBase) UnsetCommenterEmail()` + +UnsetCommenterEmail ensures that no value is present for CommenterEmail, not even an explicit nil +### GetCommenterLink + +`func (o *APICommentBase) GetCommenterLink() string` + +GetCommenterLink returns the CommenterLink field if non-nil, zero value otherwise. + +### GetCommenterLinkOk + +`func (o *APICommentBase) GetCommenterLinkOk() (*string, bool)` + +GetCommenterLinkOk returns a tuple with the CommenterLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommenterLink + +`func (o *APICommentBase) SetCommenterLink(v string)` + +SetCommenterLink sets CommenterLink field to given value. + +### HasCommenterLink + +`func (o *APICommentBase) HasCommenterLink() bool` + +HasCommenterLink returns a boolean if a field has been set. + +### SetCommenterLinkNil + +`func (o *APICommentBase) SetCommenterLinkNil(b bool)` + + SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil + +### UnsetCommenterLink +`func (o *APICommentBase) UnsetCommenterLink()` + +UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +### GetCommenterName + +`func (o *APICommentBase) GetCommenterName() string` + +GetCommenterName returns the CommenterName field if non-nil, zero value otherwise. + +### GetCommenterNameOk + +`func (o *APICommentBase) GetCommenterNameOk() (*string, bool)` + +GetCommenterNameOk returns a tuple with the CommenterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommenterName + +`func (o *APICommentBase) SetCommenterName(v string)` + +SetCommenterName sets CommenterName field to given value. + + +### GetDate + +`func (o *APICommentBase) GetDate() time.Time` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *APICommentBase) GetDateOk() (*time.Time, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *APICommentBase) SetDate(v time.Time)` + +SetDate sets Date field to given value. + + +### SetDateNil + +`func (o *APICommentBase) SetDateNil(b bool)` + + SetDateNil sets the value for Date to be an explicit nil + +### UnsetDate +`func (o *APICommentBase) UnsetDate()` + +UnsetDate ensures that no value is present for Date, not even an explicit nil +### GetDisplayLabel + +`func (o *APICommentBase) GetDisplayLabel() string` + +GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. + +### GetDisplayLabelOk + +`func (o *APICommentBase) GetDisplayLabelOk() (*string, bool)` + +GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayLabel + +`func (o *APICommentBase) SetDisplayLabel(v string)` + +SetDisplayLabel sets DisplayLabel field to given value. + +### HasDisplayLabel + +`func (o *APICommentBase) HasDisplayLabel() bool` + +HasDisplayLabel returns a boolean if a field has been set. + +### SetDisplayLabelNil + +`func (o *APICommentBase) SetDisplayLabelNil(b bool)` + + SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil + +### UnsetDisplayLabel +`func (o *APICommentBase) UnsetDisplayLabel()` + +UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +### GetDomain + +`func (o *APICommentBase) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *APICommentBase) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *APICommentBase) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *APICommentBase) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + +### SetDomainNil + +`func (o *APICommentBase) SetDomainNil(b bool)` + + SetDomainNil sets the value for Domain to be an explicit nil + +### UnsetDomain +`func (o *APICommentBase) UnsetDomain()` + +UnsetDomain ensures that no value is present for Domain, not even an explicit nil +### GetExternalId + +`func (o *APICommentBase) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *APICommentBase) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *APICommentBase) SetExternalId(v string)` + +SetExternalId sets ExternalId field to given value. + +### HasExternalId + +`func (o *APICommentBase) HasExternalId() bool` + +HasExternalId returns a boolean if a field has been set. + +### GetExternalParentId + +`func (o *APICommentBase) GetExternalParentId() string` + +GetExternalParentId returns the ExternalParentId field if non-nil, zero value otherwise. + +### GetExternalParentIdOk + +`func (o *APICommentBase) GetExternalParentIdOk() (*string, bool)` + +GetExternalParentIdOk returns a tuple with the ExternalParentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalParentId + +`func (o *APICommentBase) SetExternalParentId(v string)` + +SetExternalParentId sets ExternalParentId field to given value. + +### HasExternalParentId + +`func (o *APICommentBase) HasExternalParentId() bool` + +HasExternalParentId returns a boolean if a field has been set. + +### SetExternalParentIdNil + +`func (o *APICommentBase) SetExternalParentIdNil(b bool)` + + SetExternalParentIdNil sets the value for ExternalParentId to be an explicit nil + +### UnsetExternalParentId +`func (o *APICommentBase) UnsetExternalParentId()` + +UnsetExternalParentId ensures that no value is present for ExternalParentId, not even an explicit nil +### GetExpireAt + +`func (o *APICommentBase) GetExpireAt() time.Time` + +GetExpireAt returns the ExpireAt field if non-nil, zero value otherwise. + +### GetExpireAtOk + +`func (o *APICommentBase) GetExpireAtOk() (*time.Time, bool)` + +GetExpireAtOk returns a tuple with the ExpireAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpireAt + +`func (o *APICommentBase) SetExpireAt(v time.Time)` + +SetExpireAt sets ExpireAt field to given value. + +### HasExpireAt + +`func (o *APICommentBase) HasExpireAt() bool` + +HasExpireAt returns a boolean if a field has been set. + +### SetExpireAtNil + +`func (o *APICommentBase) SetExpireAtNil(b bool)` + + SetExpireAtNil sets the value for ExpireAt to be an explicit nil + +### UnsetExpireAt +`func (o *APICommentBase) UnsetExpireAt()` + +UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +### GetFeedbackIds + +`func (o *APICommentBase) GetFeedbackIds() []string` + +GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. + +### GetFeedbackIdsOk + +`func (o *APICommentBase) GetFeedbackIdsOk() (*[]string, bool)` + +GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeedbackIds + +`func (o *APICommentBase) SetFeedbackIds(v []string)` + +SetFeedbackIds sets FeedbackIds field to given value. + +### HasFeedbackIds + +`func (o *APICommentBase) HasFeedbackIds() bool` + +HasFeedbackIds returns a boolean if a field has been set. + +### GetFlagCount + +`func (o *APICommentBase) GetFlagCount() int32` + +GetFlagCount returns the FlagCount field if non-nil, zero value otherwise. + +### GetFlagCountOk + +`func (o *APICommentBase) GetFlagCountOk() (*int32, bool)` + +GetFlagCountOk returns a tuple with the FlagCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlagCount + +`func (o *APICommentBase) SetFlagCount(v int32)` + +SetFlagCount sets FlagCount field to given value. + +### HasFlagCount + +`func (o *APICommentBase) HasFlagCount() bool` + +HasFlagCount returns a boolean if a field has been set. + +### SetFlagCountNil + +`func (o *APICommentBase) SetFlagCountNil(b bool)` + + SetFlagCountNil sets the value for FlagCount to be an explicit nil + +### UnsetFlagCount +`func (o *APICommentBase) UnsetFlagCount()` + +UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil +### GetFromProductId + +`func (o *APICommentBase) GetFromProductId() int32` + +GetFromProductId returns the FromProductId field if non-nil, zero value otherwise. + +### GetFromProductIdOk + +`func (o *APICommentBase) GetFromProductIdOk() (*int32, bool)` + +GetFromProductIdOk returns a tuple with the FromProductId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFromProductId + +`func (o *APICommentBase) SetFromProductId(v int32)` + +SetFromProductId sets FromProductId field to given value. + +### HasFromProductId + +`func (o *APICommentBase) HasFromProductId() bool` + +HasFromProductId returns a boolean if a field has been set. + +### GetHasCode + +`func (o *APICommentBase) GetHasCode() bool` + +GetHasCode returns the HasCode field if non-nil, zero value otherwise. + +### GetHasCodeOk + +`func (o *APICommentBase) GetHasCodeOk() (*bool, bool)` + +GetHasCodeOk returns a tuple with the HasCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasCode + +`func (o *APICommentBase) SetHasCode(v bool)` + +SetHasCode sets HasCode field to given value. + +### HasHasCode + +`func (o *APICommentBase) HasHasCode() bool` + +HasHasCode returns a boolean if a field has been set. + +### GetHasImages + +`func (o *APICommentBase) GetHasImages() bool` + +GetHasImages returns the HasImages field if non-nil, zero value otherwise. + +### GetHasImagesOk + +`func (o *APICommentBase) GetHasImagesOk() (*bool, bool)` + +GetHasImagesOk returns a tuple with the HasImages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasImages + +`func (o *APICommentBase) SetHasImages(v bool)` + +SetHasImages sets HasImages field to given value. + +### HasHasImages + +`func (o *APICommentBase) HasHasImages() bool` + +HasHasImages returns a boolean if a field has been set. + +### GetHasLinks + +`func (o *APICommentBase) GetHasLinks() bool` + +GetHasLinks returns the HasLinks field if non-nil, zero value otherwise. + +### GetHasLinksOk + +`func (o *APICommentBase) GetHasLinksOk() (*bool, bool)` + +GetHasLinksOk returns a tuple with the HasLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasLinks + +`func (o *APICommentBase) SetHasLinks(v bool)` + +SetHasLinks sets HasLinks field to given value. + +### HasHasLinks + +`func (o *APICommentBase) HasHasLinks() bool` + +HasHasLinks returns a boolean if a field has been set. + +### GetHashTags + +`func (o *APICommentBase) GetHashTags() []CommentUserHashTagInfo` + +GetHashTags returns the HashTags field if non-nil, zero value otherwise. + +### GetHashTagsOk + +`func (o *APICommentBase) GetHashTagsOk() (*[]CommentUserHashTagInfo, bool)` + +GetHashTagsOk returns a tuple with the HashTags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashTags + +`func (o *APICommentBase) SetHashTags(v []CommentUserHashTagInfo)` + +SetHashTags sets HashTags field to given value. + +### HasHashTags + +`func (o *APICommentBase) HasHashTags() bool` + +HasHashTags returns a boolean if a field has been set. + +### GetIsByAdmin + +`func (o *APICommentBase) GetIsByAdmin() bool` + +GetIsByAdmin returns the IsByAdmin field if non-nil, zero value otherwise. + +### GetIsByAdminOk + +`func (o *APICommentBase) GetIsByAdminOk() (*bool, bool)` + +GetIsByAdminOk returns a tuple with the IsByAdmin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsByAdmin + +`func (o *APICommentBase) SetIsByAdmin(v bool)` + +SetIsByAdmin sets IsByAdmin field to given value. + +### HasIsByAdmin + +`func (o *APICommentBase) HasIsByAdmin() bool` + +HasIsByAdmin returns a boolean if a field has been set. + +### GetIsByModerator + +`func (o *APICommentBase) GetIsByModerator() bool` + +GetIsByModerator returns the IsByModerator field if non-nil, zero value otherwise. + +### GetIsByModeratorOk + +`func (o *APICommentBase) GetIsByModeratorOk() (*bool, bool)` + +GetIsByModeratorOk returns a tuple with the IsByModerator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsByModerator + +`func (o *APICommentBase) SetIsByModerator(v bool)` + +SetIsByModerator sets IsByModerator field to given value. + +### HasIsByModerator + +`func (o *APICommentBase) HasIsByModerator() bool` + +HasIsByModerator returns a boolean if a field has been set. + +### GetIsDeleted + +`func (o *APICommentBase) GetIsDeleted() bool` + +GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. + +### GetIsDeletedOk + +`func (o *APICommentBase) GetIsDeletedOk() (*bool, bool)` + +GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeleted + +`func (o *APICommentBase) SetIsDeleted(v bool)` + +SetIsDeleted sets IsDeleted field to given value. + +### HasIsDeleted + +`func (o *APICommentBase) HasIsDeleted() bool` + +HasIsDeleted returns a boolean if a field has been set. + +### GetIsDeletedUser + +`func (o *APICommentBase) GetIsDeletedUser() bool` + +GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. + +### GetIsDeletedUserOk + +`func (o *APICommentBase) GetIsDeletedUserOk() (*bool, bool)` + +GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeletedUser + +`func (o *APICommentBase) SetIsDeletedUser(v bool)` + +SetIsDeletedUser sets IsDeletedUser field to given value. + +### HasIsDeletedUser + +`func (o *APICommentBase) HasIsDeletedUser() bool` + +HasIsDeletedUser returns a boolean if a field has been set. + +### GetIsPinned + +`func (o *APICommentBase) GetIsPinned() bool` + +GetIsPinned returns the IsPinned field if non-nil, zero value otherwise. + +### GetIsPinnedOk + +`func (o *APICommentBase) GetIsPinnedOk() (*bool, bool)` + +GetIsPinnedOk returns a tuple with the IsPinned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPinned + +`func (o *APICommentBase) SetIsPinned(v bool)` + +SetIsPinned sets IsPinned field to given value. + +### HasIsPinned + +`func (o *APICommentBase) HasIsPinned() bool` + +HasIsPinned returns a boolean if a field has been set. + +### SetIsPinnedNil + +`func (o *APICommentBase) SetIsPinnedNil(b bool)` + + SetIsPinnedNil sets the value for IsPinned to be an explicit nil + +### UnsetIsPinned +`func (o *APICommentBase) UnsetIsPinned()` + +UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +### GetIsLocked + +`func (o *APICommentBase) GetIsLocked() bool` + +GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. + +### GetIsLockedOk + +`func (o *APICommentBase) GetIsLockedOk() (*bool, bool)` + +GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLocked + +`func (o *APICommentBase) SetIsLocked(v bool)` + +SetIsLocked sets IsLocked field to given value. + +### HasIsLocked + +`func (o *APICommentBase) HasIsLocked() bool` + +HasIsLocked returns a boolean if a field has been set. + +### SetIsLockedNil + +`func (o *APICommentBase) SetIsLockedNil(b bool)` + + SetIsLockedNil sets the value for IsLocked to be an explicit nil + +### UnsetIsLocked +`func (o *APICommentBase) UnsetIsLocked()` + +UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +### GetIsSpam + +`func (o *APICommentBase) GetIsSpam() bool` + +GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. + +### GetIsSpamOk + +`func (o *APICommentBase) GetIsSpamOk() (*bool, bool)` + +GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSpam + +`func (o *APICommentBase) SetIsSpam(v bool)` + +SetIsSpam sets IsSpam field to given value. + +### HasIsSpam + +`func (o *APICommentBase) HasIsSpam() bool` + +HasIsSpam returns a boolean if a field has been set. + +### GetLocalDateHours + +`func (o *APICommentBase) GetLocalDateHours() int32` + +GetLocalDateHours returns the LocalDateHours field if non-nil, zero value otherwise. + +### GetLocalDateHoursOk + +`func (o *APICommentBase) GetLocalDateHoursOk() (*int32, bool)` + +GetLocalDateHoursOk returns a tuple with the LocalDateHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalDateHours + +`func (o *APICommentBase) SetLocalDateHours(v int32)` + +SetLocalDateHours sets LocalDateHours field to given value. + +### HasLocalDateHours + +`func (o *APICommentBase) HasLocalDateHours() bool` + +HasLocalDateHours returns a boolean if a field has been set. + +### SetLocalDateHoursNil + +`func (o *APICommentBase) SetLocalDateHoursNil(b bool)` + + SetLocalDateHoursNil sets the value for LocalDateHours to be an explicit nil + +### UnsetLocalDateHours +`func (o *APICommentBase) UnsetLocalDateHours()` + +UnsetLocalDateHours ensures that no value is present for LocalDateHours, not even an explicit nil +### GetLocalDateString + +`func (o *APICommentBase) GetLocalDateString() string` + +GetLocalDateString returns the LocalDateString field if non-nil, zero value otherwise. + +### GetLocalDateStringOk + +`func (o *APICommentBase) GetLocalDateStringOk() (*string, bool)` + +GetLocalDateStringOk returns a tuple with the LocalDateString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalDateString + +`func (o *APICommentBase) SetLocalDateString(v string)` + +SetLocalDateString sets LocalDateString field to given value. + +### HasLocalDateString + +`func (o *APICommentBase) HasLocalDateString() bool` + +HasLocalDateString returns a boolean if a field has been set. + +### SetLocalDateStringNil + +`func (o *APICommentBase) SetLocalDateStringNil(b bool)` + + SetLocalDateStringNil sets the value for LocalDateString to be an explicit nil + +### UnsetLocalDateString +`func (o *APICommentBase) UnsetLocalDateString()` + +UnsetLocalDateString ensures that no value is present for LocalDateString, not even an explicit nil +### GetLocale + +`func (o *APICommentBase) GetLocale() string` + +GetLocale returns the Locale field if non-nil, zero value otherwise. + +### GetLocaleOk + +`func (o *APICommentBase) GetLocaleOk() (*string, bool)` + +GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocale + +`func (o *APICommentBase) SetLocale(v string)` + +SetLocale sets Locale field to given value. + + +### SetLocaleNil + +`func (o *APICommentBase) SetLocaleNil(b bool)` + + SetLocaleNil sets the value for Locale to be an explicit nil + +### UnsetLocale +`func (o *APICommentBase) UnsetLocale()` + +UnsetLocale ensures that no value is present for Locale, not even an explicit nil +### GetMentions + +`func (o *APICommentBase) GetMentions() []CommentUserMentionInfo` + +GetMentions returns the Mentions field if non-nil, zero value otherwise. + +### GetMentionsOk + +`func (o *APICommentBase) GetMentionsOk() (*[]CommentUserMentionInfo, bool)` + +GetMentionsOk returns a tuple with the Mentions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMentions + +`func (o *APICommentBase) SetMentions(v []CommentUserMentionInfo)` + +SetMentions sets Mentions field to given value. + +### HasMentions + +`func (o *APICommentBase) HasMentions() bool` + +HasMentions returns a boolean if a field has been set. + +### GetMeta + +`func (o *APICommentBase) GetMeta() FCommentMeta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *APICommentBase) GetMetaOk() (*FCommentMeta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *APICommentBase) SetMeta(v FCommentMeta)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *APICommentBase) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### SetMetaNil + +`func (o *APICommentBase) SetMetaNil(b bool)` + + SetMetaNil sets the value for Meta to be an explicit nil + +### UnsetMeta +`func (o *APICommentBase) UnsetMeta()` + +UnsetMeta ensures that no value is present for Meta, not even an explicit nil +### GetModerationGroupIds + +`func (o *APICommentBase) GetModerationGroupIds() []string` + +GetModerationGroupIds returns the ModerationGroupIds field if non-nil, zero value otherwise. + +### GetModerationGroupIdsOk + +`func (o *APICommentBase) GetModerationGroupIdsOk() (*[]string, bool)` + +GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModerationGroupIds + +`func (o *APICommentBase) SetModerationGroupIds(v []string)` + +SetModerationGroupIds sets ModerationGroupIds field to given value. + +### HasModerationGroupIds + +`func (o *APICommentBase) HasModerationGroupIds() bool` + +HasModerationGroupIds returns a boolean if a field has been set. + +### SetModerationGroupIdsNil + +`func (o *APICommentBase) SetModerationGroupIdsNil(b bool)` + + SetModerationGroupIdsNil sets the value for ModerationGroupIds to be an explicit nil + +### UnsetModerationGroupIds +`func (o *APICommentBase) UnsetModerationGroupIds()` + +UnsetModerationGroupIds ensures that no value is present for ModerationGroupIds, not even an explicit nil +### GetNotificationSentForParent + +`func (o *APICommentBase) GetNotificationSentForParent() bool` + +GetNotificationSentForParent returns the NotificationSentForParent field if non-nil, zero value otherwise. + +### GetNotificationSentForParentOk + +`func (o *APICommentBase) GetNotificationSentForParentOk() (*bool, bool)` + +GetNotificationSentForParentOk returns a tuple with the NotificationSentForParent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationSentForParent + +`func (o *APICommentBase) SetNotificationSentForParent(v bool)` + +SetNotificationSentForParent sets NotificationSentForParent field to given value. + +### HasNotificationSentForParent + +`func (o *APICommentBase) HasNotificationSentForParent() bool` + +HasNotificationSentForParent returns a boolean if a field has been set. + +### GetNotificationSentForParentTenant + +`func (o *APICommentBase) GetNotificationSentForParentTenant() bool` + +GetNotificationSentForParentTenant returns the NotificationSentForParentTenant field if non-nil, zero value otherwise. + +### GetNotificationSentForParentTenantOk + +`func (o *APICommentBase) GetNotificationSentForParentTenantOk() (*bool, bool)` + +GetNotificationSentForParentTenantOk returns a tuple with the NotificationSentForParentTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationSentForParentTenant + +`func (o *APICommentBase) SetNotificationSentForParentTenant(v bool)` + +SetNotificationSentForParentTenant sets NotificationSentForParentTenant field to given value. + +### HasNotificationSentForParentTenant + +`func (o *APICommentBase) HasNotificationSentForParentTenant() bool` + +HasNotificationSentForParentTenant returns a boolean if a field has been set. + +### GetPageTitle + +`func (o *APICommentBase) GetPageTitle() string` + +GetPageTitle returns the PageTitle field if non-nil, zero value otherwise. + +### GetPageTitleOk + +`func (o *APICommentBase) GetPageTitleOk() (*string, bool)` + +GetPageTitleOk returns a tuple with the PageTitle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageTitle + +`func (o *APICommentBase) SetPageTitle(v string)` + +SetPageTitle sets PageTitle field to given value. + +### HasPageTitle + +`func (o *APICommentBase) HasPageTitle() bool` + +HasPageTitle returns a boolean if a field has been set. + +### SetPageTitleNil + +`func (o *APICommentBase) SetPageTitleNil(b bool)` + + SetPageTitleNil sets the value for PageTitle to be an explicit nil + +### UnsetPageTitle +`func (o *APICommentBase) UnsetPageTitle()` + +UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +### GetParentId + +`func (o *APICommentBase) GetParentId() string` + +GetParentId returns the ParentId field if non-nil, zero value otherwise. + +### GetParentIdOk + +`func (o *APICommentBase) GetParentIdOk() (*string, bool)` + +GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentId + +`func (o *APICommentBase) SetParentId(v string)` + +SetParentId sets ParentId field to given value. + +### HasParentId + +`func (o *APICommentBase) HasParentId() bool` + +HasParentId returns a boolean if a field has been set. + +### SetParentIdNil + +`func (o *APICommentBase) SetParentIdNil(b bool)` + + SetParentIdNil sets the value for ParentId to be an explicit nil + +### UnsetParentId +`func (o *APICommentBase) UnsetParentId()` + +UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +### GetRating + +`func (o *APICommentBase) GetRating() float64` + +GetRating returns the Rating field if non-nil, zero value otherwise. + +### GetRatingOk + +`func (o *APICommentBase) GetRatingOk() (*float64, bool)` + +GetRatingOk returns a tuple with the Rating field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRating + +`func (o *APICommentBase) SetRating(v float64)` + +SetRating sets Rating field to given value. + +### HasRating + +`func (o *APICommentBase) HasRating() bool` + +HasRating returns a boolean if a field has been set. + +### SetRatingNil + +`func (o *APICommentBase) SetRatingNil(b bool)` + + SetRatingNil sets the value for Rating to be an explicit nil + +### UnsetRating +`func (o *APICommentBase) UnsetRating()` + +UnsetRating ensures that no value is present for Rating, not even an explicit nil +### GetReviewed + +`func (o *APICommentBase) GetReviewed() bool` + +GetReviewed returns the Reviewed field if non-nil, zero value otherwise. + +### GetReviewedOk + +`func (o *APICommentBase) GetReviewedOk() (*bool, bool)` + +GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReviewed + +`func (o *APICommentBase) SetReviewed(v bool)` + +SetReviewed sets Reviewed field to given value. + +### HasReviewed + +`func (o *APICommentBase) HasReviewed() bool` + +HasReviewed returns a boolean if a field has been set. + +### GetTenantId + +`func (o *APICommentBase) GetTenantId() string` + +GetTenantId returns the TenantId field if non-nil, zero value otherwise. + +### GetTenantIdOk + +`func (o *APICommentBase) GetTenantIdOk() (*string, bool)` + +GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantId + +`func (o *APICommentBase) SetTenantId(v string)` + +SetTenantId sets TenantId field to given value. + + +### GetUrl + +`func (o *APICommentBase) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *APICommentBase) 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 *APICommentBase) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetUrlId + +`func (o *APICommentBase) GetUrlId() string` + +GetUrlId returns the UrlId field if non-nil, zero value otherwise. + +### GetUrlIdOk + +`func (o *APICommentBase) GetUrlIdOk() (*string, bool)` + +GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlId + +`func (o *APICommentBase) SetUrlId(v string)` + +SetUrlId sets UrlId field to given value. + + +### GetUrlIdRaw + +`func (o *APICommentBase) GetUrlIdRaw() string` + +GetUrlIdRaw returns the UrlIdRaw field if non-nil, zero value otherwise. + +### GetUrlIdRawOk + +`func (o *APICommentBase) GetUrlIdRawOk() (*string, bool)` + +GetUrlIdRawOk returns a tuple with the UrlIdRaw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlIdRaw + +`func (o *APICommentBase) SetUrlIdRaw(v string)` + +SetUrlIdRaw sets UrlIdRaw field to given value. + +### HasUrlIdRaw + +`func (o *APICommentBase) HasUrlIdRaw() bool` + +HasUrlIdRaw returns a boolean if a field has been set. + +### GetUserId + +`func (o *APICommentBase) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *APICommentBase) GetUserIdOk() (*string, 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 *APICommentBase) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *APICommentBase) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *APICommentBase) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *APICommentBase) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, not even an explicit nil +### GetVerified + +`func (o *APICommentBase) GetVerified() bool` + +GetVerified returns the Verified field if non-nil, zero value otherwise. + +### GetVerifiedOk + +`func (o *APICommentBase) GetVerifiedOk() (*bool, bool)` + +GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerified + +`func (o *APICommentBase) SetVerified(v bool)` + +SetVerified sets Verified field to given value. + + +### GetVerifiedDate + +`func (o *APICommentBase) GetVerifiedDate() time.Time` + +GetVerifiedDate returns the VerifiedDate field if non-nil, zero value otherwise. + +### GetVerifiedDateOk + +`func (o *APICommentBase) GetVerifiedDateOk() (*time.Time, bool)` + +GetVerifiedDateOk returns a tuple with the VerifiedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifiedDate + +`func (o *APICommentBase) SetVerifiedDate(v time.Time)` + +SetVerifiedDate sets VerifiedDate field to given value. + +### HasVerifiedDate + +`func (o *APICommentBase) HasVerifiedDate() bool` + +HasVerifiedDate returns a boolean if a field has been set. + +### SetVerifiedDateNil + +`func (o *APICommentBase) SetVerifiedDateNil(b bool)` + + SetVerifiedDateNil sets the value for VerifiedDate to be an explicit nil + +### UnsetVerifiedDate +`func (o *APICommentBase) UnsetVerifiedDate()` + +UnsetVerifiedDate ensures that no value is present for VerifiedDate, not even an explicit nil +### GetVotes + +`func (o *APICommentBase) GetVotes() int32` + +GetVotes returns the Votes field if non-nil, zero value otherwise. + +### GetVotesOk + +`func (o *APICommentBase) GetVotesOk() (*int32, bool)` + +GetVotesOk returns a tuple with the Votes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotes + +`func (o *APICommentBase) SetVotes(v int32)` + +SetVotes sets Votes field to given value. + +### HasVotes + +`func (o *APICommentBase) HasVotes() bool` + +HasVotes returns a boolean if a field has been set. + +### SetVotesNil + +`func (o *APICommentBase) SetVotesNil(b bool)` + + SetVotesNil sets the value for Votes to be an explicit nil + +### UnsetVotes +`func (o *APICommentBase) UnsetVotes()` + +UnsetVotes ensures that no value is present for Votes, not even an explicit nil +### GetVotesDown + +`func (o *APICommentBase) GetVotesDown() int32` + +GetVotesDown returns the VotesDown field if non-nil, zero value otherwise. + +### GetVotesDownOk + +`func (o *APICommentBase) GetVotesDownOk() (*int32, bool)` + +GetVotesDownOk returns a tuple with the VotesDown field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesDown + +`func (o *APICommentBase) SetVotesDown(v int32)` + +SetVotesDown sets VotesDown field to given value. + +### HasVotesDown + +`func (o *APICommentBase) HasVotesDown() bool` + +HasVotesDown returns a boolean if a field has been set. + +### SetVotesDownNil + +`func (o *APICommentBase) SetVotesDownNil(b bool)` + + SetVotesDownNil sets the value for VotesDown to be an explicit nil + +### UnsetVotesDown +`func (o *APICommentBase) UnsetVotesDown()` + +UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +### GetVotesUp + +`func (o *APICommentBase) GetVotesUp() int32` + +GetVotesUp returns the VotesUp field if non-nil, zero value otherwise. + +### GetVotesUpOk + +`func (o *APICommentBase) GetVotesUpOk() (*int32, bool)` + +GetVotesUpOk returns a tuple with the VotesUp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesUp + +`func (o *APICommentBase) SetVotesUp(v int32)` + +SetVotesUp sets VotesUp field to given value. + +### HasVotesUp + +`func (o *APICommentBase) HasVotesUp() bool` + +HasVotesUp returns a boolean if a field has been set. + +### SetVotesUpNil + +`func (o *APICommentBase) SetVotesUpNil(b bool)` + + SetVotesUpNil sets the value for VotesUp to be an explicit nil + +### UnsetVotesUp +`func (o *APICommentBase) UnsetVotesUp()` + +UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APICreateUserBadgeResponse.md b/client/docs/APICreateUserBadgeResponse.md index b152ee1..034223c 100644 --- a/client/docs/APICreateUserBadgeResponse.md +++ b/client/docs/APICreateUserBadgeResponse.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | [**APIStatus**](APIStatus.md) | | **UserBadge** | [**UserBadge**](UserBadge.md) | | +**Notes** | Pointer to **[]string** | | [optional] ## Methods @@ -66,6 +67,31 @@ and a boolean to check if the value has been set. SetUserBadge sets UserBadge field to given value. +### GetNotes + +`func (o *APICreateUserBadgeResponse) GetNotes() []string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *APICreateUserBadgeResponse) GetNotesOk() (*[]string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *APICreateUserBadgeResponse) SetNotes(v []string)` + +SetNotes sets Notes field to given value. + +### HasNotes + +`func (o *APICreateUserBadgeResponse) HasNotes() bool` + +HasNotes returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/APIEmptyResponse.md b/client/docs/APIEmptyResponse.md index c484ec4..e3670d2 100644 --- a/client/docs/APIEmptyResponse.md +++ b/client/docs/APIEmptyResponse.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | ## Methods ### NewAPIEmptyResponse -`func NewAPIEmptyResponse(status ImportedAPIStatusSUCCESS, ) *APIEmptyResponse` +`func NewAPIEmptyResponse(status APIStatus, ) *APIEmptyResponse` NewAPIEmptyResponse instantiates a new APIEmptyResponse object This constructor will assign default values to properties that have it defined, @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *APIEmptyResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *APIEmptyResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *APIEmptyResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *APIEmptyResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *APIEmptyResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *APIEmptyResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/APIError.md b/client/docs/APIError.md index e520049..63a4046 100644 --- a/client/docs/APIError.md +++ b/client/docs/APIError.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewAPIError -`func NewAPIError(status ImportedAPIStatusFAILED, reason string, code string, ) *APIError` +`func NewAPIError(status APIStatus, reason string, code string, ) *APIError` NewAPIError instantiates a new APIError object This constructor will assign default values to properties that have it defined, @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *APIError) GetStatus() ImportedAPIStatusFAILED` +`func (o *APIError) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *APIError) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *APIError) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *APIError) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *APIError) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/APIGetCommentResponse.md b/client/docs/APIGetCommentResponse.md index 04bd6f4..770689c 100644 --- a/client/docs/APIGetCommentResponse.md +++ b/client/docs/APIGetCommentResponse.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | [**APIStatus**](APIStatus.md) | | -**Comment** | [**PickFCommentAPICommentFieldsKeys**](PickFCommentAPICommentFieldsKeys.md) | | +**Comment** | [**APIComment**](APIComment.md) | | ## Methods ### NewAPIGetCommentResponse -`func NewAPIGetCommentResponse(status APIStatus, comment PickFCommentAPICommentFieldsKeys, ) *APIGetCommentResponse` +`func NewAPIGetCommentResponse(status APIStatus, comment APIComment, ) *APIGetCommentResponse` NewAPIGetCommentResponse instantiates a new APIGetCommentResponse object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetStatus sets Status field to given value. ### GetComment -`func (o *APIGetCommentResponse) GetComment() PickFCommentAPICommentFieldsKeys` +`func (o *APIGetCommentResponse) GetComment() APIComment` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *APIGetCommentResponse) GetCommentOk() (*PickFCommentAPICommentFieldsKeys, bool)` +`func (o *APIGetCommentResponse) GetCommentOk() (*APIComment, bool)` GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComment -`func (o *APIGetCommentResponse) SetComment(v PickFCommentAPICommentFieldsKeys)` +`func (o *APIGetCommentResponse) SetComment(v APIComment)` SetComment sets Comment field to given value. diff --git a/client/docs/APIGetCommentsResponse.md b/client/docs/APIGetCommentsResponse.md index 5aec83a..9aef61b 100644 --- a/client/docs/APIGetCommentsResponse.md +++ b/client/docs/APIGetCommentsResponse.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | [**APIStatus**](APIStatus.md) | | -**Comments** | [**[]PickFCommentAPICommentFieldsKeys**](PickFCommentAPICommentFieldsKeys.md) | | +**Comments** | [**[]APIComment**](APIComment.md) | | ## Methods ### NewAPIGetCommentsResponse -`func NewAPIGetCommentsResponse(status APIStatus, comments []PickFCommentAPICommentFieldsKeys, ) *APIGetCommentsResponse` +`func NewAPIGetCommentsResponse(status APIStatus, comments []APIComment, ) *APIGetCommentsResponse` NewAPIGetCommentsResponse instantiates a new APIGetCommentsResponse object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetStatus sets Status field to given value. ### GetComments -`func (o *APIGetCommentsResponse) GetComments() []PickFCommentAPICommentFieldsKeys` +`func (o *APIGetCommentsResponse) GetComments() []APIComment` GetComments returns the Comments field if non-nil, zero value otherwise. ### GetCommentsOk -`func (o *APIGetCommentsResponse) GetCommentsOk() (*[]PickFCommentAPICommentFieldsKeys, bool)` +`func (o *APIGetCommentsResponse) GetCommentsOk() (*[]APIComment, bool)` GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComments -`func (o *APIGetCommentsResponse) SetComments(v []PickFCommentAPICommentFieldsKeys)` +`func (o *APIGetCommentsResponse) SetComments(v []APIComment)` SetComments sets Comments field to given value. diff --git a/client/docs/AggregateQuestionResults200Response.md b/client/docs/AggregateQuestionResults200Response.md index 84bd0a1..be110a5 100644 --- a/client/docs/AggregateQuestionResults200Response.md +++ b/client/docs/AggregateQuestionResults200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Data** | [**QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewAggregateQuestionResults200Response -`func NewAggregateQuestionResults200Response(status ImportedAPIStatusFAILED, data QuestionResultAggregationOverall, reason string, code string, ) *AggregateQuestionResults200Response` +`func NewAggregateQuestionResults200Response(status APIStatus, data QuestionResultAggregationOverall, reason string, code string, ) *AggregateQuestionResults200Response` NewAggregateQuestionResults200Response instantiates a new AggregateQuestionResults200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *AggregateQuestionResults200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *AggregateQuestionResults200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *AggregateQuestionResults200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *AggregateQuestionResults200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *AggregateQuestionResults200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *AggregateQuestionResults200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/BlockFromCommentPublic200Response.md b/client/docs/BlockFromCommentPublic200Response.md index 6c556ac..e33faa3 100644 --- a/client/docs/BlockFromCommentPublic200Response.md +++ b/client/docs/BlockFromCommentPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **CommentStatuses** | **map[string]bool** | Construct a type with a set of properties K of type T | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewBlockFromCommentPublic200Response -`func NewBlockFromCommentPublic200Response(status ImportedAPIStatusFAILED, commentStatuses map[string]bool, reason string, code string, ) *BlockFromCommentPublic200Response` +`func NewBlockFromCommentPublic200Response(status APIStatus, commentStatuses map[string]bool, reason string, code string, ) *BlockFromCommentPublic200Response` NewBlockFromCommentPublic200Response instantiates a new BlockFromCommentPublic200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *BlockFromCommentPublic200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *BlockFromCommentPublic200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *BlockFromCommentPublic200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *BlockFromCommentPublic200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *BlockFromCommentPublic200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *BlockFromCommentPublic200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/BlockSuccess.md b/client/docs/BlockSuccess.md index 1d9d44c..bf32446 100644 --- a/client/docs/BlockSuccess.md +++ b/client/docs/BlockSuccess.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **CommentStatuses** | **map[string]bool** | Construct a type with a set of properties K of type T | ## Methods ### NewBlockSuccess -`func NewBlockSuccess(status ImportedAPIStatusSUCCESS, commentStatuses map[string]bool, ) *BlockSuccess` +`func NewBlockSuccess(status APIStatus, commentStatuses map[string]bool, ) *BlockSuccess` NewBlockSuccess instantiates a new BlockSuccess object This constructor will assign default values to properties that have it defined, @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *BlockSuccess) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *BlockSuccess) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *BlockSuccess) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *BlockSuccess) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *BlockSuccess) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *BlockSuccess) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/BulkAggregateQuestionResults200Response.md b/client/docs/BulkAggregateQuestionResults200Response.md index eebc86c..40d8576 100644 --- a/client/docs/BulkAggregateQuestionResults200Response.md +++ b/client/docs/BulkAggregateQuestionResults200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Data** | [**map[string]QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewBulkAggregateQuestionResults200Response -`func NewBulkAggregateQuestionResults200Response(status ImportedAPIStatusFAILED, data map[string]QuestionResultAggregationOverall, reason string, code string, ) *BulkAggregateQuestionResults200Response` +`func NewBulkAggregateQuestionResults200Response(status APIStatus, data map[string]QuestionResultAggregationOverall, reason string, code string, ) *BulkAggregateQuestionResults200Response` NewBulkAggregateQuestionResults200Response instantiates a new BulkAggregateQuestionResults200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *BulkAggregateQuestionResults200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *BulkAggregateQuestionResults200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *BulkAggregateQuestionResults200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *BulkAggregateQuestionResults200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *BulkAggregateQuestionResults200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *BulkAggregateQuestionResults200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/ChangeCommentPinStatusResponse.md b/client/docs/ChangeCommentPinStatusResponse.md index d72a704..d403f98 100644 --- a/client/docs/ChangeCommentPinStatusResponse.md +++ b/client/docs/ChangeCommentPinStatusResponse.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CommentPositions** | [**map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | ## Methods ### NewChangeCommentPinStatusResponse -`func NewChangeCommentPinStatusResponse(commentPositions map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue, status ImportedAPIStatusSUCCESS, ) *ChangeCommentPinStatusResponse` +`func NewChangeCommentPinStatusResponse(commentPositions map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue, status APIStatus, ) *ChangeCommentPinStatusResponse` NewChangeCommentPinStatusResponse instantiates a new ChangeCommentPinStatusResponse object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetCommentPositions sets CommentPositions field to given value. ### GetStatus -`func (o *ChangeCommentPinStatusResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *ChangeCommentPinStatusResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *ChangeCommentPinStatusResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *ChangeCommentPinStatusResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *ChangeCommentPinStatusResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *ChangeCommentPinStatusResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/CheckBlockedCommentsResponse.md b/client/docs/CheckBlockedCommentsResponse.md index bde5719..91727ca 100644 --- a/client/docs/CheckBlockedCommentsResponse.md +++ b/client/docs/CheckBlockedCommentsResponse.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CommentStatuses** | **map[string]bool** | Construct a type with a set of properties K of type T | -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | ## Methods ### NewCheckBlockedCommentsResponse -`func NewCheckBlockedCommentsResponse(commentStatuses map[string]bool, status ImportedAPIStatusSUCCESS, ) *CheckBlockedCommentsResponse` +`func NewCheckBlockedCommentsResponse(commentStatuses map[string]bool, status APIStatus, ) *CheckBlockedCommentsResponse` NewCheckBlockedCommentsResponse instantiates a new CheckBlockedCommentsResponse object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetCommentStatuses sets CommentStatuses field to given value. ### GetStatus -`func (o *CheckBlockedCommentsResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *CheckBlockedCommentsResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *CheckBlockedCommentsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *CheckBlockedCommentsResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *CheckBlockedCommentsResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *CheckBlockedCommentsResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/CheckedCommentsForBlocked200Response.md b/client/docs/CheckedCommentsForBlocked200Response.md index 699f294..549deb3 100644 --- a/client/docs/CheckedCommentsForBlocked200Response.md +++ b/client/docs/CheckedCommentsForBlocked200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CommentStatuses** | **map[string]bool** | Construct a type with a set of properties K of type T | -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewCheckedCommentsForBlocked200Response -`func NewCheckedCommentsForBlocked200Response(commentStatuses map[string]bool, status ImportedAPIStatusFAILED, reason string, code string, ) *CheckedCommentsForBlocked200Response` +`func NewCheckedCommentsForBlocked200Response(commentStatuses map[string]bool, status APIStatus, reason string, code string, ) *CheckedCommentsForBlocked200Response` NewCheckedCommentsForBlocked200Response instantiates a new CheckedCommentsForBlocked200Response object This constructor will assign default values to properties that have it defined, @@ -55,20 +55,20 @@ SetCommentStatuses sets CommentStatuses field to given value. ### GetStatus -`func (o *CheckedCommentsForBlocked200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *CheckedCommentsForBlocked200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *CheckedCommentsForBlocked200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *CheckedCommentsForBlocked200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *CheckedCommentsForBlocked200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *CheckedCommentsForBlocked200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/CombineCommentsWithQuestionResults200Response.md b/client/docs/CombineCommentsWithQuestionResults200Response.md index 8d74858..9fd02c7 100644 --- a/client/docs/CombineCommentsWithQuestionResults200Response.md +++ b/client/docs/CombineCommentsWithQuestionResults200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Data** | [**FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewCombineCommentsWithQuestionResults200Response -`func NewCombineCommentsWithQuestionResults200Response(status ImportedAPIStatusFAILED, data FindCommentsByRangeResponse, reason string, code string, ) *CombineCommentsWithQuestionResults200Response` +`func NewCombineCommentsWithQuestionResults200Response(status APIStatus, data FindCommentsByRangeResponse, reason string, code string, ) *CombineCommentsWithQuestionResults200Response` NewCombineCommentsWithQuestionResults200Response instantiates a new CombineCommentsWithQuestionResults200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *CombineCommentsWithQuestionResults200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *CombineCommentsWithQuestionResults200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *CombineCommentsWithQuestionResults200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *CombineCommentsWithQuestionResults200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *CombineCommentsWithQuestionResults200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *CombineCommentsWithQuestionResults200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/CommentLogData.md b/client/docs/CommentLogData.md new file mode 100644 index 0000000..9abaffb --- /dev/null +++ b/client/docs/CommentLogData.md @@ -0,0 +1,1248 @@ +# CommentLogData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClearContent** | Pointer to **bool** | | [optional] +**IsDeletedUser** | Pointer to **bool** | | [optional] +**Phrase** | Pointer to **string** | | [optional] +**BadWord** | Pointer to **string** | | [optional] +**Word** | Pointer to **string** | | [optional] +**Locale** | Pointer to **string** | | [optional] +**TenantBadgeId** | Pointer to **string** | | [optional] +**BadgeId** | Pointer to **string** | | [optional] +**WasLoggedIn** | Pointer to **bool** | | [optional] +**FoundUser** | Pointer to **bool** | | [optional] +**Verified** | Pointer to **bool** | | [optional] +**Engine** | Pointer to **string** | | [optional] +**EngineResponse** | Pointer to **string** | | [optional] +**EngineTokens** | Pointer to **float64** | | [optional] +**TrustFactor** | Pointer to **float64** | | [optional] +**Rule** | Pointer to [**SpamRule**](SpamRule.md) | | [optional] +**UserId** | Pointer to **string** | | [optional] +**Subscribers** | Pointer to **float64** | | [optional] +**NotificationCount** | Pointer to **float64** | | [optional] +**VotesBefore** | Pointer to **NullableFloat64** | | [optional] +**VotesUpBefore** | Pointer to **NullableFloat64** | | [optional] +**VotesDownBefore** | Pointer to **NullableFloat64** | | [optional] +**VotesAfter** | Pointer to **NullableFloat64** | | [optional] +**VotesUpAfter** | Pointer to **NullableFloat64** | | [optional] +**VotesDownAfter** | Pointer to **NullableFloat64** | | [optional] +**RepeatAction** | Pointer to [**RepeatCommentHandlingAction**](RepeatCommentHandlingAction.md) | | [optional] +**Reason** | Pointer to [**RepeatCommentCheckIgnoredReason**](RepeatCommentCheckIgnoredReason.md) | | [optional] +**OtherData** | Pointer to **interface{}** | | [optional] +**SpamBefore** | Pointer to **bool** | | [optional] +**SpamAfter** | Pointer to **bool** | | [optional] +**PermanentFlag** | Pointer to **string** | | [optional] +**ApprovedBefore** | Pointer to **bool** | | [optional] +**ApprovedAfter** | Pointer to **bool** | | [optional] +**ReviewedBefore** | Pointer to **bool** | | [optional] +**ReviewedAfter** | Pointer to **bool** | | [optional] +**TextBefore** | Pointer to **string** | | [optional] +**TextAfter** | Pointer to **string** | | [optional] +**ExpireBefore** | Pointer to **NullableTime** | | [optional] +**ExpireAfter** | Pointer to **NullableTime** | | [optional] +**FlagCountBefore** | Pointer to **NullableFloat64** | | [optional] +**TrustFactorBefore** | Pointer to **float64** | | [optional] +**TrustFactorAfter** | Pointer to **float64** | | [optional] +**ReferencedCommentId** | Pointer to **string** | | [optional] + +## Methods + +### NewCommentLogData + +`func NewCommentLogData() *CommentLogData` + +NewCommentLogData instantiates a new CommentLogData 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 + +### NewCommentLogDataWithDefaults + +`func NewCommentLogDataWithDefaults() *CommentLogData` + +NewCommentLogDataWithDefaults instantiates a new CommentLogData 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 + +### GetClearContent + +`func (o *CommentLogData) GetClearContent() bool` + +GetClearContent returns the ClearContent field if non-nil, zero value otherwise. + +### GetClearContentOk + +`func (o *CommentLogData) GetClearContentOk() (*bool, bool)` + +GetClearContentOk returns a tuple with the ClearContent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClearContent + +`func (o *CommentLogData) SetClearContent(v bool)` + +SetClearContent sets ClearContent field to given value. + +### HasClearContent + +`func (o *CommentLogData) HasClearContent() bool` + +HasClearContent returns a boolean if a field has been set. + +### GetIsDeletedUser + +`func (o *CommentLogData) GetIsDeletedUser() bool` + +GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. + +### GetIsDeletedUserOk + +`func (o *CommentLogData) GetIsDeletedUserOk() (*bool, bool)` + +GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeletedUser + +`func (o *CommentLogData) SetIsDeletedUser(v bool)` + +SetIsDeletedUser sets IsDeletedUser field to given value. + +### HasIsDeletedUser + +`func (o *CommentLogData) HasIsDeletedUser() bool` + +HasIsDeletedUser returns a boolean if a field has been set. + +### GetPhrase + +`func (o *CommentLogData) GetPhrase() string` + +GetPhrase returns the Phrase field if non-nil, zero value otherwise. + +### GetPhraseOk + +`func (o *CommentLogData) GetPhraseOk() (*string, bool)` + +GetPhraseOk returns a tuple with the Phrase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhrase + +`func (o *CommentLogData) SetPhrase(v string)` + +SetPhrase sets Phrase field to given value. + +### HasPhrase + +`func (o *CommentLogData) HasPhrase() bool` + +HasPhrase returns a boolean if a field has been set. + +### GetBadWord + +`func (o *CommentLogData) GetBadWord() string` + +GetBadWord returns the BadWord field if non-nil, zero value otherwise. + +### GetBadWordOk + +`func (o *CommentLogData) GetBadWordOk() (*string, bool)` + +GetBadWordOk returns a tuple with the BadWord field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBadWord + +`func (o *CommentLogData) SetBadWord(v string)` + +SetBadWord sets BadWord field to given value. + +### HasBadWord + +`func (o *CommentLogData) HasBadWord() bool` + +HasBadWord returns a boolean if a field has been set. + +### GetWord + +`func (o *CommentLogData) GetWord() string` + +GetWord returns the Word field if non-nil, zero value otherwise. + +### GetWordOk + +`func (o *CommentLogData) GetWordOk() (*string, bool)` + +GetWordOk returns a tuple with the Word field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWord + +`func (o *CommentLogData) SetWord(v string)` + +SetWord sets Word field to given value. + +### HasWord + +`func (o *CommentLogData) HasWord() bool` + +HasWord returns a boolean if a field has been set. + +### GetLocale + +`func (o *CommentLogData) GetLocale() string` + +GetLocale returns the Locale field if non-nil, zero value otherwise. + +### GetLocaleOk + +`func (o *CommentLogData) GetLocaleOk() (*string, bool)` + +GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocale + +`func (o *CommentLogData) SetLocale(v string)` + +SetLocale sets Locale field to given value. + +### HasLocale + +`func (o *CommentLogData) HasLocale() bool` + +HasLocale returns a boolean if a field has been set. + +### GetTenantBadgeId + +`func (o *CommentLogData) GetTenantBadgeId() string` + +GetTenantBadgeId returns the TenantBadgeId field if non-nil, zero value otherwise. + +### GetTenantBadgeIdOk + +`func (o *CommentLogData) GetTenantBadgeIdOk() (*string, bool)` + +GetTenantBadgeIdOk returns a tuple with the TenantBadgeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantBadgeId + +`func (o *CommentLogData) SetTenantBadgeId(v string)` + +SetTenantBadgeId sets TenantBadgeId field to given value. + +### HasTenantBadgeId + +`func (o *CommentLogData) HasTenantBadgeId() bool` + +HasTenantBadgeId returns a boolean if a field has been set. + +### GetBadgeId + +`func (o *CommentLogData) GetBadgeId() string` + +GetBadgeId returns the BadgeId field if non-nil, zero value otherwise. + +### GetBadgeIdOk + +`func (o *CommentLogData) GetBadgeIdOk() (*string, bool)` + +GetBadgeIdOk returns a tuple with the BadgeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBadgeId + +`func (o *CommentLogData) SetBadgeId(v string)` + +SetBadgeId sets BadgeId field to given value. + +### HasBadgeId + +`func (o *CommentLogData) HasBadgeId() bool` + +HasBadgeId returns a boolean if a field has been set. + +### GetWasLoggedIn + +`func (o *CommentLogData) GetWasLoggedIn() bool` + +GetWasLoggedIn returns the WasLoggedIn field if non-nil, zero value otherwise. + +### GetWasLoggedInOk + +`func (o *CommentLogData) GetWasLoggedInOk() (*bool, bool)` + +GetWasLoggedInOk returns a tuple with the WasLoggedIn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWasLoggedIn + +`func (o *CommentLogData) SetWasLoggedIn(v bool)` + +SetWasLoggedIn sets WasLoggedIn field to given value. + +### HasWasLoggedIn + +`func (o *CommentLogData) HasWasLoggedIn() bool` + +HasWasLoggedIn returns a boolean if a field has been set. + +### GetFoundUser + +`func (o *CommentLogData) GetFoundUser() bool` + +GetFoundUser returns the FoundUser field if non-nil, zero value otherwise. + +### GetFoundUserOk + +`func (o *CommentLogData) GetFoundUserOk() (*bool, bool)` + +GetFoundUserOk returns a tuple with the FoundUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFoundUser + +`func (o *CommentLogData) SetFoundUser(v bool)` + +SetFoundUser sets FoundUser field to given value. + +### HasFoundUser + +`func (o *CommentLogData) HasFoundUser() bool` + +HasFoundUser returns a boolean if a field has been set. + +### GetVerified + +`func (o *CommentLogData) GetVerified() bool` + +GetVerified returns the Verified field if non-nil, zero value otherwise. + +### GetVerifiedOk + +`func (o *CommentLogData) GetVerifiedOk() (*bool, bool)` + +GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerified + +`func (o *CommentLogData) SetVerified(v bool)` + +SetVerified sets Verified field to given value. + +### HasVerified + +`func (o *CommentLogData) HasVerified() bool` + +HasVerified returns a boolean if a field has been set. + +### GetEngine + +`func (o *CommentLogData) GetEngine() string` + +GetEngine returns the Engine field if non-nil, zero value otherwise. + +### GetEngineOk + +`func (o *CommentLogData) GetEngineOk() (*string, bool)` + +GetEngineOk returns a tuple with the Engine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEngine + +`func (o *CommentLogData) SetEngine(v string)` + +SetEngine sets Engine field to given value. + +### HasEngine + +`func (o *CommentLogData) HasEngine() bool` + +HasEngine returns a boolean if a field has been set. + +### GetEngineResponse + +`func (o *CommentLogData) GetEngineResponse() string` + +GetEngineResponse returns the EngineResponse field if non-nil, zero value otherwise. + +### GetEngineResponseOk + +`func (o *CommentLogData) GetEngineResponseOk() (*string, bool)` + +GetEngineResponseOk returns a tuple with the EngineResponse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEngineResponse + +`func (o *CommentLogData) SetEngineResponse(v string)` + +SetEngineResponse sets EngineResponse field to given value. + +### HasEngineResponse + +`func (o *CommentLogData) HasEngineResponse() bool` + +HasEngineResponse returns a boolean if a field has been set. + +### GetEngineTokens + +`func (o *CommentLogData) GetEngineTokens() float64` + +GetEngineTokens returns the EngineTokens field if non-nil, zero value otherwise. + +### GetEngineTokensOk + +`func (o *CommentLogData) GetEngineTokensOk() (*float64, bool)` + +GetEngineTokensOk returns a tuple with the EngineTokens field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEngineTokens + +`func (o *CommentLogData) SetEngineTokens(v float64)` + +SetEngineTokens sets EngineTokens field to given value. + +### HasEngineTokens + +`func (o *CommentLogData) HasEngineTokens() bool` + +HasEngineTokens returns a boolean if a field has been set. + +### GetTrustFactor + +`func (o *CommentLogData) GetTrustFactor() float64` + +GetTrustFactor returns the TrustFactor field if non-nil, zero value otherwise. + +### GetTrustFactorOk + +`func (o *CommentLogData) GetTrustFactorOk() (*float64, bool)` + +GetTrustFactorOk returns a tuple with the TrustFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrustFactor + +`func (o *CommentLogData) SetTrustFactor(v float64)` + +SetTrustFactor sets TrustFactor field to given value. + +### HasTrustFactor + +`func (o *CommentLogData) HasTrustFactor() bool` + +HasTrustFactor returns a boolean if a field has been set. + +### GetRule + +`func (o *CommentLogData) GetRule() SpamRule` + +GetRule returns the Rule field if non-nil, zero value otherwise. + +### GetRuleOk + +`func (o *CommentLogData) GetRuleOk() (*SpamRule, bool)` + +GetRuleOk returns a tuple with the Rule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRule + +`func (o *CommentLogData) SetRule(v SpamRule)` + +SetRule sets Rule field to given value. + +### HasRule + +`func (o *CommentLogData) HasRule() bool` + +HasRule returns a boolean if a field has been set. + +### GetUserId + +`func (o *CommentLogData) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *CommentLogData) GetUserIdOk() (*string, 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 *CommentLogData) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *CommentLogData) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### GetSubscribers + +`func (o *CommentLogData) GetSubscribers() float64` + +GetSubscribers returns the Subscribers field if non-nil, zero value otherwise. + +### GetSubscribersOk + +`func (o *CommentLogData) GetSubscribersOk() (*float64, bool)` + +GetSubscribersOk returns a tuple with the Subscribers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscribers + +`func (o *CommentLogData) SetSubscribers(v float64)` + +SetSubscribers sets Subscribers field to given value. + +### HasSubscribers + +`func (o *CommentLogData) HasSubscribers() bool` + +HasSubscribers returns a boolean if a field has been set. + +### GetNotificationCount + +`func (o *CommentLogData) GetNotificationCount() float64` + +GetNotificationCount returns the NotificationCount field if non-nil, zero value otherwise. + +### GetNotificationCountOk + +`func (o *CommentLogData) GetNotificationCountOk() (*float64, bool)` + +GetNotificationCountOk returns a tuple with the NotificationCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationCount + +`func (o *CommentLogData) SetNotificationCount(v float64)` + +SetNotificationCount sets NotificationCount field to given value. + +### HasNotificationCount + +`func (o *CommentLogData) HasNotificationCount() bool` + +HasNotificationCount returns a boolean if a field has been set. + +### GetVotesBefore + +`func (o *CommentLogData) GetVotesBefore() float64` + +GetVotesBefore returns the VotesBefore field if non-nil, zero value otherwise. + +### GetVotesBeforeOk + +`func (o *CommentLogData) GetVotesBeforeOk() (*float64, bool)` + +GetVotesBeforeOk returns a tuple with the VotesBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesBefore + +`func (o *CommentLogData) SetVotesBefore(v float64)` + +SetVotesBefore sets VotesBefore field to given value. + +### HasVotesBefore + +`func (o *CommentLogData) HasVotesBefore() bool` + +HasVotesBefore returns a boolean if a field has been set. + +### SetVotesBeforeNil + +`func (o *CommentLogData) SetVotesBeforeNil(b bool)` + + SetVotesBeforeNil sets the value for VotesBefore to be an explicit nil + +### UnsetVotesBefore +`func (o *CommentLogData) UnsetVotesBefore()` + +UnsetVotesBefore ensures that no value is present for VotesBefore, not even an explicit nil +### GetVotesUpBefore + +`func (o *CommentLogData) GetVotesUpBefore() float64` + +GetVotesUpBefore returns the VotesUpBefore field if non-nil, zero value otherwise. + +### GetVotesUpBeforeOk + +`func (o *CommentLogData) GetVotesUpBeforeOk() (*float64, bool)` + +GetVotesUpBeforeOk returns a tuple with the VotesUpBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesUpBefore + +`func (o *CommentLogData) SetVotesUpBefore(v float64)` + +SetVotesUpBefore sets VotesUpBefore field to given value. + +### HasVotesUpBefore + +`func (o *CommentLogData) HasVotesUpBefore() bool` + +HasVotesUpBefore returns a boolean if a field has been set. + +### SetVotesUpBeforeNil + +`func (o *CommentLogData) SetVotesUpBeforeNil(b bool)` + + SetVotesUpBeforeNil sets the value for VotesUpBefore to be an explicit nil + +### UnsetVotesUpBefore +`func (o *CommentLogData) UnsetVotesUpBefore()` + +UnsetVotesUpBefore ensures that no value is present for VotesUpBefore, not even an explicit nil +### GetVotesDownBefore + +`func (o *CommentLogData) GetVotesDownBefore() float64` + +GetVotesDownBefore returns the VotesDownBefore field if non-nil, zero value otherwise. + +### GetVotesDownBeforeOk + +`func (o *CommentLogData) GetVotesDownBeforeOk() (*float64, bool)` + +GetVotesDownBeforeOk returns a tuple with the VotesDownBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesDownBefore + +`func (o *CommentLogData) SetVotesDownBefore(v float64)` + +SetVotesDownBefore sets VotesDownBefore field to given value. + +### HasVotesDownBefore + +`func (o *CommentLogData) HasVotesDownBefore() bool` + +HasVotesDownBefore returns a boolean if a field has been set. + +### SetVotesDownBeforeNil + +`func (o *CommentLogData) SetVotesDownBeforeNil(b bool)` + + SetVotesDownBeforeNil sets the value for VotesDownBefore to be an explicit nil + +### UnsetVotesDownBefore +`func (o *CommentLogData) UnsetVotesDownBefore()` + +UnsetVotesDownBefore ensures that no value is present for VotesDownBefore, not even an explicit nil +### GetVotesAfter + +`func (o *CommentLogData) GetVotesAfter() float64` + +GetVotesAfter returns the VotesAfter field if non-nil, zero value otherwise. + +### GetVotesAfterOk + +`func (o *CommentLogData) GetVotesAfterOk() (*float64, bool)` + +GetVotesAfterOk returns a tuple with the VotesAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesAfter + +`func (o *CommentLogData) SetVotesAfter(v float64)` + +SetVotesAfter sets VotesAfter field to given value. + +### HasVotesAfter + +`func (o *CommentLogData) HasVotesAfter() bool` + +HasVotesAfter returns a boolean if a field has been set. + +### SetVotesAfterNil + +`func (o *CommentLogData) SetVotesAfterNil(b bool)` + + SetVotesAfterNil sets the value for VotesAfter to be an explicit nil + +### UnsetVotesAfter +`func (o *CommentLogData) UnsetVotesAfter()` + +UnsetVotesAfter ensures that no value is present for VotesAfter, not even an explicit nil +### GetVotesUpAfter + +`func (o *CommentLogData) GetVotesUpAfter() float64` + +GetVotesUpAfter returns the VotesUpAfter field if non-nil, zero value otherwise. + +### GetVotesUpAfterOk + +`func (o *CommentLogData) GetVotesUpAfterOk() (*float64, bool)` + +GetVotesUpAfterOk returns a tuple with the VotesUpAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesUpAfter + +`func (o *CommentLogData) SetVotesUpAfter(v float64)` + +SetVotesUpAfter sets VotesUpAfter field to given value. + +### HasVotesUpAfter + +`func (o *CommentLogData) HasVotesUpAfter() bool` + +HasVotesUpAfter returns a boolean if a field has been set. + +### SetVotesUpAfterNil + +`func (o *CommentLogData) SetVotesUpAfterNil(b bool)` + + SetVotesUpAfterNil sets the value for VotesUpAfter to be an explicit nil + +### UnsetVotesUpAfter +`func (o *CommentLogData) UnsetVotesUpAfter()` + +UnsetVotesUpAfter ensures that no value is present for VotesUpAfter, not even an explicit nil +### GetVotesDownAfter + +`func (o *CommentLogData) GetVotesDownAfter() float64` + +GetVotesDownAfter returns the VotesDownAfter field if non-nil, zero value otherwise. + +### GetVotesDownAfterOk + +`func (o *CommentLogData) GetVotesDownAfterOk() (*float64, bool)` + +GetVotesDownAfterOk returns a tuple with the VotesDownAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesDownAfter + +`func (o *CommentLogData) SetVotesDownAfter(v float64)` + +SetVotesDownAfter sets VotesDownAfter field to given value. + +### HasVotesDownAfter + +`func (o *CommentLogData) HasVotesDownAfter() bool` + +HasVotesDownAfter returns a boolean if a field has been set. + +### SetVotesDownAfterNil + +`func (o *CommentLogData) SetVotesDownAfterNil(b bool)` + + SetVotesDownAfterNil sets the value for VotesDownAfter to be an explicit nil + +### UnsetVotesDownAfter +`func (o *CommentLogData) UnsetVotesDownAfter()` + +UnsetVotesDownAfter ensures that no value is present for VotesDownAfter, not even an explicit nil +### GetRepeatAction + +`func (o *CommentLogData) GetRepeatAction() RepeatCommentHandlingAction` + +GetRepeatAction returns the RepeatAction field if non-nil, zero value otherwise. + +### GetRepeatActionOk + +`func (o *CommentLogData) GetRepeatActionOk() (*RepeatCommentHandlingAction, bool)` + +GetRepeatActionOk returns a tuple with the RepeatAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepeatAction + +`func (o *CommentLogData) SetRepeatAction(v RepeatCommentHandlingAction)` + +SetRepeatAction sets RepeatAction field to given value. + +### HasRepeatAction + +`func (o *CommentLogData) HasRepeatAction() bool` + +HasRepeatAction returns a boolean if a field has been set. + +### GetReason + +`func (o *CommentLogData) GetReason() RepeatCommentCheckIgnoredReason` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *CommentLogData) GetReasonOk() (*RepeatCommentCheckIgnoredReason, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *CommentLogData) SetReason(v RepeatCommentCheckIgnoredReason)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *CommentLogData) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetOtherData + +`func (o *CommentLogData) GetOtherData() interface{}` + +GetOtherData returns the OtherData field if non-nil, zero value otherwise. + +### GetOtherDataOk + +`func (o *CommentLogData) GetOtherDataOk() (*interface{}, bool)` + +GetOtherDataOk returns a tuple with the OtherData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtherData + +`func (o *CommentLogData) SetOtherData(v interface{})` + +SetOtherData sets OtherData field to given value. + +### HasOtherData + +`func (o *CommentLogData) HasOtherData() bool` + +HasOtherData returns a boolean if a field has been set. + +### SetOtherDataNil + +`func (o *CommentLogData) SetOtherDataNil(b bool)` + + SetOtherDataNil sets the value for OtherData to be an explicit nil + +### UnsetOtherData +`func (o *CommentLogData) UnsetOtherData()` + +UnsetOtherData ensures that no value is present for OtherData, not even an explicit nil +### GetSpamBefore + +`func (o *CommentLogData) GetSpamBefore() bool` + +GetSpamBefore returns the SpamBefore field if non-nil, zero value otherwise. + +### GetSpamBeforeOk + +`func (o *CommentLogData) GetSpamBeforeOk() (*bool, bool)` + +GetSpamBeforeOk returns a tuple with the SpamBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpamBefore + +`func (o *CommentLogData) SetSpamBefore(v bool)` + +SetSpamBefore sets SpamBefore field to given value. + +### HasSpamBefore + +`func (o *CommentLogData) HasSpamBefore() bool` + +HasSpamBefore returns a boolean if a field has been set. + +### GetSpamAfter + +`func (o *CommentLogData) GetSpamAfter() bool` + +GetSpamAfter returns the SpamAfter field if non-nil, zero value otherwise. + +### GetSpamAfterOk + +`func (o *CommentLogData) GetSpamAfterOk() (*bool, bool)` + +GetSpamAfterOk returns a tuple with the SpamAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpamAfter + +`func (o *CommentLogData) SetSpamAfter(v bool)` + +SetSpamAfter sets SpamAfter field to given value. + +### HasSpamAfter + +`func (o *CommentLogData) HasSpamAfter() bool` + +HasSpamAfter returns a boolean if a field has been set. + +### GetPermanentFlag + +`func (o *CommentLogData) GetPermanentFlag() string` + +GetPermanentFlag returns the PermanentFlag field if non-nil, zero value otherwise. + +### GetPermanentFlagOk + +`func (o *CommentLogData) GetPermanentFlagOk() (*string, bool)` + +GetPermanentFlagOk returns a tuple with the PermanentFlag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermanentFlag + +`func (o *CommentLogData) SetPermanentFlag(v string)` + +SetPermanentFlag sets PermanentFlag field to given value. + +### HasPermanentFlag + +`func (o *CommentLogData) HasPermanentFlag() bool` + +HasPermanentFlag returns a boolean if a field has been set. + +### GetApprovedBefore + +`func (o *CommentLogData) GetApprovedBefore() bool` + +GetApprovedBefore returns the ApprovedBefore field if non-nil, zero value otherwise. + +### GetApprovedBeforeOk + +`func (o *CommentLogData) GetApprovedBeforeOk() (*bool, bool)` + +GetApprovedBeforeOk returns a tuple with the ApprovedBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApprovedBefore + +`func (o *CommentLogData) SetApprovedBefore(v bool)` + +SetApprovedBefore sets ApprovedBefore field to given value. + +### HasApprovedBefore + +`func (o *CommentLogData) HasApprovedBefore() bool` + +HasApprovedBefore returns a boolean if a field has been set. + +### GetApprovedAfter + +`func (o *CommentLogData) GetApprovedAfter() bool` + +GetApprovedAfter returns the ApprovedAfter field if non-nil, zero value otherwise. + +### GetApprovedAfterOk + +`func (o *CommentLogData) GetApprovedAfterOk() (*bool, bool)` + +GetApprovedAfterOk returns a tuple with the ApprovedAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApprovedAfter + +`func (o *CommentLogData) SetApprovedAfter(v bool)` + +SetApprovedAfter sets ApprovedAfter field to given value. + +### HasApprovedAfter + +`func (o *CommentLogData) HasApprovedAfter() bool` + +HasApprovedAfter returns a boolean if a field has been set. + +### GetReviewedBefore + +`func (o *CommentLogData) GetReviewedBefore() bool` + +GetReviewedBefore returns the ReviewedBefore field if non-nil, zero value otherwise. + +### GetReviewedBeforeOk + +`func (o *CommentLogData) GetReviewedBeforeOk() (*bool, bool)` + +GetReviewedBeforeOk returns a tuple with the ReviewedBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReviewedBefore + +`func (o *CommentLogData) SetReviewedBefore(v bool)` + +SetReviewedBefore sets ReviewedBefore field to given value. + +### HasReviewedBefore + +`func (o *CommentLogData) HasReviewedBefore() bool` + +HasReviewedBefore returns a boolean if a field has been set. + +### GetReviewedAfter + +`func (o *CommentLogData) GetReviewedAfter() bool` + +GetReviewedAfter returns the ReviewedAfter field if non-nil, zero value otherwise. + +### GetReviewedAfterOk + +`func (o *CommentLogData) GetReviewedAfterOk() (*bool, bool)` + +GetReviewedAfterOk returns a tuple with the ReviewedAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReviewedAfter + +`func (o *CommentLogData) SetReviewedAfter(v bool)` + +SetReviewedAfter sets ReviewedAfter field to given value. + +### HasReviewedAfter + +`func (o *CommentLogData) HasReviewedAfter() bool` + +HasReviewedAfter returns a boolean if a field has been set. + +### GetTextBefore + +`func (o *CommentLogData) GetTextBefore() string` + +GetTextBefore returns the TextBefore field if non-nil, zero value otherwise. + +### GetTextBeforeOk + +`func (o *CommentLogData) GetTextBeforeOk() (*string, bool)` + +GetTextBeforeOk returns a tuple with the TextBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTextBefore + +`func (o *CommentLogData) SetTextBefore(v string)` + +SetTextBefore sets TextBefore field to given value. + +### HasTextBefore + +`func (o *CommentLogData) HasTextBefore() bool` + +HasTextBefore returns a boolean if a field has been set. + +### GetTextAfter + +`func (o *CommentLogData) GetTextAfter() string` + +GetTextAfter returns the TextAfter field if non-nil, zero value otherwise. + +### GetTextAfterOk + +`func (o *CommentLogData) GetTextAfterOk() (*string, bool)` + +GetTextAfterOk returns a tuple with the TextAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTextAfter + +`func (o *CommentLogData) SetTextAfter(v string)` + +SetTextAfter sets TextAfter field to given value. + +### HasTextAfter + +`func (o *CommentLogData) HasTextAfter() bool` + +HasTextAfter returns a boolean if a field has been set. + +### GetExpireBefore + +`func (o *CommentLogData) GetExpireBefore() time.Time` + +GetExpireBefore returns the ExpireBefore field if non-nil, zero value otherwise. + +### GetExpireBeforeOk + +`func (o *CommentLogData) GetExpireBeforeOk() (*time.Time, bool)` + +GetExpireBeforeOk returns a tuple with the ExpireBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpireBefore + +`func (o *CommentLogData) SetExpireBefore(v time.Time)` + +SetExpireBefore sets ExpireBefore field to given value. + +### HasExpireBefore + +`func (o *CommentLogData) HasExpireBefore() bool` + +HasExpireBefore returns a boolean if a field has been set. + +### SetExpireBeforeNil + +`func (o *CommentLogData) SetExpireBeforeNil(b bool)` + + SetExpireBeforeNil sets the value for ExpireBefore to be an explicit nil + +### UnsetExpireBefore +`func (o *CommentLogData) UnsetExpireBefore()` + +UnsetExpireBefore ensures that no value is present for ExpireBefore, not even an explicit nil +### GetExpireAfter + +`func (o *CommentLogData) GetExpireAfter() time.Time` + +GetExpireAfter returns the ExpireAfter field if non-nil, zero value otherwise. + +### GetExpireAfterOk + +`func (o *CommentLogData) GetExpireAfterOk() (*time.Time, bool)` + +GetExpireAfterOk returns a tuple with the ExpireAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpireAfter + +`func (o *CommentLogData) SetExpireAfter(v time.Time)` + +SetExpireAfter sets ExpireAfter field to given value. + +### HasExpireAfter + +`func (o *CommentLogData) HasExpireAfter() bool` + +HasExpireAfter returns a boolean if a field has been set. + +### SetExpireAfterNil + +`func (o *CommentLogData) SetExpireAfterNil(b bool)` + + SetExpireAfterNil sets the value for ExpireAfter to be an explicit nil + +### UnsetExpireAfter +`func (o *CommentLogData) UnsetExpireAfter()` + +UnsetExpireAfter ensures that no value is present for ExpireAfter, not even an explicit nil +### GetFlagCountBefore + +`func (o *CommentLogData) GetFlagCountBefore() float64` + +GetFlagCountBefore returns the FlagCountBefore field if non-nil, zero value otherwise. + +### GetFlagCountBeforeOk + +`func (o *CommentLogData) GetFlagCountBeforeOk() (*float64, bool)` + +GetFlagCountBeforeOk returns a tuple with the FlagCountBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlagCountBefore + +`func (o *CommentLogData) SetFlagCountBefore(v float64)` + +SetFlagCountBefore sets FlagCountBefore field to given value. + +### HasFlagCountBefore + +`func (o *CommentLogData) HasFlagCountBefore() bool` + +HasFlagCountBefore returns a boolean if a field has been set. + +### SetFlagCountBeforeNil + +`func (o *CommentLogData) SetFlagCountBeforeNil(b bool)` + + SetFlagCountBeforeNil sets the value for FlagCountBefore to be an explicit nil + +### UnsetFlagCountBefore +`func (o *CommentLogData) UnsetFlagCountBefore()` + +UnsetFlagCountBefore ensures that no value is present for FlagCountBefore, not even an explicit nil +### GetTrustFactorBefore + +`func (o *CommentLogData) GetTrustFactorBefore() float64` + +GetTrustFactorBefore returns the TrustFactorBefore field if non-nil, zero value otherwise. + +### GetTrustFactorBeforeOk + +`func (o *CommentLogData) GetTrustFactorBeforeOk() (*float64, bool)` + +GetTrustFactorBeforeOk returns a tuple with the TrustFactorBefore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrustFactorBefore + +`func (o *CommentLogData) SetTrustFactorBefore(v float64)` + +SetTrustFactorBefore sets TrustFactorBefore field to given value. + +### HasTrustFactorBefore + +`func (o *CommentLogData) HasTrustFactorBefore() bool` + +HasTrustFactorBefore returns a boolean if a field has been set. + +### GetTrustFactorAfter + +`func (o *CommentLogData) GetTrustFactorAfter() float64` + +GetTrustFactorAfter returns the TrustFactorAfter field if non-nil, zero value otherwise. + +### GetTrustFactorAfterOk + +`func (o *CommentLogData) GetTrustFactorAfterOk() (*float64, bool)` + +GetTrustFactorAfterOk returns a tuple with the TrustFactorAfter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrustFactorAfter + +`func (o *CommentLogData) SetTrustFactorAfter(v float64)` + +SetTrustFactorAfter sets TrustFactorAfter field to given value. + +### HasTrustFactorAfter + +`func (o *CommentLogData) HasTrustFactorAfter() bool` + +HasTrustFactorAfter returns a boolean if a field has been set. + +### GetReferencedCommentId + +`func (o *CommentLogData) GetReferencedCommentId() string` + +GetReferencedCommentId returns the ReferencedCommentId field if non-nil, zero value otherwise. + +### GetReferencedCommentIdOk + +`func (o *CommentLogData) GetReferencedCommentIdOk() (*string, bool)` + +GetReferencedCommentIdOk returns a tuple with the ReferencedCommentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferencedCommentId + +`func (o *CommentLogData) SetReferencedCommentId(v string)` + +SetReferencedCommentId sets ReferencedCommentId field to given value. + +### HasReferencedCommentId + +`func (o *CommentLogData) HasReferencedCommentId() bool` + +HasReferencedCommentId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/CommentLogEntry.md b/client/docs/CommentLogEntry.md new file mode 100644 index 0000000..73d5fa1 --- /dev/null +++ b/client/docs/CommentLogEntry.md @@ -0,0 +1,98 @@ +# CommentLogEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**D** | **time.Time** | | +**T** | [**CommentLogType**](CommentLogType.md) | | +**Da** | Pointer to [**CommentLogData**](CommentLogData.md) | | [optional] + +## Methods + +### NewCommentLogEntry + +`func NewCommentLogEntry(d time.Time, t CommentLogType, ) *CommentLogEntry` + +NewCommentLogEntry instantiates a new CommentLogEntry 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 + +### NewCommentLogEntryWithDefaults + +`func NewCommentLogEntryWithDefaults() *CommentLogEntry` + +NewCommentLogEntryWithDefaults instantiates a new CommentLogEntry 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 + +### GetD + +`func (o *CommentLogEntry) GetD() time.Time` + +GetD returns the D field if non-nil, zero value otherwise. + +### GetDOk + +`func (o *CommentLogEntry) GetDOk() (*time.Time, bool)` + +GetDOk returns a tuple with the D field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetD + +`func (o *CommentLogEntry) SetD(v time.Time)` + +SetD sets D field to given value. + + +### GetT + +`func (o *CommentLogEntry) GetT() CommentLogType` + +GetT returns the T field if non-nil, zero value otherwise. + +### GetTOk + +`func (o *CommentLogEntry) GetTOk() (*CommentLogType, bool)` + +GetTOk returns a tuple with the T field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetT + +`func (o *CommentLogEntry) SetT(v CommentLogType)` + +SetT sets T field to given value. + + +### GetDa + +`func (o *CommentLogEntry) GetDa() CommentLogData` + +GetDa returns the Da field if non-nil, zero value otherwise. + +### GetDaOk + +`func (o *CommentLogEntry) GetDaOk() (*CommentLogData, bool)` + +GetDaOk returns a tuple with the Da field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDa + +`func (o *CommentLogEntry) SetDa(v CommentLogData)` + +SetDa sets Da field to given value. + +### HasDa + +`func (o *CommentLogEntry) HasDa() bool` + +HasDa returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/CommentLogType.md b/client/docs/CommentLogType.md new file mode 100644 index 0000000..83039c5 --- /dev/null +++ b/client/docs/CommentLogType.md @@ -0,0 +1,119 @@ +# CommentLogType + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + +* `_7` (value: `7`) + +* `_8` (value: `8`) + +* `_9` (value: `9`) + +* `_10` (value: `10`) + +* `_11` (value: `11`) + +* `_12` (value: `12`) + +* `_13` (value: `13`) + +* `_14` (value: `14`) + +* `_15` (value: `15`) + +* `_16` (value: `16`) + +* `_17` (value: `17`) + +* `_18` (value: `18`) + +* `_19` (value: `19`) + +* `_20` (value: `20`) + +* `_21` (value: `21`) + +* `_22` (value: `22`) + +* `_23` (value: `23`) + +* `_24` (value: `24`) + +* `_25` (value: `25`) + +* `_26` (value: `26`) + +* `_27` (value: `27`) + +* `_28` (value: `28`) + +* `_29` (value: `29`) + +* `_30` (value: `30`) + +* `_31` (value: `31`) + +* `_32` (value: `32`) + +* `_33` (value: `33`) + +* `_34` (value: `34`) + +* `_35` (value: `35`) + +* `_36` (value: `36`) + +* `_37` (value: `37`) + +* `_38` (value: `38`) + +* `_39` (value: `39`) + +* `_40` (value: `40`) + +* `_41` (value: `41`) + +* `_42` (value: `42`) + +* `_43` (value: `43`) + +* `_44` (value: `44`) + +* `_45` (value: `45`) + +* `_46` (value: `46`) + +* `_47` (value: `47`) + +* `_48` (value: `48`) + +* `_49` (value: `49`) + +* `_50` (value: `50`) + +* `_51` (value: `51`) + +* `_52` (value: `52`) + +* `_53` (value: `53`) + +* `_54` (value: `54`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/CreateCommentPublic200Response.md b/client/docs/CreateCommentPublic200Response.md index 76c2683..73bdeb5 100644 --- a/client/docs/CreateCommentPublic200Response.md +++ b/client/docs/CreateCommentPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Comment** | [**PublicComment**](PublicComment.md) | | **User** | [**NullableUserSessionInfo**](UserSessionInfo.md) | | **ModuleData** | Pointer to **map[string]map[string]interface{}** | Construct a type with a set of properties K of type T | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewCreateCommentPublic200Response -`func NewCreateCommentPublic200Response(status ImportedAPIStatusFAILED, comment PublicComment, user NullableUserSessionInfo, reason string, code string, ) *CreateCommentPublic200Response` +`func NewCreateCommentPublic200Response(status APIStatus, comment PublicComment, user NullableUserSessionInfo, reason string, code string, ) *CreateCommentPublic200Response` NewCreateCommentPublic200Response instantiates a new CreateCommentPublic200Response object This constructor will assign default values to properties that have it defined, @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *CreateCommentPublic200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *CreateCommentPublic200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *CreateCommentPublic200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *CreateCommentPublic200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *CreateCommentPublic200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *CreateCommentPublic200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/CreateFeedPost200Response.md b/client/docs/CreateFeedPost200Response.md index 31cb395..cc0c0f9 100644 --- a/client/docs/CreateFeedPost200Response.md +++ b/client/docs/CreateFeedPost200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **FeedPost** | [**FeedPost**](FeedPost.md) | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewCreateFeedPost200Response -`func NewCreateFeedPost200Response(status ImportedAPIStatusFAILED, feedPost FeedPost, reason string, code string, ) *CreateFeedPost200Response` +`func NewCreateFeedPost200Response(status APIStatus, feedPost FeedPost, reason string, code string, ) *CreateFeedPost200Response` NewCreateFeedPost200Response instantiates a new CreateFeedPost200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *CreateFeedPost200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *CreateFeedPost200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *CreateFeedPost200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *CreateFeedPost200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *CreateFeedPost200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *CreateFeedPost200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/CreateFeedPostPublic200Response.md b/client/docs/CreateFeedPostPublic200Response.md index be1ac0e..c55f9a9 100644 --- a/client/docs/CreateFeedPostPublic200Response.md +++ b/client/docs/CreateFeedPostPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **FeedPost** | [**FeedPost**](FeedPost.md) | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewCreateFeedPostPublic200Response -`func NewCreateFeedPostPublic200Response(status ImportedAPIStatusFAILED, feedPost FeedPost, reason string, code string, ) *CreateFeedPostPublic200Response` +`func NewCreateFeedPostPublic200Response(status APIStatus, feedPost FeedPost, reason string, code string, ) *CreateFeedPostPublic200Response` NewCreateFeedPostPublic200Response instantiates a new CreateFeedPostPublic200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *CreateFeedPostPublic200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *CreateFeedPostPublic200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *CreateFeedPostPublic200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *CreateFeedPostPublic200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *CreateFeedPostPublic200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *CreateFeedPostPublic200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/CreateUserBadge200Response.md b/client/docs/CreateUserBadge200Response.md index a6d923c..fbac3c2 100644 --- a/client/docs/CreateUserBadge200Response.md +++ b/client/docs/CreateUserBadge200Response.md @@ -4,8 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **UserBadge** | [**UserBadge**](UserBadge.md) | | +**Notes** | Pointer to **[]string** | | [optional] **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -18,7 +19,7 @@ Name | Type | Description | Notes ### NewCreateUserBadge200Response -`func NewCreateUserBadge200Response(status ImportedAPIStatusFAILED, userBadge UserBadge, reason string, code string, ) *CreateUserBadge200Response` +`func NewCreateUserBadge200Response(status APIStatus, userBadge UserBadge, reason string, code string, ) *CreateUserBadge200Response` NewCreateUserBadge200Response instantiates a new CreateUserBadge200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *CreateUserBadge200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *CreateUserBadge200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *CreateUserBadge200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *CreateUserBadge200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *CreateUserBadge200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *CreateUserBadge200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. @@ -73,6 +74,31 @@ and a boolean to check if the value has been set. SetUserBadge sets UserBadge field to given value. +### GetNotes + +`func (o *CreateUserBadge200Response) GetNotes() []string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *CreateUserBadge200Response) GetNotesOk() (*[]string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *CreateUserBadge200Response) SetNotes(v []string)` + +SetNotes sets Notes field to given value. + +### HasNotes + +`func (o *CreateUserBadge200Response) HasNotes() bool` + +HasNotes returns a boolean if a field has been set. + ### GetReason `func (o *CreateUserBadge200Response) GetReason() string` diff --git a/client/docs/CustomConfigParameters.md b/client/docs/CustomConfigParameters.md index f566f7d..992924b 100644 --- a/client/docs/CustomConfigParameters.md +++ b/client/docs/CustomConfigParameters.md @@ -56,6 +56,7 @@ Name | Type | Description | Notes **NoStyles** | Pointer to **bool** | | [optional] **PageSize** | Pointer to **NullableInt32** | | [optional] **Readonly** | Pointer to **bool** | | [optional] +**NoNewRootComments** | Pointer to **bool** | | [optional] **RequireSSO** | Pointer to **bool** | | [optional] **EnableResizeHandle** | Pointer to **bool** | | [optional] **RestrictedLinkDomains** | Pointer to **[]string** | | [optional] @@ -1536,6 +1537,31 @@ SetReadonly sets Readonly field to given value. HasReadonly returns a boolean if a field has been set. +### GetNoNewRootComments + +`func (o *CustomConfigParameters) GetNoNewRootComments() bool` + +GetNoNewRootComments returns the NoNewRootComments field if non-nil, zero value otherwise. + +### GetNoNewRootCommentsOk + +`func (o *CustomConfigParameters) GetNoNewRootCommentsOk() (*bool, bool)` + +GetNoNewRootCommentsOk returns a tuple with the NoNewRootComments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNoNewRootComments + +`func (o *CustomConfigParameters) SetNoNewRootComments(v bool)` + +SetNoNewRootComments sets NoNewRootComments field to given value. + +### HasNoNewRootComments + +`func (o *CustomConfigParameters) HasNoNewRootComments() bool` + +HasNoNewRootComments returns a boolean if a field has been set. + ### GetRequireSSO `func (o *CustomConfigParameters) GetRequireSSO() bool` diff --git a/client/docs/DefaultAPI.md b/client/docs/DefaultAPI.md index 7879e2a..1899077 100644 --- a/client/docs/DefaultAPI.md +++ b/client/docs/DefaultAPI.md @@ -3200,7 +3200,7 @@ Name | Type | Description | Notes ## UpdateComment -> FlagCommentPublic200Response UpdateComment(ctx, id).TenantId(tenantId).Body(body).ContextUserId(contextUserId).DoSpamCheck(doSpamCheck).IsLive(isLive).Execute() +> FlagCommentPublic200Response UpdateComment(ctx, id).TenantId(tenantId).UpdatableCommentParams(updatableCommentParams).ContextUserId(contextUserId).DoSpamCheck(doSpamCheck).IsLive(isLive).Execute() @@ -3219,14 +3219,14 @@ import ( func main() { tenantId := "tenantId_example" // string | id := "id_example" // string | - body := PickAPICommentUpdatableCommentFields(987) // PickAPICommentUpdatableCommentFields | + updatableCommentParams := *openapiclient.NewUpdatableCommentParams() // UpdatableCommentParams | contextUserId := "contextUserId_example" // string | (optional) doSpamCheck := true // bool | (optional) isLive := true // bool | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.UpdateComment(context.Background(), id).TenantId(tenantId).Body(body).ContextUserId(contextUserId).DoSpamCheck(doSpamCheck).IsLive(isLive).Execute() + resp, r, err := apiClient.DefaultAPI.UpdateComment(context.Background(), id).TenantId(tenantId).UpdatableCommentParams(updatableCommentParams).ContextUserId(contextUserId).DoSpamCheck(doSpamCheck).IsLive(isLive).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.UpdateComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3253,7 +3253,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **string** | | - **body** | **PickAPICommentUpdatableCommentFields** | | + **updatableCommentParams** | [**UpdatableCommentParams**](UpdatableCommentParams.md) | | **contextUserId** | **string** | | **doSpamCheck** | **bool** | | **isLive** | **bool** | | diff --git a/client/docs/DeleteComment200Response.md b/client/docs/DeleteComment200Response.md index 6a4d89a..2e3834a 100644 --- a/client/docs/DeleteComment200Response.md +++ b/client/docs/DeleteComment200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | [**DeleteCommentAction**](DeleteCommentAction.md) | | -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewDeleteComment200Response -`func NewDeleteComment200Response(action DeleteCommentAction, status ImportedAPIStatusFAILED, reason string, code string, ) *DeleteComment200Response` +`func NewDeleteComment200Response(action DeleteCommentAction, status APIStatus, reason string, code string, ) *DeleteComment200Response` NewDeleteComment200Response instantiates a new DeleteComment200Response object This constructor will assign default values to properties that have it defined, @@ -55,20 +55,20 @@ SetAction sets Action field to given value. ### GetStatus -`func (o *DeleteComment200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *DeleteComment200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *DeleteComment200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *DeleteComment200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *DeleteComment200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *DeleteComment200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/DeleteCommentPublic200Response.md b/client/docs/DeleteCommentPublic200Response.md index 968cb34..98e92fa 100644 --- a/client/docs/DeleteCommentPublic200Response.md +++ b/client/docs/DeleteCommentPublic200Response.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Comment** | Pointer to [**PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId**](PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md) | | [optional] +**Comment** | Pointer to [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] **HardRemoved** | **bool** | | -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewDeleteCommentPublic200Response -`func NewDeleteCommentPublic200Response(hardRemoved bool, status ImportedAPIStatusFAILED, reason string, code string, ) *DeleteCommentPublic200Response` +`func NewDeleteCommentPublic200Response(hardRemoved bool, status APIStatus, reason string, code string, ) *DeleteCommentPublic200Response` NewDeleteCommentPublic200Response instantiates a new DeleteCommentPublic200Response object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetComment -`func (o *DeleteCommentPublic200Response) GetComment() PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId` +`func (o *DeleteCommentPublic200Response) GetComment() DeletedCommentResultComment` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *DeleteCommentPublic200Response) GetCommentOk() (*PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId, bool)` +`func (o *DeleteCommentPublic200Response) GetCommentOk() (*DeletedCommentResultComment, bool)` GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComment -`func (o *DeleteCommentPublic200Response) SetComment(v PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId)` +`func (o *DeleteCommentPublic200Response) SetComment(v DeletedCommentResultComment)` SetComment sets Comment field to given value. @@ -81,20 +81,20 @@ SetHardRemoved sets HardRemoved field to given value. ### GetStatus -`func (o *DeleteCommentPublic200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *DeleteCommentPublic200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *DeleteCommentPublic200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *DeleteCommentPublic200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *DeleteCommentPublic200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *DeleteCommentPublic200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/DeleteCommentResult.md b/client/docs/DeleteCommentResult.md index 14efa56..811ef0e 100644 --- a/client/docs/DeleteCommentResult.md +++ b/client/docs/DeleteCommentResult.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | [**DeleteCommentAction**](DeleteCommentAction.md) | | -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | ## Methods ### NewDeleteCommentResult -`func NewDeleteCommentResult(action DeleteCommentAction, status ImportedAPIStatusSUCCESS, ) *DeleteCommentResult` +`func NewDeleteCommentResult(action DeleteCommentAction, status APIStatus, ) *DeleteCommentResult` NewDeleteCommentResult instantiates a new DeleteCommentResult object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetAction sets Action field to given value. ### GetStatus -`func (o *DeleteCommentResult) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *DeleteCommentResult) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *DeleteCommentResult) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *DeleteCommentResult) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *DeleteCommentResult) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *DeleteCommentResult) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/DeleteCommentVote200Response.md b/client/docs/DeleteCommentVote200Response.md index 2015f8e..ce8ec12 100644 --- a/client/docs/DeleteCommentVote200Response.md +++ b/client/docs/DeleteCommentVote200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **WasPendingVote** | Pointer to **bool** | | [optional] **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewDeleteCommentVote200Response -`func NewDeleteCommentVote200Response(status ImportedAPIStatusFAILED, reason string, code string, ) *DeleteCommentVote200Response` +`func NewDeleteCommentVote200Response(status APIStatus, reason string, code string, ) *DeleteCommentVote200Response` NewDeleteCommentVote200Response instantiates a new DeleteCommentVote200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *DeleteCommentVote200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *DeleteCommentVote200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *DeleteCommentVote200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *DeleteCommentVote200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *DeleteCommentVote200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *DeleteCommentVote200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/DeleteFeedPostPublic200Response.md b/client/docs/DeleteFeedPostPublic200Response.md index 4e7adf6..a49020a 100644 --- a/client/docs/DeleteFeedPostPublic200Response.md +++ b/client/docs/DeleteFeedPostPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewDeleteFeedPostPublic200Response -`func NewDeleteFeedPostPublic200Response(status ImportedAPIStatusFAILED, reason string, code string, ) *DeleteFeedPostPublic200Response` +`func NewDeleteFeedPostPublic200Response(status APIStatus, reason string, code string, ) *DeleteFeedPostPublic200Response` NewDeleteFeedPostPublic200Response instantiates a new DeleteFeedPostPublic200Response object This constructor will assign default values to properties that have it defined, @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *DeleteFeedPostPublic200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *DeleteFeedPostPublic200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *DeleteFeedPostPublic200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *DeleteFeedPostPublic200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *DeleteFeedPostPublic200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *DeleteFeedPostPublic200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md b/client/docs/DeletedCommentResultComment.md similarity index 50% rename from client/docs/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md rename to client/docs/DeletedCommentResultComment.md index 7de3001..c3ff17d 100644 --- a/client/docs/PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md +++ b/client/docs/DeletedCommentResultComment.md @@ -1,123 +1,133 @@ -# PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId +# DeletedCommentResultComment ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UserId** | Pointer to **string** | | [optional] -**CommenterName** | **string** | | -**CommentHTML** | **string** | | **IsDeleted** | Pointer to **bool** | | [optional] +**CommentHTML** | **string** | | +**CommenterName** | **string** | | +**UserId** | Pointer to **NullableString** | | [optional] ## Methods -### NewPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId +### NewDeletedCommentResultComment -`func NewPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId(commenterName string, commentHTML string, ) *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId` +`func NewDeletedCommentResultComment(commentHTML string, commenterName string, ) *DeletedCommentResultComment` -NewPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId instantiates a new PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId object +NewDeletedCommentResultComment instantiates a new DeletedCommentResultComment 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 -### NewPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserIdWithDefaults +### NewDeletedCommentResultCommentWithDefaults -`func NewPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserIdWithDefaults() *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId` +`func NewDeletedCommentResultCommentWithDefaults() *DeletedCommentResultComment` -NewPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserIdWithDefaults instantiates a new PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId object +NewDeletedCommentResultCommentWithDefaults instantiates a new DeletedCommentResultComment 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 -### GetUserId +### GetIsDeleted -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetUserId() string` +`func (o *DeletedCommentResultComment) GetIsDeleted() bool` -GetUserId returns the UserId field if non-nil, zero value otherwise. +GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. -### GetUserIdOk +### GetIsDeletedOk -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetUserIdOk() (*string, bool)` +`func (o *DeletedCommentResultComment) GetIsDeletedOk() (*bool, bool)` -GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetUserId +### SetIsDeleted -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) SetUserId(v string)` +`func (o *DeletedCommentResultComment) SetIsDeleted(v bool)` -SetUserId sets UserId field to given value. +SetIsDeleted sets IsDeleted field to given value. -### HasUserId +### HasIsDeleted -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) HasUserId() bool` +`func (o *DeletedCommentResultComment) HasIsDeleted() bool` -HasUserId returns a boolean if a field has been set. +HasIsDeleted returns a boolean if a field has been set. -### GetCommenterName +### GetCommentHTML -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetCommenterName() string` +`func (o *DeletedCommentResultComment) GetCommentHTML() string` -GetCommenterName returns the CommenterName field if non-nil, zero value otherwise. +GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. -### GetCommenterNameOk +### GetCommentHTMLOk -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetCommenterNameOk() (*string, bool)` +`func (o *DeletedCommentResultComment) GetCommentHTMLOk() (*string, bool)` -GetCommenterNameOk returns a tuple with the CommenterName field if it's non-nil, zero value otherwise +GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCommenterName +### SetCommentHTML -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) SetCommenterName(v string)` +`func (o *DeletedCommentResultComment) SetCommentHTML(v string)` -SetCommenterName sets CommenterName field to given value. +SetCommentHTML sets CommentHTML field to given value. -### GetCommentHTML +### GetCommenterName -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetCommentHTML() string` +`func (o *DeletedCommentResultComment) GetCommenterName() string` -GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. +GetCommenterName returns the CommenterName field if non-nil, zero value otherwise. -### GetCommentHTMLOk +### GetCommenterNameOk -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetCommentHTMLOk() (*string, bool)` +`func (o *DeletedCommentResultComment) GetCommenterNameOk() (*string, bool)` -GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise +GetCommenterNameOk returns a tuple with the CommenterName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCommentHTML +### SetCommenterName -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) SetCommentHTML(v string)` +`func (o *DeletedCommentResultComment) SetCommenterName(v string)` -SetCommentHTML sets CommentHTML field to given value. +SetCommenterName sets CommenterName field to given value. -### GetIsDeleted +### GetUserId -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetIsDeleted() bool` +`func (o *DeletedCommentResultComment) GetUserId() string` -GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. +GetUserId returns the UserId field if non-nil, zero value otherwise. -### GetIsDeletedOk +### GetUserIdOk -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetIsDeletedOk() (*bool, bool)` +`func (o *DeletedCommentResultComment) GetUserIdOk() (*string, bool)` -GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise +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. -### SetIsDeleted +### SetUserId -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) SetIsDeleted(v bool)` +`func (o *DeletedCommentResultComment) SetUserId(v string)` -SetIsDeleted sets IsDeleted field to given value. +SetUserId sets UserId field to given value. -### HasIsDeleted +### HasUserId -`func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) HasIsDeleted() bool` +`func (o *DeletedCommentResultComment) HasUserId() bool` -HasIsDeleted returns a boolean if a field has been set. +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *DeletedCommentResultComment) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *DeletedCommentResultComment) UnsetUserId()` +UnsetUserId ensures that no value is present for UserId, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/FComment.md b/client/docs/FComment.md index 737af47..eb5cba6 100644 --- a/client/docs/FComment.md +++ b/client/docs/FComment.md @@ -70,7 +70,7 @@ Name | Type | Description | Notes **AutoplayJobId** | Pointer to **string** | | [optional] **AutoplayDelayMS** | Pointer to **int64** | | [optional] **FeedbackIds** | Pointer to **[]string** | | [optional] -**Logs** | Pointer to **[][]interface{}** | | [optional] +**Logs** | Pointer to [**[]CommentLogEntry**](CommentLogEntry.md) | | [optional] **GroupIds** | Pointer to **[]string** | | [optional] **ViewCount** | Pointer to **NullableInt64** | | [optional] **RequiresVerification** | Pointer to **bool** | | [optional] @@ -1992,20 +1992,20 @@ HasFeedbackIds returns a boolean if a field has been set. ### GetLogs -`func (o *FComment) GetLogs() [][]interface{}` +`func (o *FComment) GetLogs() []CommentLogEntry` GetLogs returns the Logs field if non-nil, zero value otherwise. ### GetLogsOk -`func (o *FComment) GetLogsOk() (*[][]interface{}, bool)` +`func (o *FComment) GetLogsOk() (*[]CommentLogEntry, bool)` GetLogsOk returns a tuple with the Logs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLogs -`func (o *FComment) SetLogs(v [][]interface{})` +`func (o *FComment) SetLogs(v []CommentLogEntry)` SetLogs sets Logs field to given value. diff --git a/client/docs/FlagComment200Response.md b/client/docs/FlagComment200Response.md index f7072d9..e5691cb 100644 --- a/client/docs/FlagComment200Response.md +++ b/client/docs/FlagComment200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StatusCode** | Pointer to **int32** | | [optional] -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Code** | **string** | | **Reason** | **string** | | **WasUnapproved** | Pointer to **bool** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewFlagComment200Response -`func NewFlagComment200Response(status ImportedAPIStatusFAILED, code string, reason string, ) *FlagComment200Response` +`func NewFlagComment200Response(status APIStatus, code string, reason string, ) *FlagComment200Response` NewFlagComment200Response instantiates a new FlagComment200Response object This constructor will assign default values to properties that have it defined, @@ -61,20 +61,20 @@ HasStatusCode returns a boolean if a field has been set. ### GetStatus -`func (o *FlagComment200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *FlagComment200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *FlagComment200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *FlagComment200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *FlagComment200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *FlagComment200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/FlagCommentPublic200Response.md b/client/docs/FlagCommentPublic200Response.md index 4b9eec6..e03c143 100644 --- a/client/docs/FlagCommentPublic200Response.md +++ b/client/docs/FlagCommentPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewFlagCommentPublic200Response -`func NewFlagCommentPublic200Response(status ImportedAPIStatusFAILED, reason string, code string, ) *FlagCommentPublic200Response` +`func NewFlagCommentPublic200Response(status APIStatus, reason string, code string, ) *FlagCommentPublic200Response` NewFlagCommentPublic200Response instantiates a new FlagCommentPublic200Response object This constructor will assign default values to properties that have it defined, @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *FlagCommentPublic200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *FlagCommentPublic200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *FlagCommentPublic200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *FlagCommentPublic200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *FlagCommentPublic200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *FlagCommentPublic200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetAuditLogs200Response.md b/client/docs/GetAuditLogs200Response.md index 98c9777..df67a70 100644 --- a/client/docs/GetAuditLogs200Response.md +++ b/client/docs/GetAuditLogs200Response.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | -**AuditLogs** | [**[]PickTenantAuditLogTenantAuditLogKeys**](PickTenantAuditLogTenantAuditLogKeys.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | +**AuditLogs** | [**[]APIAuditLog**](APIAuditLog.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetAuditLogs200Response -`func NewGetAuditLogs200Response(status ImportedAPIStatusFAILED, auditLogs []PickTenantAuditLogTenantAuditLogKeys, reason string, code string, ) *GetAuditLogs200Response` +`func NewGetAuditLogs200Response(status APIStatus, auditLogs []APIAuditLog, reason string, code string, ) *GetAuditLogs200Response` NewGetAuditLogs200Response instantiates a new GetAuditLogs200Response object This constructor will assign default values to properties that have it defined, @@ -35,40 +35,40 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetAuditLogs200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetAuditLogs200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetAuditLogs200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetAuditLogs200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetAuditLogs200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetAuditLogs200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. ### GetAuditLogs -`func (o *GetAuditLogs200Response) GetAuditLogs() []PickTenantAuditLogTenantAuditLogKeys` +`func (o *GetAuditLogs200Response) GetAuditLogs() []APIAuditLog` GetAuditLogs returns the AuditLogs field if non-nil, zero value otherwise. ### GetAuditLogsOk -`func (o *GetAuditLogs200Response) GetAuditLogsOk() (*[]PickTenantAuditLogTenantAuditLogKeys, bool)` +`func (o *GetAuditLogs200Response) GetAuditLogsOk() (*[]APIAuditLog, bool)` GetAuditLogsOk returns a tuple with the AuditLogs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuditLogs -`func (o *GetAuditLogs200Response) SetAuditLogs(v []PickTenantAuditLogTenantAuditLogKeys)` +`func (o *GetAuditLogs200Response) SetAuditLogs(v []APIAuditLog)` SetAuditLogs sets AuditLogs field to given value. diff --git a/client/docs/GetAuditLogsResponse.md b/client/docs/GetAuditLogsResponse.md index 94e3fb1..eb1c285 100644 --- a/client/docs/GetAuditLogsResponse.md +++ b/client/docs/GetAuditLogsResponse.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Status** | [**APIStatus**](APIStatus.md) | | -**AuditLogs** | [**[]PickTenantAuditLogTenantAuditLogKeys**](PickTenantAuditLogTenantAuditLogKeys.md) | | +**AuditLogs** | [**[]APIAuditLog**](APIAuditLog.md) | | ## Methods ### NewGetAuditLogsResponse -`func NewGetAuditLogsResponse(status APIStatus, auditLogs []PickTenantAuditLogTenantAuditLogKeys, ) *GetAuditLogsResponse` +`func NewGetAuditLogsResponse(status APIStatus, auditLogs []APIAuditLog, ) *GetAuditLogsResponse` NewGetAuditLogsResponse instantiates a new GetAuditLogsResponse object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetStatus sets Status field to given value. ### GetAuditLogs -`func (o *GetAuditLogsResponse) GetAuditLogs() []PickTenantAuditLogTenantAuditLogKeys` +`func (o *GetAuditLogsResponse) GetAuditLogs() []APIAuditLog` GetAuditLogs returns the AuditLogs field if non-nil, zero value otherwise. ### GetAuditLogsOk -`func (o *GetAuditLogsResponse) GetAuditLogsOk() (*[]PickTenantAuditLogTenantAuditLogKeys, bool)` +`func (o *GetAuditLogsResponse) GetAuditLogsOk() (*[]APIAuditLog, bool)` GetAuditLogsOk returns a tuple with the AuditLogs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuditLogs -`func (o *GetAuditLogsResponse) SetAuditLogs(v []PickTenantAuditLogTenantAuditLogKeys)` +`func (o *GetAuditLogsResponse) SetAuditLogs(v []APIAuditLog)` SetAuditLogs sets AuditLogs field to given value. diff --git a/client/docs/GetComment200Response.md b/client/docs/GetComment200Response.md index c65f032..1c2c0a1 100644 --- a/client/docs/GetComment200Response.md +++ b/client/docs/GetComment200Response.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | -**Comment** | [**PickFCommentAPICommentFieldsKeys**](PickFCommentAPICommentFieldsKeys.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | +**Comment** | [**APIComment**](APIComment.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetComment200Response -`func NewGetComment200Response(status ImportedAPIStatusFAILED, comment PickFCommentAPICommentFieldsKeys, reason string, code string, ) *GetComment200Response` +`func NewGetComment200Response(status APIStatus, comment APIComment, reason string, code string, ) *GetComment200Response` NewGetComment200Response instantiates a new GetComment200Response object This constructor will assign default values to properties that have it defined, @@ -35,40 +35,40 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetComment200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetComment200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetComment200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetComment200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetComment200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetComment200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. ### GetComment -`func (o *GetComment200Response) GetComment() PickFCommentAPICommentFieldsKeys` +`func (o *GetComment200Response) GetComment() APIComment` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *GetComment200Response) GetCommentOk() (*PickFCommentAPICommentFieldsKeys, bool)` +`func (o *GetComment200Response) GetCommentOk() (*APIComment, bool)` GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComment -`func (o *GetComment200Response) SetComment(v PickFCommentAPICommentFieldsKeys)` +`func (o *GetComment200Response) SetComment(v APIComment)` SetComment sets Comment field to given value. diff --git a/client/docs/GetCommentText200Response.md b/client/docs/GetCommentText200Response.md index 9f5cf32..3b450cb 100644 --- a/client/docs/GetCommentText200Response.md +++ b/client/docs/GetCommentText200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **CommentText** | **string** | | **SanitizedCommentText** | **string** | | **Reason** | **string** | | @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewGetCommentText200Response -`func NewGetCommentText200Response(status ImportedAPIStatusFAILED, commentText string, sanitizedCommentText string, reason string, code string, ) *GetCommentText200Response` +`func NewGetCommentText200Response(status APIStatus, commentText string, sanitizedCommentText string, reason string, code string, ) *GetCommentText200Response` NewGetCommentText200Response instantiates a new GetCommentText200Response object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetCommentText200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetCommentText200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetCommentText200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetCommentText200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetCommentText200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetCommentText200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetCommentVoteUserNames200Response.md b/client/docs/GetCommentVoteUserNames200Response.md index 60158c4..55ff204 100644 --- a/client/docs/GetCommentVoteUserNames200Response.md +++ b/client/docs/GetCommentVoteUserNames200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **VoteUserNames** | **[]string** | | **HasMore** | **bool** | | **Reason** | **string** | | @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewGetCommentVoteUserNames200Response -`func NewGetCommentVoteUserNames200Response(status ImportedAPIStatusFAILED, voteUserNames []string, hasMore bool, reason string, code string, ) *GetCommentVoteUserNames200Response` +`func NewGetCommentVoteUserNames200Response(status APIStatus, voteUserNames []string, hasMore bool, reason string, code string, ) *GetCommentVoteUserNames200Response` NewGetCommentVoteUserNames200Response instantiates a new GetCommentVoteUserNames200Response object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetCommentVoteUserNames200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetCommentVoteUserNames200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetCommentVoteUserNames200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetCommentVoteUserNames200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetCommentVoteUserNames200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetCommentVoteUserNames200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetCommentVoteUserNamesSuccessResponse.md b/client/docs/GetCommentVoteUserNamesSuccessResponse.md index 3be2bbb..a08d7f3 100644 --- a/client/docs/GetCommentVoteUserNamesSuccessResponse.md +++ b/client/docs/GetCommentVoteUserNamesSuccessResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **VoteUserNames** | **[]string** | | **HasMore** | **bool** | | @@ -12,7 +12,7 @@ Name | Type | Description | Notes ### NewGetCommentVoteUserNamesSuccessResponse -`func NewGetCommentVoteUserNamesSuccessResponse(status ImportedAPIStatusSUCCESS, voteUserNames []string, hasMore bool, ) *GetCommentVoteUserNamesSuccessResponse` +`func NewGetCommentVoteUserNamesSuccessResponse(status APIStatus, voteUserNames []string, hasMore bool, ) *GetCommentVoteUserNamesSuccessResponse` NewGetCommentVoteUserNamesSuccessResponse instantiates a new GetCommentVoteUserNamesSuccessResponse object This constructor will assign default values to properties that have it defined, @@ -29,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetCommentVoteUserNamesSuccessResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *GetCommentVoteUserNamesSuccessResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetCommentVoteUserNamesSuccessResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *GetCommentVoteUserNamesSuccessResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetCommentVoteUserNamesSuccessResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *GetCommentVoteUserNamesSuccessResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetComments200Response.md b/client/docs/GetComments200Response.md index 538b99b..10cbef7 100644 --- a/client/docs/GetComments200Response.md +++ b/client/docs/GetComments200Response.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | -**Comments** | [**[]PickFCommentAPICommentFieldsKeys**](PickFCommentAPICommentFieldsKeys.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | +**Comments** | [**[]APIComment**](APIComment.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetComments200Response -`func NewGetComments200Response(status ImportedAPIStatusFAILED, comments []PickFCommentAPICommentFieldsKeys, reason string, code string, ) *GetComments200Response` +`func NewGetComments200Response(status APIStatus, comments []APIComment, reason string, code string, ) *GetComments200Response` NewGetComments200Response instantiates a new GetComments200Response object This constructor will assign default values to properties that have it defined, @@ -35,40 +35,40 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetComments200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetComments200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetComments200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetComments200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetComments200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetComments200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. ### GetComments -`func (o *GetComments200Response) GetComments() []PickFCommentAPICommentFieldsKeys` +`func (o *GetComments200Response) GetComments() []APIComment` GetComments returns the Comments field if non-nil, zero value otherwise. ### GetCommentsOk -`func (o *GetComments200Response) GetCommentsOk() (*[]PickFCommentAPICommentFieldsKeys, bool)` +`func (o *GetComments200Response) GetCommentsOk() (*[]APIComment, bool)` GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComments -`func (o *GetComments200Response) SetComments(v []PickFCommentAPICommentFieldsKeys)` +`func (o *GetComments200Response) SetComments(v []APIComment)` SetComments sets Comments field to given value. diff --git a/client/docs/GetCommentsPublic200Response.md b/client/docs/GetCommentsPublic200Response.md index 6084b4a..1298873 100644 --- a/client/docs/GetCommentsPublic200Response.md +++ b/client/docs/GetCommentsPublic200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StatusCode** | Pointer to **int32** | | [optional] -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Code** | **string** | | **Reason** | **string** | | **TranslatedWarning** | Pointer to **string** | | [optional] @@ -40,7 +40,7 @@ Name | Type | Description | Notes ### NewGetCommentsPublic200Response -`func NewGetCommentsPublic200Response(status ImportedAPIStatusFAILED, code string, reason string, comments []PublicComment, user NullableUserSessionInfo, pageNumber int32, ) *GetCommentsPublic200Response` +`func NewGetCommentsPublic200Response(status APIStatus, code string, reason string, comments []PublicComment, user NullableUserSessionInfo, pageNumber int32, ) *GetCommentsPublic200Response` NewGetCommentsPublic200Response instantiates a new GetCommentsPublic200Response object This constructor will assign default values to properties that have it defined, @@ -82,20 +82,20 @@ HasStatusCode returns a boolean if a field has been set. ### GetStatus -`func (o *GetCommentsPublic200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetCommentsPublic200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetCommentsPublic200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetCommentsPublic200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetCommentsPublic200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetCommentsPublic200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetEventLog200Response.md b/client/docs/GetEventLog200Response.md index b5ac1d7..880f927 100644 --- a/client/docs/GetEventLog200Response.md +++ b/client/docs/GetEventLog200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Events** | [**[]EventLogEntry**](EventLogEntry.md) | | -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetEventLog200Response -`func NewGetEventLog200Response(events []EventLogEntry, status ImportedAPIStatusFAILED, reason string, code string, ) *GetEventLog200Response` +`func NewGetEventLog200Response(events []EventLogEntry, status APIStatus, reason string, code string, ) *GetEventLog200Response` NewGetEventLog200Response instantiates a new GetEventLog200Response object This constructor will assign default values to properties that have it defined, @@ -55,20 +55,20 @@ SetEvents sets Events field to given value. ### GetStatus -`func (o *GetEventLog200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetEventLog200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetEventLog200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetEventLog200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetEventLog200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetEventLog200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetEventLogResponse.md b/client/docs/GetEventLogResponse.md index 292b014..3b6dd0d 100644 --- a/client/docs/GetEventLogResponse.md +++ b/client/docs/GetEventLogResponse.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Events** | [**[]EventLogEntry**](EventLogEntry.md) | | -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | ## Methods ### NewGetEventLogResponse -`func NewGetEventLogResponse(events []EventLogEntry, status ImportedAPIStatusSUCCESS, ) *GetEventLogResponse` +`func NewGetEventLogResponse(events []EventLogEntry, status APIStatus, ) *GetEventLogResponse` NewGetEventLogResponse instantiates a new GetEventLogResponse object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetEvents sets Events field to given value. ### GetStatus -`func (o *GetEventLogResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *GetEventLogResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetEventLogResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *GetEventLogResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetEventLogResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *GetEventLogResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetFeedPosts200Response.md b/client/docs/GetFeedPosts200Response.md index e39d19e..4a79960 100644 --- a/client/docs/GetFeedPosts200Response.md +++ b/client/docs/GetFeedPosts200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **FeedPosts** | [**[]FeedPost**](FeedPost.md) | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetFeedPosts200Response -`func NewGetFeedPosts200Response(status ImportedAPIStatusFAILED, feedPosts []FeedPost, reason string, code string, ) *GetFeedPosts200Response` +`func NewGetFeedPosts200Response(status APIStatus, feedPosts []FeedPost, reason string, code string, ) *GetFeedPosts200Response` NewGetFeedPosts200Response instantiates a new GetFeedPosts200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetFeedPosts200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetFeedPosts200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetFeedPosts200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetFeedPosts200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetFeedPosts200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetFeedPosts200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetFeedPostsPublic200Response.md b/client/docs/GetFeedPostsPublic200Response.md index 093cd3d..3809e10 100644 --- a/client/docs/GetFeedPostsPublic200Response.md +++ b/client/docs/GetFeedPostsPublic200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MyReacts** | Pointer to **map[string]map[string]bool** | | [optional] -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **FeedPosts** | [**[]FeedPost**](FeedPost.md) | | **User** | Pointer to [**NullableUserSessionInfo**](UserSessionInfo.md) | | [optional] **UrlIdWS** | Pointer to **string** | | [optional] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewGetFeedPostsPublic200Response -`func NewGetFeedPostsPublic200Response(status ImportedAPIStatusFAILED, feedPosts []FeedPost, reason string, code string, ) *GetFeedPostsPublic200Response` +`func NewGetFeedPostsPublic200Response(status APIStatus, feedPosts []FeedPost, reason string, code string, ) *GetFeedPostsPublic200Response` NewGetFeedPostsPublic200Response instantiates a new GetFeedPostsPublic200Response object This constructor will assign default values to properties that have it defined, @@ -65,20 +65,20 @@ HasMyReacts returns a boolean if a field has been set. ### GetStatus -`func (o *GetFeedPostsPublic200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetFeedPostsPublic200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetFeedPostsPublic200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetFeedPostsPublic200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetFeedPostsPublic200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetFeedPostsPublic200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetFeedPostsStats200Response.md b/client/docs/GetFeedPostsStats200Response.md index f4f9a08..a7a11ff 100644 --- a/client/docs/GetFeedPostsStats200Response.md +++ b/client/docs/GetFeedPostsStats200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Stats** | [**map[string]FeedPostStats**](FeedPostStats.md) | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetFeedPostsStats200Response -`func NewGetFeedPostsStats200Response(status ImportedAPIStatusFAILED, stats map[string]FeedPostStats, reason string, code string, ) *GetFeedPostsStats200Response` +`func NewGetFeedPostsStats200Response(status APIStatus, stats map[string]FeedPostStats, reason string, code string, ) *GetFeedPostsStats200Response` NewGetFeedPostsStats200Response instantiates a new GetFeedPostsStats200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetFeedPostsStats200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetFeedPostsStats200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetFeedPostsStats200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetFeedPostsStats200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetFeedPostsStats200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetFeedPostsStats200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetMyNotificationsResponse.md b/client/docs/GetMyNotificationsResponse.md index 0ec7887..ae22918 100644 --- a/client/docs/GetMyNotificationsResponse.md +++ b/client/docs/GetMyNotificationsResponse.md @@ -8,13 +8,13 @@ Name | Type | Description | Notes **IsSubscribed** | **bool** | | **HasMore** | **bool** | | **Notifications** | [**[]RenderableUserNotification**](RenderableUserNotification.md) | | -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | ## Methods ### NewGetMyNotificationsResponse -`func NewGetMyNotificationsResponse(isSubscribed bool, hasMore bool, notifications []RenderableUserNotification, status ImportedAPIStatusSUCCESS, ) *GetMyNotificationsResponse` +`func NewGetMyNotificationsResponse(isSubscribed bool, hasMore bool, notifications []RenderableUserNotification, status APIStatus, ) *GetMyNotificationsResponse` NewGetMyNotificationsResponse instantiates a new GetMyNotificationsResponse object This constructor will assign default values to properties that have it defined, @@ -116,20 +116,20 @@ SetNotifications sets Notifications field to given value. ### GetStatus -`func (o *GetMyNotificationsResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *GetMyNotificationsResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetMyNotificationsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *GetMyNotificationsResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetMyNotificationsResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *GetMyNotificationsResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetPublicFeedPostsResponse.md b/client/docs/GetPublicFeedPostsResponse.md index bf7a4ab..0248afb 100644 --- a/client/docs/GetPublicFeedPostsResponse.md +++ b/client/docs/GetPublicFeedPostsResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **FeedPosts** | [**[]FeedPost**](FeedPost.md) | | **User** | Pointer to [**NullableUserSessionInfo**](UserSessionInfo.md) | | [optional] @@ -12,7 +12,7 @@ Name | Type | Description | Notes ### NewGetPublicFeedPostsResponse -`func NewGetPublicFeedPostsResponse(status ImportedAPIStatusSUCCESS, feedPosts []FeedPost, ) *GetPublicFeedPostsResponse` +`func NewGetPublicFeedPostsResponse(status APIStatus, feedPosts []FeedPost, ) *GetPublicFeedPostsResponse` NewGetPublicFeedPostsResponse instantiates a new GetPublicFeedPostsResponse object This constructor will assign default values to properties that have it defined, @@ -29,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetPublicFeedPostsResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *GetPublicFeedPostsResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetPublicFeedPostsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *GetPublicFeedPostsResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetPublicFeedPostsResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *GetPublicFeedPostsResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetUserBadge200Response.md b/client/docs/GetUserBadge200Response.md index 5d6b009..bcb3ec0 100644 --- a/client/docs/GetUserBadge200Response.md +++ b/client/docs/GetUserBadge200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **UserBadge** | [**UserBadge**](UserBadge.md) | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetUserBadge200Response -`func NewGetUserBadge200Response(status ImportedAPIStatusFAILED, userBadge UserBadge, reason string, code string, ) *GetUserBadge200Response` +`func NewGetUserBadge200Response(status APIStatus, userBadge UserBadge, reason string, code string, ) *GetUserBadge200Response` NewGetUserBadge200Response instantiates a new GetUserBadge200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetUserBadge200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetUserBadge200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetUserBadge200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetUserBadge200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetUserBadge200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetUserBadge200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetUserBadgeProgressById200Response.md b/client/docs/GetUserBadgeProgressById200Response.md index 2d3c1cc..af2d18c 100644 --- a/client/docs/GetUserBadgeProgressById200Response.md +++ b/client/docs/GetUserBadgeProgressById200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **UserBadgeProgress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetUserBadgeProgressById200Response -`func NewGetUserBadgeProgressById200Response(status ImportedAPIStatusFAILED, userBadgeProgress UserBadgeProgress, reason string, code string, ) *GetUserBadgeProgressById200Response` +`func NewGetUserBadgeProgressById200Response(status APIStatus, userBadgeProgress UserBadgeProgress, reason string, code string, ) *GetUserBadgeProgressById200Response` NewGetUserBadgeProgressById200Response instantiates a new GetUserBadgeProgressById200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetUserBadgeProgressById200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetUserBadgeProgressById200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetUserBadgeProgressById200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetUserBadgeProgressById200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetUserBadgeProgressById200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetUserBadgeProgressById200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetUserBadgeProgressList200Response.md b/client/docs/GetUserBadgeProgressList200Response.md index 6053a74..ae1300d 100644 --- a/client/docs/GetUserBadgeProgressList200Response.md +++ b/client/docs/GetUserBadgeProgressList200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **UserBadgeProgresses** | [**[]UserBadgeProgress**](UserBadgeProgress.md) | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetUserBadgeProgressList200Response -`func NewGetUserBadgeProgressList200Response(status ImportedAPIStatusFAILED, userBadgeProgresses []UserBadgeProgress, reason string, code string, ) *GetUserBadgeProgressList200Response` +`func NewGetUserBadgeProgressList200Response(status APIStatus, userBadgeProgresses []UserBadgeProgress, reason string, code string, ) *GetUserBadgeProgressList200Response` NewGetUserBadgeProgressList200Response instantiates a new GetUserBadgeProgressList200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetUserBadgeProgressList200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetUserBadgeProgressList200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetUserBadgeProgressList200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetUserBadgeProgressList200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetUserBadgeProgressList200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetUserBadgeProgressList200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetUserBadges200Response.md b/client/docs/GetUserBadges200Response.md index d19d576..40f49bf 100644 --- a/client/docs/GetUserBadges200Response.md +++ b/client/docs/GetUserBadges200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **UserBadges** | [**[]UserBadge**](UserBadge.md) | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetUserBadges200Response -`func NewGetUserBadges200Response(status ImportedAPIStatusFAILED, userBadges []UserBadge, reason string, code string, ) *GetUserBadges200Response` +`func NewGetUserBadges200Response(status APIStatus, userBadges []UserBadge, reason string, code string, ) *GetUserBadges200Response` NewGetUserBadges200Response instantiates a new GetUserBadges200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetUserBadges200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetUserBadges200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetUserBadges200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetUserBadges200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetUserBadges200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetUserBadges200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetUserNotificationCount200Response.md b/client/docs/GetUserNotificationCount200Response.md index 3df8bf1..ec6afe8 100644 --- a/client/docs/GetUserNotificationCount200Response.md +++ b/client/docs/GetUserNotificationCount200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Count** | **int64** | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetUserNotificationCount200Response -`func NewGetUserNotificationCount200Response(status ImportedAPIStatusFAILED, count int64, reason string, code string, ) *GetUserNotificationCount200Response` +`func NewGetUserNotificationCount200Response(status APIStatus, count int64, reason string, code string, ) *GetUserNotificationCount200Response` NewGetUserNotificationCount200Response instantiates a new GetUserNotificationCount200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetUserNotificationCount200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetUserNotificationCount200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetUserNotificationCount200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetUserNotificationCount200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetUserNotificationCount200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetUserNotificationCount200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetUserNotificationCountResponse.md b/client/docs/GetUserNotificationCountResponse.md index 3baf255..fb7163e 100644 --- a/client/docs/GetUserNotificationCountResponse.md +++ b/client/docs/GetUserNotificationCountResponse.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Count** | **int64** | | ## Methods ### NewGetUserNotificationCountResponse -`func NewGetUserNotificationCountResponse(status ImportedAPIStatusSUCCESS, count int64, ) *GetUserNotificationCountResponse` +`func NewGetUserNotificationCountResponse(status APIStatus, count int64, ) *GetUserNotificationCountResponse` NewGetUserNotificationCountResponse instantiates a new GetUserNotificationCountResponse object This constructor will assign default values to properties that have it defined, @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetUserNotificationCountResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *GetUserNotificationCountResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetUserNotificationCountResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *GetUserNotificationCountResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetUserNotificationCountResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *GetUserNotificationCountResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetUserNotifications200Response.md b/client/docs/GetUserNotifications200Response.md index d7b6a35..85432f7 100644 --- a/client/docs/GetUserNotifications200Response.md +++ b/client/docs/GetUserNotifications200Response.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **IsSubscribed** | **bool** | | **HasMore** | **bool** | | **Notifications** | [**[]RenderableUserNotification**](RenderableUserNotification.md) | | -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewGetUserNotifications200Response -`func NewGetUserNotifications200Response(isSubscribed bool, hasMore bool, notifications []RenderableUserNotification, status ImportedAPIStatusFAILED, reason string, code string, ) *GetUserNotifications200Response` +`func NewGetUserNotifications200Response(isSubscribed bool, hasMore bool, notifications []RenderableUserNotification, status APIStatus, reason string, code string, ) *GetUserNotifications200Response` NewGetUserNotifications200Response instantiates a new GetUserNotifications200Response object This constructor will assign default values to properties that have it defined, @@ -123,20 +123,20 @@ SetNotifications sets Notifications field to given value. ### GetStatus -`func (o *GetUserNotifications200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetUserNotifications200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetUserNotifications200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetUserNotifications200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetUserNotifications200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetUserNotifications200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetUserPresenceStatuses200Response.md b/client/docs/GetUserPresenceStatuses200Response.md index b50454e..f506193 100644 --- a/client/docs/GetUserPresenceStatuses200Response.md +++ b/client/docs/GetUserPresenceStatuses200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **UserIdsOnline** | **map[string]bool** | Construct a type with a set of properties K of type T | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetUserPresenceStatuses200Response -`func NewGetUserPresenceStatuses200Response(status ImportedAPIStatusFAILED, userIdsOnline map[string]bool, reason string, code string, ) *GetUserPresenceStatuses200Response` +`func NewGetUserPresenceStatuses200Response(status APIStatus, userIdsOnline map[string]bool, reason string, code string, ) *GetUserPresenceStatuses200Response` NewGetUserPresenceStatuses200Response instantiates a new GetUserPresenceStatuses200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetUserPresenceStatuses200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetUserPresenceStatuses200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetUserPresenceStatuses200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetUserPresenceStatuses200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetUserPresenceStatuses200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetUserPresenceStatuses200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetUserPresenceStatusesResponse.md b/client/docs/GetUserPresenceStatusesResponse.md index 6034588..1cc5bf1 100644 --- a/client/docs/GetUserPresenceStatusesResponse.md +++ b/client/docs/GetUserPresenceStatusesResponse.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **UserIdsOnline** | **map[string]bool** | Construct a type with a set of properties K of type T | ## Methods ### NewGetUserPresenceStatusesResponse -`func NewGetUserPresenceStatusesResponse(status ImportedAPIStatusSUCCESS, userIdsOnline map[string]bool, ) *GetUserPresenceStatusesResponse` +`func NewGetUserPresenceStatusesResponse(status APIStatus, userIdsOnline map[string]bool, ) *GetUserPresenceStatusesResponse` NewGetUserPresenceStatusesResponse instantiates a new GetUserPresenceStatusesResponse object This constructor will assign default values to properties that have it defined, @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetUserPresenceStatusesResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *GetUserPresenceStatusesResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetUserPresenceStatusesResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *GetUserPresenceStatusesResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetUserPresenceStatusesResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *GetUserPresenceStatusesResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/GetUserReactsPublic200Response.md b/client/docs/GetUserReactsPublic200Response.md index 32c1f6c..ca6875e 100644 --- a/client/docs/GetUserReactsPublic200Response.md +++ b/client/docs/GetUserReactsPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reacts** | **map[string]map[string]bool** | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewGetUserReactsPublic200Response -`func NewGetUserReactsPublic200Response(status ImportedAPIStatusFAILED, reacts map[string]map[string]bool, reason string, code string, ) *GetUserReactsPublic200Response` +`func NewGetUserReactsPublic200Response(status APIStatus, reacts map[string]map[string]bool, reason string, code string, ) *GetUserReactsPublic200Response` NewGetUserReactsPublic200Response instantiates a new GetUserReactsPublic200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *GetUserReactsPublic200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *GetUserReactsPublic200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *GetUserReactsPublic200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *GetUserReactsPublic200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *GetUserReactsPublic200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *GetUserReactsPublic200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/HeaderState.md b/client/docs/HeaderState.md index ec707a1..ac56ff5 100644 --- a/client/docs/HeaderState.md +++ b/client/docs/HeaderState.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **NotificationType** | **map[string]interface{}** | | **UserId** | **string** | | **UserIdWS** | **string** | | @@ -14,7 +14,7 @@ Name | Type | Description | Notes ### NewHeaderState -`func NewHeaderState(status ImportedAPIStatusSUCCESS, notificationType map[string]interface{}, userId string, userIdWS string, notificationCounts []NotificationAndCount, ) *HeaderState` +`func NewHeaderState(status APIStatus, notificationType map[string]interface{}, userId string, userIdWS string, notificationCounts []NotificationAndCount, ) *HeaderState` NewHeaderState instantiates a new HeaderState object This constructor will assign default values to properties that have it defined, @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *HeaderState) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *HeaderState) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *HeaderState) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *HeaderState) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *HeaderState) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *HeaderState) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/IgnoredResponse.md b/client/docs/IgnoredResponse.md index ff3ef01..1437e09 100644 --- a/client/docs/IgnoredResponse.md +++ b/client/docs/IgnoredResponse.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Note** | **string** | | ## Methods ### NewIgnoredResponse -`func NewIgnoredResponse(status ImportedAPIStatusSUCCESS, note string, ) *IgnoredResponse` +`func NewIgnoredResponse(status APIStatus, note string, ) *IgnoredResponse` NewIgnoredResponse instantiates a new IgnoredResponse object This constructor will assign default values to properties that have it defined, @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *IgnoredResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *IgnoredResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *IgnoredResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *IgnoredResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *IgnoredResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *IgnoredResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/ImportedAPIStatusSUCCESS.md b/client/docs/ImportedAPIStatusSUCCESS.md deleted file mode 100644 index 94609b1..0000000 --- a/client/docs/ImportedAPIStatusSUCCESS.md +++ /dev/null @@ -1,11 +0,0 @@ -# ImportedAPIStatusSUCCESS - -## Enum - - -* `SUCCESS` (value: `"success"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/LockComment200Response.md b/client/docs/LockComment200Response.md index 7480623..1539074 100644 --- a/client/docs/LockComment200Response.md +++ b/client/docs/LockComment200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewLockComment200Response -`func NewLockComment200Response(status ImportedAPIStatusSUCCESS, reason string, code string, ) *LockComment200Response` +`func NewLockComment200Response(status APIStatus, reason string, code string, ) *LockComment200Response` NewLockComment200Response instantiates a new LockComment200Response object This constructor will assign default values to properties that have it defined, @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *LockComment200Response) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *LockComment200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *LockComment200Response) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *LockComment200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *LockComment200Response) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *LockComment200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/PatchPageAPIResponse.md b/client/docs/PatchPageAPIResponse.md index c3ba48d..73dd7d6 100644 --- a/client/docs/PatchPageAPIResponse.md +++ b/client/docs/PatchPageAPIResponse.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Reason** | Pointer to **string** | | [optional] **Code** | Pointer to **string** | | [optional] +**CommentsUpdated** | Pointer to **int64** | | [optional] **Page** | Pointer to [**APIPage**](APIPage.md) | | [optional] **Status** | **string** | | @@ -78,6 +79,31 @@ SetCode sets Code field to given value. HasCode returns a boolean if a field has been set. +### GetCommentsUpdated + +`func (o *PatchPageAPIResponse) GetCommentsUpdated() int64` + +GetCommentsUpdated returns the CommentsUpdated field if non-nil, zero value otherwise. + +### GetCommentsUpdatedOk + +`func (o *PatchPageAPIResponse) GetCommentsUpdatedOk() (*int64, bool)` + +GetCommentsUpdatedOk returns a tuple with the CommentsUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentsUpdated + +`func (o *PatchPageAPIResponse) SetCommentsUpdated(v int64)` + +SetCommentsUpdated sets CommentsUpdated field to given value. + +### HasCommentsUpdated + +`func (o *PatchPageAPIResponse) HasCommentsUpdated() bool` + +HasCommentsUpdated returns a boolean if a field has been set. + ### GetPage `func (o *PatchPageAPIResponse) GetPage() APIPage` diff --git a/client/docs/PickAPICommentUpdatableCommentFields.md b/client/docs/PickAPICommentUpdatableCommentFields.md deleted file mode 100644 index 03e73c8..0000000 --- a/client/docs/PickAPICommentUpdatableCommentFields.md +++ /dev/null @@ -1,1004 +0,0 @@ -# PickAPICommentUpdatableCommentFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Date** | **time.Time** | | -**UrlId** | **string** | | -**UrlIdRaw** | Pointer to **string** | | [optional] -**Url** | **string** | | -**PageTitle** | Pointer to **string** | | [optional] -**UserId** | Pointer to **string** | | [optional] -**CommenterEmail** | Pointer to **string** | | [optional] -**CommenterName** | **string** | | -**CommenterLink** | Pointer to **string** | | [optional] -**Comment** | **string** | | -**CommentHTML** | **string** | | -**ParentId** | Pointer to **string** | | [optional] -**LocalDateString** | Pointer to **string** | | [optional] -**LocalDateHours** | Pointer to **int32** | | [optional] -**Votes** | Pointer to **int32** | | [optional] -**VotesUp** | Pointer to **int32** | | [optional] -**VotesDown** | Pointer to **int32** | | [optional] -**ExpireAt** | Pointer to **time.Time** | | [optional] -**Verified** | **bool** | | -**VerifiedDate** | Pointer to **time.Time** | | [optional] -**NotificationSentForParent** | Pointer to **bool** | | [optional] -**NotificationSentForParentTenant** | Pointer to **bool** | | [optional] -**Reviewed** | Pointer to **bool** | | [optional] -**ExternalId** | Pointer to **string** | | [optional] -**ExternalParentId** | Pointer to **string** | | [optional] -**AvatarSrc** | Pointer to **string** | | [optional] -**IsSpam** | Pointer to **bool** | | [optional] -**Approved** | **bool** | | -**IsDeleted** | Pointer to **bool** | | [optional] -**IsDeletedUser** | Pointer to **bool** | | [optional] -**IsByAdmin** | Pointer to **bool** | | [optional] -**IsByModerator** | Pointer to **bool** | | [optional] -**IsPinned** | Pointer to **bool** | | [optional] -**IsLocked** | Pointer to **bool** | | [optional] -**FlagCount** | Pointer to **int32** | | [optional] -**DisplayLabel** | Pointer to **string** | | [optional] -**Meta** | Pointer to [**PickFCommentAPICommentFieldsKeysMeta**](PickFCommentAPICommentFieldsKeysMeta.md) | | [optional] -**ModerationGroupIds** | Pointer to **[]string** | | [optional] -**FeedbackIds** | Pointer to **[]string** | | [optional] - -## Methods - -### NewPickAPICommentUpdatableCommentFields - -`func NewPickAPICommentUpdatableCommentFields(date time.Time, urlId string, url string, commenterName string, comment string, commentHTML string, verified bool, approved bool, ) *PickAPICommentUpdatableCommentFields` - -NewPickAPICommentUpdatableCommentFields instantiates a new PickAPICommentUpdatableCommentFields 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 - -### NewPickAPICommentUpdatableCommentFieldsWithDefaults - -`func NewPickAPICommentUpdatableCommentFieldsWithDefaults() *PickAPICommentUpdatableCommentFields` - -NewPickAPICommentUpdatableCommentFieldsWithDefaults instantiates a new PickAPICommentUpdatableCommentFields 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 - -### GetDate - -`func (o *PickAPICommentUpdatableCommentFields) GetDate() time.Time` - -GetDate returns the Date field if non-nil, zero value otherwise. - -### GetDateOk - -`func (o *PickAPICommentUpdatableCommentFields) GetDateOk() (*time.Time, bool)` - -GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDate - -`func (o *PickAPICommentUpdatableCommentFields) SetDate(v time.Time)` - -SetDate sets Date field to given value. - - -### GetUrlId - -`func (o *PickAPICommentUpdatableCommentFields) GetUrlId() string` - -GetUrlId returns the UrlId field if non-nil, zero value otherwise. - -### GetUrlIdOk - -`func (o *PickAPICommentUpdatableCommentFields) GetUrlIdOk() (*string, bool)` - -GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrlId - -`func (o *PickAPICommentUpdatableCommentFields) SetUrlId(v string)` - -SetUrlId sets UrlId field to given value. - - -### GetUrlIdRaw - -`func (o *PickAPICommentUpdatableCommentFields) GetUrlIdRaw() string` - -GetUrlIdRaw returns the UrlIdRaw field if non-nil, zero value otherwise. - -### GetUrlIdRawOk - -`func (o *PickAPICommentUpdatableCommentFields) GetUrlIdRawOk() (*string, bool)` - -GetUrlIdRawOk returns a tuple with the UrlIdRaw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrlIdRaw - -`func (o *PickAPICommentUpdatableCommentFields) SetUrlIdRaw(v string)` - -SetUrlIdRaw sets UrlIdRaw field to given value. - -### HasUrlIdRaw - -`func (o *PickAPICommentUpdatableCommentFields) HasUrlIdRaw() bool` - -HasUrlIdRaw returns a boolean if a field has been set. - -### GetUrl - -`func (o *PickAPICommentUpdatableCommentFields) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *PickAPICommentUpdatableCommentFields) 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 *PickAPICommentUpdatableCommentFields) SetUrl(v string)` - -SetUrl sets Url field to given value. - - -### GetPageTitle - -`func (o *PickAPICommentUpdatableCommentFields) GetPageTitle() string` - -GetPageTitle returns the PageTitle field if non-nil, zero value otherwise. - -### GetPageTitleOk - -`func (o *PickAPICommentUpdatableCommentFields) GetPageTitleOk() (*string, bool)` - -GetPageTitleOk returns a tuple with the PageTitle field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageTitle - -`func (o *PickAPICommentUpdatableCommentFields) SetPageTitle(v string)` - -SetPageTitle sets PageTitle field to given value. - -### HasPageTitle - -`func (o *PickAPICommentUpdatableCommentFields) HasPageTitle() bool` - -HasPageTitle returns a boolean if a field has been set. - -### GetUserId - -`func (o *PickAPICommentUpdatableCommentFields) GetUserId() string` - -GetUserId returns the UserId field if non-nil, zero value otherwise. - -### GetUserIdOk - -`func (o *PickAPICommentUpdatableCommentFields) GetUserIdOk() (*string, 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 *PickAPICommentUpdatableCommentFields) SetUserId(v string)` - -SetUserId sets UserId field to given value. - -### HasUserId - -`func (o *PickAPICommentUpdatableCommentFields) HasUserId() bool` - -HasUserId returns a boolean if a field has been set. - -### GetCommenterEmail - -`func (o *PickAPICommentUpdatableCommentFields) GetCommenterEmail() string` - -GetCommenterEmail returns the CommenterEmail field if non-nil, zero value otherwise. - -### GetCommenterEmailOk - -`func (o *PickAPICommentUpdatableCommentFields) GetCommenterEmailOk() (*string, bool)` - -GetCommenterEmailOk returns a tuple with the CommenterEmail field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommenterEmail - -`func (o *PickAPICommentUpdatableCommentFields) SetCommenterEmail(v string)` - -SetCommenterEmail sets CommenterEmail field to given value. - -### HasCommenterEmail - -`func (o *PickAPICommentUpdatableCommentFields) HasCommenterEmail() bool` - -HasCommenterEmail returns a boolean if a field has been set. - -### GetCommenterName - -`func (o *PickAPICommentUpdatableCommentFields) GetCommenterName() string` - -GetCommenterName returns the CommenterName field if non-nil, zero value otherwise. - -### GetCommenterNameOk - -`func (o *PickAPICommentUpdatableCommentFields) GetCommenterNameOk() (*string, bool)` - -GetCommenterNameOk returns a tuple with the CommenterName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommenterName - -`func (o *PickAPICommentUpdatableCommentFields) SetCommenterName(v string)` - -SetCommenterName sets CommenterName field to given value. - - -### GetCommenterLink - -`func (o *PickAPICommentUpdatableCommentFields) GetCommenterLink() string` - -GetCommenterLink returns the CommenterLink field if non-nil, zero value otherwise. - -### GetCommenterLinkOk - -`func (o *PickAPICommentUpdatableCommentFields) GetCommenterLinkOk() (*string, bool)` - -GetCommenterLinkOk returns a tuple with the CommenterLink field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommenterLink - -`func (o *PickAPICommentUpdatableCommentFields) SetCommenterLink(v string)` - -SetCommenterLink sets CommenterLink field to given value. - -### HasCommenterLink - -`func (o *PickAPICommentUpdatableCommentFields) HasCommenterLink() bool` - -HasCommenterLink returns a boolean if a field has been set. - -### GetComment - -`func (o *PickAPICommentUpdatableCommentFields) GetComment() string` - -GetComment returns the Comment field if non-nil, zero value otherwise. - -### GetCommentOk - -`func (o *PickAPICommentUpdatableCommentFields) GetCommentOk() (*string, bool)` - -GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComment - -`func (o *PickAPICommentUpdatableCommentFields) SetComment(v string)` - -SetComment sets Comment field to given value. - - -### GetCommentHTML - -`func (o *PickAPICommentUpdatableCommentFields) GetCommentHTML() string` - -GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. - -### GetCommentHTMLOk - -`func (o *PickAPICommentUpdatableCommentFields) GetCommentHTMLOk() (*string, bool)` - -GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommentHTML - -`func (o *PickAPICommentUpdatableCommentFields) SetCommentHTML(v string)` - -SetCommentHTML sets CommentHTML field to given value. - - -### GetParentId - -`func (o *PickAPICommentUpdatableCommentFields) GetParentId() string` - -GetParentId returns the ParentId field if non-nil, zero value otherwise. - -### GetParentIdOk - -`func (o *PickAPICommentUpdatableCommentFields) GetParentIdOk() (*string, bool)` - -GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParentId - -`func (o *PickAPICommentUpdatableCommentFields) SetParentId(v string)` - -SetParentId sets ParentId field to given value. - -### HasParentId - -`func (o *PickAPICommentUpdatableCommentFields) HasParentId() bool` - -HasParentId returns a boolean if a field has been set. - -### GetLocalDateString - -`func (o *PickAPICommentUpdatableCommentFields) GetLocalDateString() string` - -GetLocalDateString returns the LocalDateString field if non-nil, zero value otherwise. - -### GetLocalDateStringOk - -`func (o *PickAPICommentUpdatableCommentFields) GetLocalDateStringOk() (*string, bool)` - -GetLocalDateStringOk returns a tuple with the LocalDateString field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLocalDateString - -`func (o *PickAPICommentUpdatableCommentFields) SetLocalDateString(v string)` - -SetLocalDateString sets LocalDateString field to given value. - -### HasLocalDateString - -`func (o *PickAPICommentUpdatableCommentFields) HasLocalDateString() bool` - -HasLocalDateString returns a boolean if a field has been set. - -### GetLocalDateHours - -`func (o *PickAPICommentUpdatableCommentFields) GetLocalDateHours() int32` - -GetLocalDateHours returns the LocalDateHours field if non-nil, zero value otherwise. - -### GetLocalDateHoursOk - -`func (o *PickAPICommentUpdatableCommentFields) GetLocalDateHoursOk() (*int32, bool)` - -GetLocalDateHoursOk returns a tuple with the LocalDateHours field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLocalDateHours - -`func (o *PickAPICommentUpdatableCommentFields) SetLocalDateHours(v int32)` - -SetLocalDateHours sets LocalDateHours field to given value. - -### HasLocalDateHours - -`func (o *PickAPICommentUpdatableCommentFields) HasLocalDateHours() bool` - -HasLocalDateHours returns a boolean if a field has been set. - -### GetVotes - -`func (o *PickAPICommentUpdatableCommentFields) GetVotes() int32` - -GetVotes returns the Votes field if non-nil, zero value otherwise. - -### GetVotesOk - -`func (o *PickAPICommentUpdatableCommentFields) GetVotesOk() (*int32, bool)` - -GetVotesOk returns a tuple with the Votes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVotes - -`func (o *PickAPICommentUpdatableCommentFields) SetVotes(v int32)` - -SetVotes sets Votes field to given value. - -### HasVotes - -`func (o *PickAPICommentUpdatableCommentFields) HasVotes() bool` - -HasVotes returns a boolean if a field has been set. - -### GetVotesUp - -`func (o *PickAPICommentUpdatableCommentFields) GetVotesUp() int32` - -GetVotesUp returns the VotesUp field if non-nil, zero value otherwise. - -### GetVotesUpOk - -`func (o *PickAPICommentUpdatableCommentFields) GetVotesUpOk() (*int32, bool)` - -GetVotesUpOk returns a tuple with the VotesUp field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVotesUp - -`func (o *PickAPICommentUpdatableCommentFields) SetVotesUp(v int32)` - -SetVotesUp sets VotesUp field to given value. - -### HasVotesUp - -`func (o *PickAPICommentUpdatableCommentFields) HasVotesUp() bool` - -HasVotesUp returns a boolean if a field has been set. - -### GetVotesDown - -`func (o *PickAPICommentUpdatableCommentFields) GetVotesDown() int32` - -GetVotesDown returns the VotesDown field if non-nil, zero value otherwise. - -### GetVotesDownOk - -`func (o *PickAPICommentUpdatableCommentFields) GetVotesDownOk() (*int32, bool)` - -GetVotesDownOk returns a tuple with the VotesDown field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVotesDown - -`func (o *PickAPICommentUpdatableCommentFields) SetVotesDown(v int32)` - -SetVotesDown sets VotesDown field to given value. - -### HasVotesDown - -`func (o *PickAPICommentUpdatableCommentFields) HasVotesDown() bool` - -HasVotesDown returns a boolean if a field has been set. - -### GetExpireAt - -`func (o *PickAPICommentUpdatableCommentFields) GetExpireAt() time.Time` - -GetExpireAt returns the ExpireAt field if non-nil, zero value otherwise. - -### GetExpireAtOk - -`func (o *PickAPICommentUpdatableCommentFields) GetExpireAtOk() (*time.Time, bool)` - -GetExpireAtOk returns a tuple with the ExpireAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpireAt - -`func (o *PickAPICommentUpdatableCommentFields) SetExpireAt(v time.Time)` - -SetExpireAt sets ExpireAt field to given value. - -### HasExpireAt - -`func (o *PickAPICommentUpdatableCommentFields) HasExpireAt() bool` - -HasExpireAt returns a boolean if a field has been set. - -### GetVerified - -`func (o *PickAPICommentUpdatableCommentFields) GetVerified() bool` - -GetVerified returns the Verified field if non-nil, zero value otherwise. - -### GetVerifiedOk - -`func (o *PickAPICommentUpdatableCommentFields) GetVerifiedOk() (*bool, bool)` - -GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVerified - -`func (o *PickAPICommentUpdatableCommentFields) SetVerified(v bool)` - -SetVerified sets Verified field to given value. - - -### GetVerifiedDate - -`func (o *PickAPICommentUpdatableCommentFields) GetVerifiedDate() time.Time` - -GetVerifiedDate returns the VerifiedDate field if non-nil, zero value otherwise. - -### GetVerifiedDateOk - -`func (o *PickAPICommentUpdatableCommentFields) GetVerifiedDateOk() (*time.Time, bool)` - -GetVerifiedDateOk returns a tuple with the VerifiedDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVerifiedDate - -`func (o *PickAPICommentUpdatableCommentFields) SetVerifiedDate(v time.Time)` - -SetVerifiedDate sets VerifiedDate field to given value. - -### HasVerifiedDate - -`func (o *PickAPICommentUpdatableCommentFields) HasVerifiedDate() bool` - -HasVerifiedDate returns a boolean if a field has been set. - -### GetNotificationSentForParent - -`func (o *PickAPICommentUpdatableCommentFields) GetNotificationSentForParent() bool` - -GetNotificationSentForParent returns the NotificationSentForParent field if non-nil, zero value otherwise. - -### GetNotificationSentForParentOk - -`func (o *PickAPICommentUpdatableCommentFields) GetNotificationSentForParentOk() (*bool, bool)` - -GetNotificationSentForParentOk returns a tuple with the NotificationSentForParent field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNotificationSentForParent - -`func (o *PickAPICommentUpdatableCommentFields) SetNotificationSentForParent(v bool)` - -SetNotificationSentForParent sets NotificationSentForParent field to given value. - -### HasNotificationSentForParent - -`func (o *PickAPICommentUpdatableCommentFields) HasNotificationSentForParent() bool` - -HasNotificationSentForParent returns a boolean if a field has been set. - -### GetNotificationSentForParentTenant - -`func (o *PickAPICommentUpdatableCommentFields) GetNotificationSentForParentTenant() bool` - -GetNotificationSentForParentTenant returns the NotificationSentForParentTenant field if non-nil, zero value otherwise. - -### GetNotificationSentForParentTenantOk - -`func (o *PickAPICommentUpdatableCommentFields) GetNotificationSentForParentTenantOk() (*bool, bool)` - -GetNotificationSentForParentTenantOk returns a tuple with the NotificationSentForParentTenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNotificationSentForParentTenant - -`func (o *PickAPICommentUpdatableCommentFields) SetNotificationSentForParentTenant(v bool)` - -SetNotificationSentForParentTenant sets NotificationSentForParentTenant field to given value. - -### HasNotificationSentForParentTenant - -`func (o *PickAPICommentUpdatableCommentFields) HasNotificationSentForParentTenant() bool` - -HasNotificationSentForParentTenant returns a boolean if a field has been set. - -### GetReviewed - -`func (o *PickAPICommentUpdatableCommentFields) GetReviewed() bool` - -GetReviewed returns the Reviewed field if non-nil, zero value otherwise. - -### GetReviewedOk - -`func (o *PickAPICommentUpdatableCommentFields) GetReviewedOk() (*bool, bool)` - -GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReviewed - -`func (o *PickAPICommentUpdatableCommentFields) SetReviewed(v bool)` - -SetReviewed sets Reviewed field to given value. - -### HasReviewed - -`func (o *PickAPICommentUpdatableCommentFields) HasReviewed() bool` - -HasReviewed returns a boolean if a field has been set. - -### GetExternalId - -`func (o *PickAPICommentUpdatableCommentFields) GetExternalId() string` - -GetExternalId returns the ExternalId field if non-nil, zero value otherwise. - -### GetExternalIdOk - -`func (o *PickAPICommentUpdatableCommentFields) GetExternalIdOk() (*string, bool)` - -GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExternalId - -`func (o *PickAPICommentUpdatableCommentFields) SetExternalId(v string)` - -SetExternalId sets ExternalId field to given value. - -### HasExternalId - -`func (o *PickAPICommentUpdatableCommentFields) HasExternalId() bool` - -HasExternalId returns a boolean if a field has been set. - -### GetExternalParentId - -`func (o *PickAPICommentUpdatableCommentFields) GetExternalParentId() string` - -GetExternalParentId returns the ExternalParentId field if non-nil, zero value otherwise. - -### GetExternalParentIdOk - -`func (o *PickAPICommentUpdatableCommentFields) GetExternalParentIdOk() (*string, bool)` - -GetExternalParentIdOk returns a tuple with the ExternalParentId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExternalParentId - -`func (o *PickAPICommentUpdatableCommentFields) SetExternalParentId(v string)` - -SetExternalParentId sets ExternalParentId field to given value. - -### HasExternalParentId - -`func (o *PickAPICommentUpdatableCommentFields) HasExternalParentId() bool` - -HasExternalParentId returns a boolean if a field has been set. - -### GetAvatarSrc - -`func (o *PickAPICommentUpdatableCommentFields) GetAvatarSrc() string` - -GetAvatarSrc returns the AvatarSrc field if non-nil, zero value otherwise. - -### GetAvatarSrcOk - -`func (o *PickAPICommentUpdatableCommentFields) GetAvatarSrcOk() (*string, bool)` - -GetAvatarSrcOk returns a tuple with the AvatarSrc field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAvatarSrc - -`func (o *PickAPICommentUpdatableCommentFields) SetAvatarSrc(v string)` - -SetAvatarSrc sets AvatarSrc field to given value. - -### HasAvatarSrc - -`func (o *PickAPICommentUpdatableCommentFields) HasAvatarSrc() bool` - -HasAvatarSrc returns a boolean if a field has been set. - -### GetIsSpam - -`func (o *PickAPICommentUpdatableCommentFields) GetIsSpam() bool` - -GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. - -### GetIsSpamOk - -`func (o *PickAPICommentUpdatableCommentFields) GetIsSpamOk() (*bool, bool)` - -GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsSpam - -`func (o *PickAPICommentUpdatableCommentFields) SetIsSpam(v bool)` - -SetIsSpam sets IsSpam field to given value. - -### HasIsSpam - -`func (o *PickAPICommentUpdatableCommentFields) HasIsSpam() bool` - -HasIsSpam returns a boolean if a field has been set. - -### GetApproved - -`func (o *PickAPICommentUpdatableCommentFields) GetApproved() bool` - -GetApproved returns the Approved field if non-nil, zero value otherwise. - -### GetApprovedOk - -`func (o *PickAPICommentUpdatableCommentFields) GetApprovedOk() (*bool, bool)` - -GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetApproved - -`func (o *PickAPICommentUpdatableCommentFields) SetApproved(v bool)` - -SetApproved sets Approved field to given value. - - -### GetIsDeleted - -`func (o *PickAPICommentUpdatableCommentFields) GetIsDeleted() bool` - -GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. - -### GetIsDeletedOk - -`func (o *PickAPICommentUpdatableCommentFields) GetIsDeletedOk() (*bool, bool)` - -GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsDeleted - -`func (o *PickAPICommentUpdatableCommentFields) SetIsDeleted(v bool)` - -SetIsDeleted sets IsDeleted field to given value. - -### HasIsDeleted - -`func (o *PickAPICommentUpdatableCommentFields) HasIsDeleted() bool` - -HasIsDeleted returns a boolean if a field has been set. - -### GetIsDeletedUser - -`func (o *PickAPICommentUpdatableCommentFields) GetIsDeletedUser() bool` - -GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. - -### GetIsDeletedUserOk - -`func (o *PickAPICommentUpdatableCommentFields) GetIsDeletedUserOk() (*bool, bool)` - -GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsDeletedUser - -`func (o *PickAPICommentUpdatableCommentFields) SetIsDeletedUser(v bool)` - -SetIsDeletedUser sets IsDeletedUser field to given value. - -### HasIsDeletedUser - -`func (o *PickAPICommentUpdatableCommentFields) HasIsDeletedUser() bool` - -HasIsDeletedUser returns a boolean if a field has been set. - -### GetIsByAdmin - -`func (o *PickAPICommentUpdatableCommentFields) GetIsByAdmin() bool` - -GetIsByAdmin returns the IsByAdmin field if non-nil, zero value otherwise. - -### GetIsByAdminOk - -`func (o *PickAPICommentUpdatableCommentFields) GetIsByAdminOk() (*bool, bool)` - -GetIsByAdminOk returns a tuple with the IsByAdmin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsByAdmin - -`func (o *PickAPICommentUpdatableCommentFields) SetIsByAdmin(v bool)` - -SetIsByAdmin sets IsByAdmin field to given value. - -### HasIsByAdmin - -`func (o *PickAPICommentUpdatableCommentFields) HasIsByAdmin() bool` - -HasIsByAdmin returns a boolean if a field has been set. - -### GetIsByModerator - -`func (o *PickAPICommentUpdatableCommentFields) GetIsByModerator() bool` - -GetIsByModerator returns the IsByModerator field if non-nil, zero value otherwise. - -### GetIsByModeratorOk - -`func (o *PickAPICommentUpdatableCommentFields) GetIsByModeratorOk() (*bool, bool)` - -GetIsByModeratorOk returns a tuple with the IsByModerator field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsByModerator - -`func (o *PickAPICommentUpdatableCommentFields) SetIsByModerator(v bool)` - -SetIsByModerator sets IsByModerator field to given value. - -### HasIsByModerator - -`func (o *PickAPICommentUpdatableCommentFields) HasIsByModerator() bool` - -HasIsByModerator returns a boolean if a field has been set. - -### GetIsPinned - -`func (o *PickAPICommentUpdatableCommentFields) GetIsPinned() bool` - -GetIsPinned returns the IsPinned field if non-nil, zero value otherwise. - -### GetIsPinnedOk - -`func (o *PickAPICommentUpdatableCommentFields) GetIsPinnedOk() (*bool, bool)` - -GetIsPinnedOk returns a tuple with the IsPinned field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsPinned - -`func (o *PickAPICommentUpdatableCommentFields) SetIsPinned(v bool)` - -SetIsPinned sets IsPinned field to given value. - -### HasIsPinned - -`func (o *PickAPICommentUpdatableCommentFields) HasIsPinned() bool` - -HasIsPinned returns a boolean if a field has been set. - -### GetIsLocked - -`func (o *PickAPICommentUpdatableCommentFields) GetIsLocked() bool` - -GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. - -### GetIsLockedOk - -`func (o *PickAPICommentUpdatableCommentFields) GetIsLockedOk() (*bool, bool)` - -GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsLocked - -`func (o *PickAPICommentUpdatableCommentFields) SetIsLocked(v bool)` - -SetIsLocked sets IsLocked field to given value. - -### HasIsLocked - -`func (o *PickAPICommentUpdatableCommentFields) HasIsLocked() bool` - -HasIsLocked returns a boolean if a field has been set. - -### GetFlagCount - -`func (o *PickAPICommentUpdatableCommentFields) GetFlagCount() int32` - -GetFlagCount returns the FlagCount field if non-nil, zero value otherwise. - -### GetFlagCountOk - -`func (o *PickAPICommentUpdatableCommentFields) GetFlagCountOk() (*int32, bool)` - -GetFlagCountOk returns a tuple with the FlagCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFlagCount - -`func (o *PickAPICommentUpdatableCommentFields) SetFlagCount(v int32)` - -SetFlagCount sets FlagCount field to given value. - -### HasFlagCount - -`func (o *PickAPICommentUpdatableCommentFields) HasFlagCount() bool` - -HasFlagCount returns a boolean if a field has been set. - -### GetDisplayLabel - -`func (o *PickAPICommentUpdatableCommentFields) GetDisplayLabel() string` - -GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. - -### GetDisplayLabelOk - -`func (o *PickAPICommentUpdatableCommentFields) GetDisplayLabelOk() (*string, bool)` - -GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayLabel - -`func (o *PickAPICommentUpdatableCommentFields) SetDisplayLabel(v string)` - -SetDisplayLabel sets DisplayLabel field to given value. - -### HasDisplayLabel - -`func (o *PickAPICommentUpdatableCommentFields) HasDisplayLabel() bool` - -HasDisplayLabel returns a boolean if a field has been set. - -### GetMeta - -`func (o *PickAPICommentUpdatableCommentFields) GetMeta() PickFCommentAPICommentFieldsKeysMeta` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *PickAPICommentUpdatableCommentFields) GetMetaOk() (*PickFCommentAPICommentFieldsKeysMeta, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *PickAPICommentUpdatableCommentFields) SetMeta(v PickFCommentAPICommentFieldsKeysMeta)` - -SetMeta sets Meta field to given value. - -### HasMeta - -`func (o *PickAPICommentUpdatableCommentFields) HasMeta() bool` - -HasMeta returns a boolean if a field has been set. - -### GetModerationGroupIds - -`func (o *PickAPICommentUpdatableCommentFields) GetModerationGroupIds() []string` - -GetModerationGroupIds returns the ModerationGroupIds field if non-nil, zero value otherwise. - -### GetModerationGroupIdsOk - -`func (o *PickAPICommentUpdatableCommentFields) GetModerationGroupIdsOk() (*[]string, bool)` - -GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModerationGroupIds - -`func (o *PickAPICommentUpdatableCommentFields) SetModerationGroupIds(v []string)` - -SetModerationGroupIds sets ModerationGroupIds field to given value. - -### HasModerationGroupIds - -`func (o *PickAPICommentUpdatableCommentFields) HasModerationGroupIds() bool` - -HasModerationGroupIds returns a boolean if a field has been set. - -### GetFeedbackIds - -`func (o *PickAPICommentUpdatableCommentFields) GetFeedbackIds() []string` - -GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. - -### GetFeedbackIdsOk - -`func (o *PickAPICommentUpdatableCommentFields) GetFeedbackIdsOk() (*[]string, bool)` - -GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFeedbackIds - -`func (o *PickAPICommentUpdatableCommentFields) SetFeedbackIds(v []string)` - -SetFeedbackIds sets FeedbackIds field to given value. - -### HasFeedbackIds - -`func (o *PickAPICommentUpdatableCommentFields) HasFeedbackIds() bool` - -HasFeedbackIds returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/PickFCommentAPICommentFieldsKeysMeta.md b/client/docs/PickFCommentAPICommentFieldsKeysMeta.md deleted file mode 100644 index 3bbf7cd..0000000 --- a/client/docs/PickFCommentAPICommentFieldsKeysMeta.md +++ /dev/null @@ -1,82 +0,0 @@ -# PickFCommentAPICommentFieldsKeysMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**WpUserId** | Pointer to **string** | | [optional] -**WpPostId** | Pointer to **string** | | [optional] - -## Methods - -### NewPickFCommentAPICommentFieldsKeysMeta - -`func NewPickFCommentAPICommentFieldsKeysMeta() *PickFCommentAPICommentFieldsKeysMeta` - -NewPickFCommentAPICommentFieldsKeysMeta instantiates a new PickFCommentAPICommentFieldsKeysMeta 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 - -### NewPickFCommentAPICommentFieldsKeysMetaWithDefaults - -`func NewPickFCommentAPICommentFieldsKeysMetaWithDefaults() *PickFCommentAPICommentFieldsKeysMeta` - -NewPickFCommentAPICommentFieldsKeysMetaWithDefaults instantiates a new PickFCommentAPICommentFieldsKeysMeta 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 - -### GetWpUserId - -`func (o *PickFCommentAPICommentFieldsKeysMeta) GetWpUserId() string` - -GetWpUserId returns the WpUserId field if non-nil, zero value otherwise. - -### GetWpUserIdOk - -`func (o *PickFCommentAPICommentFieldsKeysMeta) GetWpUserIdOk() (*string, bool)` - -GetWpUserIdOk returns a tuple with the WpUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWpUserId - -`func (o *PickFCommentAPICommentFieldsKeysMeta) SetWpUserId(v string)` - -SetWpUserId sets WpUserId field to given value. - -### HasWpUserId - -`func (o *PickFCommentAPICommentFieldsKeysMeta) HasWpUserId() bool` - -HasWpUserId returns a boolean if a field has been set. - -### GetWpPostId - -`func (o *PickFCommentAPICommentFieldsKeysMeta) GetWpPostId() string` - -GetWpPostId returns the WpPostId field if non-nil, zero value otherwise. - -### GetWpPostIdOk - -`func (o *PickFCommentAPICommentFieldsKeysMeta) GetWpPostIdOk() (*string, bool)` - -GetWpPostIdOk returns a tuple with the WpPostId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWpPostId - -`func (o *PickFCommentAPICommentFieldsKeysMeta) SetWpPostId(v string)` - -SetWpPostId sets WpPostId field to given value. - -### HasWpPostId - -`func (o *PickFCommentAPICommentFieldsKeysMeta) HasWpPostId() bool` - -HasWpPostId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/PinComment200Response.md b/client/docs/PinComment200Response.md index f6757bb..f4cdf7c 100644 --- a/client/docs/PinComment200Response.md +++ b/client/docs/PinComment200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CommentPositions** | [**map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewPinComment200Response -`func NewPinComment200Response(commentPositions map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue, status ImportedAPIStatusFAILED, reason string, code string, ) *PinComment200Response` +`func NewPinComment200Response(commentPositions map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue, status APIStatus, reason string, code string, ) *PinComment200Response` NewPinComment200Response instantiates a new PinComment200Response object This constructor will assign default values to properties that have it defined, @@ -55,20 +55,20 @@ SetCommentPositions sets CommentPositions field to given value. ### GetStatus -`func (o *PinComment200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *PinComment200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PinComment200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *PinComment200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PinComment200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *PinComment200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/PubSubComment.md b/client/docs/PubSubComment.md index 21ad968..2c975d1 100644 --- a/client/docs/PubSubComment.md +++ b/client/docs/PubSubComment.md @@ -4,55 +4,55 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Date** | **string** | | **Id** | **string** | | **TenantId** | **string** | | +**UserId** | Pointer to **NullableString** | | [optional] **UrlId** | **string** | | -**Url** | **string** | | -**PageTitle** | Pointer to **string** | | [optional] -**UserId** | Pointer to **string** | | [optional] -**AnonUserId** | Pointer to **string** | | [optional] **CommenterName** | **string** | | -**CommenterLink** | Pointer to **string** | | [optional] -**Comment** | **string** | | +**CommenterLink** | Pointer to **NullableString** | | [optional] **CommentHTML** | **string** | | -**ParentId** | Pointer to **string** | | [optional] -**Votes** | Pointer to **int32** | | [optional] -**VotesUp** | Pointer to **int32** | | [optional] -**VotesDown** | Pointer to **int32** | | [optional] -**ExpireAt** | Pointer to **time.Time** | | [optional] +**Comment** | **string** | | +**ParentId** | Pointer to **NullableString** | | [optional] +**Votes** | Pointer to **NullableInt32** | | [optional] +**VotesUp** | Pointer to **NullableInt32** | | [optional] +**VotesDown** | Pointer to **NullableInt32** | | [optional] **Verified** | **bool** | | -**Reviewed** | Pointer to **bool** | | [optional] -**AvatarSrc** | Pointer to **string** | | [optional] -**IsSpam** | Pointer to **bool** | | [optional] +**AvatarSrc** | Pointer to **NullableString** | | [optional] **HasImages** | Pointer to **bool** | | [optional] **HasLinks** | Pointer to **bool** | | [optional] -**HasCode** | Pointer to **bool** | | [optional] -**Approved** | **bool** | | -**Locale** | **string** | | -**IsDeleted** | Pointer to **bool** | | [optional] -**IsDeletedUser** | Pointer to **bool** | | [optional] -**IsBannedUser** | Pointer to **bool** | | [optional] **IsByAdmin** | Pointer to **bool** | | [optional] **IsByModerator** | Pointer to **bool** | | [optional] -**IsPinned** | Pointer to **bool** | | [optional] -**IsLocked** | Pointer to **bool** | | [optional] -**FlagCount** | Pointer to **int32** | | [optional] -**Rating** | Pointer to **float64** | | [optional] -**DisplayLabel** | Pointer to **string** | | [optional] +**IsPinned** | Pointer to **NullableBool** | | [optional] +**IsLocked** | Pointer to **NullableBool** | | [optional] +**DisplayLabel** | Pointer to **NullableString** | | [optional] +**Rating** | Pointer to **NullableFloat64** | | [optional] **Badges** | Pointer to [**[]CommentUserBadgeInfo**](CommentUserBadgeInfo.md) | | [optional] -**Domain** | Pointer to **string** | | [optional] +**ViewCount** | Pointer to **NullableInt64** | | [optional] +**IsDeleted** | Pointer to **bool** | | [optional] +**IsDeletedUser** | Pointer to **bool** | | [optional] +**IsSpam** | Pointer to **bool** | | [optional] +**AnonUserId** | Pointer to **NullableString** | | [optional] **FeedbackIds** | Pointer to **[]string** | | [optional] +**FlagCount** | Pointer to **NullableInt32** | | [optional] +**Domain** | Pointer to **NullableString** | | [optional] +**Url** | **string** | | +**PageTitle** | Pointer to **NullableString** | | [optional] +**ExpireAt** | Pointer to **NullableTime** | | [optional] +**Reviewed** | Pointer to **bool** | | [optional] +**HasCode** | Pointer to **bool** | | [optional] +**Approved** | **bool** | | +**Locale** | **NullableString** | | +**IsBannedUser** | Pointer to **bool** | | [optional] **GroupIds** | Pointer to **[]string** | | [optional] -**ViewCount** | Pointer to **int64** | | [optional] **IsLive** | Pointer to **bool** | | [optional] **Hidden** | Pointer to **bool** | | [optional] +**Date** | **string** | | ## Methods ### NewPubSubComment -`func NewPubSubComment(date string, id string, tenantId string, urlId string, url string, commenterName string, comment string, commentHTML string, verified bool, approved bool, locale string, ) *PubSubComment` +`func NewPubSubComment(id string, tenantId string, urlId string, commenterName string, commentHTML string, comment string, verified bool, url string, approved bool, locale NullableString, date string, ) *PubSubComment` NewPubSubComment instantiates a new PubSubComment object This constructor will assign default values to properties that have it defined, @@ -67,26 +67,6 @@ NewPubSubCommentWithDefaults instantiates a new PubSubComment 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 -### GetDate - -`func (o *PubSubComment) GetDate() string` - -GetDate returns the Date field if non-nil, zero value otherwise. - -### GetDateOk - -`func (o *PubSubComment) GetDateOk() (*string, bool)` - -GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDate - -`func (o *PubSubComment) SetDate(v string)` - -SetDate sets Date field to given value. - - ### GetId `func (o *PubSubComment) GetId() string` @@ -127,71 +107,6 @@ and a boolean to check if the value has been set. SetTenantId sets TenantId field to given value. -### GetUrlId - -`func (o *PubSubComment) GetUrlId() string` - -GetUrlId returns the UrlId field if non-nil, zero value otherwise. - -### GetUrlIdOk - -`func (o *PubSubComment) GetUrlIdOk() (*string, bool)` - -GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrlId - -`func (o *PubSubComment) SetUrlId(v string)` - -SetUrlId sets UrlId field to given value. - - -### GetUrl - -`func (o *PubSubComment) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *PubSubComment) 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 *PubSubComment) SetUrl(v string)` - -SetUrl sets Url field to given value. - - -### GetPageTitle - -`func (o *PubSubComment) GetPageTitle() string` - -GetPageTitle returns the PageTitle field if non-nil, zero value otherwise. - -### GetPageTitleOk - -`func (o *PubSubComment) GetPageTitleOk() (*string, bool)` - -GetPageTitleOk returns a tuple with the PageTitle field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageTitle - -`func (o *PubSubComment) SetPageTitle(v string)` - -SetPageTitle sets PageTitle field to given value. - -### HasPageTitle - -`func (o *PubSubComment) HasPageTitle() bool` - -HasPageTitle returns a boolean if a field has been set. - ### GetUserId `func (o *PubSubComment) GetUserId() string` @@ -217,30 +132,35 @@ SetUserId sets UserId field to given value. HasUserId returns a boolean if a field has been set. -### GetAnonUserId +### SetUserIdNil -`func (o *PubSubComment) GetAnonUserId() string` +`func (o *PubSubComment) SetUserIdNil(b bool)` -GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. + SetUserIdNil sets the value for UserId to be an explicit nil -### GetAnonUserIdOk +### UnsetUserId +`func (o *PubSubComment) UnsetUserId()` -`func (o *PubSubComment) GetAnonUserIdOk() (*string, bool)` +UnsetUserId ensures that no value is present for UserId, not even an explicit nil +### GetUrlId -GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *PubSubComment) GetUrlId() string` -### SetAnonUserId +GetUrlId returns the UrlId field if non-nil, zero value otherwise. -`func (o *PubSubComment) SetAnonUserId(v string)` +### GetUrlIdOk -SetAnonUserId sets AnonUserId field to given value. +`func (o *PubSubComment) GetUrlIdOk() (*string, bool)` -### HasAnonUserId +GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *PubSubComment) HasAnonUserId() bool` +### SetUrlId + +`func (o *PubSubComment) SetUrlId(v string)` + +SetUrlId sets UrlId field to given value. -HasAnonUserId returns a boolean if a field has been set. ### GetCommenterName @@ -287,26 +207,16 @@ SetCommenterLink sets CommenterLink field to given value. HasCommenterLink returns a boolean if a field has been set. -### GetComment - -`func (o *PubSubComment) GetComment() string` - -GetComment returns the Comment field if non-nil, zero value otherwise. - -### GetCommentOk - -`func (o *PubSubComment) GetCommentOk() (*string, bool)` - -GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComment +### SetCommenterLinkNil -`func (o *PubSubComment) SetComment(v string)` +`func (o *PubSubComment) SetCommenterLinkNil(b bool)` -SetComment sets Comment field to given value. + SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil +### UnsetCommenterLink +`func (o *PubSubComment) UnsetCommenterLink()` +UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil ### GetCommentHTML `func (o *PubSubComment) GetCommentHTML() string` @@ -327,6 +237,26 @@ and a boolean to check if the value has been set. SetCommentHTML sets CommentHTML field to given value. +### GetComment + +`func (o *PubSubComment) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *PubSubComment) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *PubSubComment) SetComment(v string)` + +SetComment sets Comment field to given value. + + ### GetParentId `func (o *PubSubComment) GetParentId() string` @@ -352,6 +282,16 @@ SetParentId sets ParentId field to given value. HasParentId returns a boolean if a field has been set. +### SetParentIdNil + +`func (o *PubSubComment) SetParentIdNil(b bool)` + + SetParentIdNil sets the value for ParentId to be an explicit nil + +### UnsetParentId +`func (o *PubSubComment) UnsetParentId()` + +UnsetParentId ensures that no value is present for ParentId, not even an explicit nil ### GetVotes `func (o *PubSubComment) GetVotes() int32` @@ -377,6 +317,16 @@ SetVotes sets Votes field to given value. HasVotes returns a boolean if a field has been set. +### SetVotesNil + +`func (o *PubSubComment) SetVotesNil(b bool)` + + SetVotesNil sets the value for Votes to be an explicit nil + +### UnsetVotes +`func (o *PubSubComment) UnsetVotes()` + +UnsetVotes ensures that no value is present for Votes, not even an explicit nil ### GetVotesUp `func (o *PubSubComment) GetVotesUp() int32` @@ -402,6 +352,16 @@ SetVotesUp sets VotesUp field to given value. HasVotesUp returns a boolean if a field has been set. +### SetVotesUpNil + +`func (o *PubSubComment) SetVotesUpNil(b bool)` + + SetVotesUpNil sets the value for VotesUp to be an explicit nil + +### UnsetVotesUp +`func (o *PubSubComment) UnsetVotesUp()` + +UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil ### GetVotesDown `func (o *PubSubComment) GetVotesDown() int32` @@ -427,31 +387,16 @@ SetVotesDown sets VotesDown field to given value. HasVotesDown returns a boolean if a field has been set. -### GetExpireAt - -`func (o *PubSubComment) GetExpireAt() time.Time` - -GetExpireAt returns the ExpireAt field if non-nil, zero value otherwise. - -### GetExpireAtOk - -`func (o *PubSubComment) GetExpireAtOk() (*time.Time, bool)` - -GetExpireAtOk returns a tuple with the ExpireAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpireAt - -`func (o *PubSubComment) SetExpireAt(v time.Time)` - -SetExpireAt sets ExpireAt field to given value. +### SetVotesDownNil -### HasExpireAt +`func (o *PubSubComment) SetVotesDownNil(b bool)` -`func (o *PubSubComment) HasExpireAt() bool` + SetVotesDownNil sets the value for VotesDown to be an explicit nil -HasExpireAt returns a boolean if a field has been set. +### UnsetVotesDown +`func (o *PubSubComment) UnsetVotesDown()` +UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil ### GetVerified `func (o *PubSubComment) GetVerified() bool` @@ -472,31 +417,6 @@ and a boolean to check if the value has been set. SetVerified sets Verified field to given value. -### GetReviewed - -`func (o *PubSubComment) GetReviewed() bool` - -GetReviewed returns the Reviewed field if non-nil, zero value otherwise. - -### GetReviewedOk - -`func (o *PubSubComment) GetReviewedOk() (*bool, bool)` - -GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReviewed - -`func (o *PubSubComment) SetReviewed(v bool)` - -SetReviewed sets Reviewed field to given value. - -### HasReviewed - -`func (o *PubSubComment) HasReviewed() bool` - -HasReviewed returns a boolean if a field has been set. - ### GetAvatarSrc `func (o *PubSubComment) GetAvatarSrc() string` @@ -522,31 +442,16 @@ SetAvatarSrc sets AvatarSrc field to given value. HasAvatarSrc returns a boolean if a field has been set. -### GetIsSpam - -`func (o *PubSubComment) GetIsSpam() bool` - -GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. - -### GetIsSpamOk - -`func (o *PubSubComment) GetIsSpamOk() (*bool, bool)` - -GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsSpam - -`func (o *PubSubComment) SetIsSpam(v bool)` +### SetAvatarSrcNil -SetIsSpam sets IsSpam field to given value. - -### HasIsSpam +`func (o *PubSubComment) SetAvatarSrcNil(b bool)` -`func (o *PubSubComment) HasIsSpam() bool` + SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil -HasIsSpam returns a boolean if a field has been set. +### UnsetAvatarSrc +`func (o *PubSubComment) UnsetAvatarSrc()` +UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil ### GetHasImages `func (o *PubSubComment) GetHasImages() bool` @@ -597,71 +502,266 @@ SetHasLinks sets HasLinks field to given value. HasHasLinks returns a boolean if a field has been set. -### GetHasCode +### GetIsByAdmin -`func (o *PubSubComment) GetHasCode() bool` +`func (o *PubSubComment) GetIsByAdmin() bool` -GetHasCode returns the HasCode field if non-nil, zero value otherwise. +GetIsByAdmin returns the IsByAdmin field if non-nil, zero value otherwise. -### GetHasCodeOk +### GetIsByAdminOk -`func (o *PubSubComment) GetHasCodeOk() (*bool, bool)` +`func (o *PubSubComment) GetIsByAdminOk() (*bool, bool)` -GetHasCodeOk returns a tuple with the HasCode field if it's non-nil, zero value otherwise +GetIsByAdminOk returns a tuple with the IsByAdmin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHasCode +### SetIsByAdmin -`func (o *PubSubComment) SetHasCode(v bool)` +`func (o *PubSubComment) SetIsByAdmin(v bool)` -SetHasCode sets HasCode field to given value. +SetIsByAdmin sets IsByAdmin field to given value. -### HasHasCode +### HasIsByAdmin -`func (o *PubSubComment) HasHasCode() bool` +`func (o *PubSubComment) HasIsByAdmin() bool` -HasHasCode returns a boolean if a field has been set. +HasIsByAdmin returns a boolean if a field has been set. -### GetApproved +### GetIsByModerator -`func (o *PubSubComment) GetApproved() bool` +`func (o *PubSubComment) GetIsByModerator() bool` -GetApproved returns the Approved field if non-nil, zero value otherwise. +GetIsByModerator returns the IsByModerator field if non-nil, zero value otherwise. -### GetApprovedOk +### GetIsByModeratorOk -`func (o *PubSubComment) GetApprovedOk() (*bool, bool)` +`func (o *PubSubComment) GetIsByModeratorOk() (*bool, bool)` -GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +GetIsByModeratorOk returns a tuple with the IsByModerator field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetApproved +### SetIsByModerator -`func (o *PubSubComment) SetApproved(v bool)` +`func (o *PubSubComment) SetIsByModerator(v bool)` -SetApproved sets Approved field to given value. +SetIsByModerator sets IsByModerator field to given value. +### HasIsByModerator -### GetLocale +`func (o *PubSubComment) HasIsByModerator() bool` -`func (o *PubSubComment) GetLocale() string` +HasIsByModerator returns a boolean if a field has been set. -GetLocale returns the Locale field if non-nil, zero value otherwise. +### GetIsPinned -### GetLocaleOk +`func (o *PubSubComment) GetIsPinned() bool` -`func (o *PubSubComment) GetLocaleOk() (*string, bool)` +GetIsPinned returns the IsPinned field if non-nil, zero value otherwise. -GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise +### GetIsPinnedOk + +`func (o *PubSubComment) GetIsPinnedOk() (*bool, bool)` + +GetIsPinnedOk returns a tuple with the IsPinned field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetLocale +### SetIsPinned -`func (o *PubSubComment) SetLocale(v string)` +`func (o *PubSubComment) SetIsPinned(v bool)` -SetLocale sets Locale field to given value. +SetIsPinned sets IsPinned field to given value. + +### HasIsPinned + +`func (o *PubSubComment) HasIsPinned() bool` + +HasIsPinned returns a boolean if a field has been set. + +### SetIsPinnedNil + +`func (o *PubSubComment) SetIsPinnedNil(b bool)` + + SetIsPinnedNil sets the value for IsPinned to be an explicit nil + +### UnsetIsPinned +`func (o *PubSubComment) UnsetIsPinned()` + +UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +### GetIsLocked + +`func (o *PubSubComment) GetIsLocked() bool` + +GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. + +### GetIsLockedOk + +`func (o *PubSubComment) GetIsLockedOk() (*bool, bool)` + +GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLocked + +`func (o *PubSubComment) SetIsLocked(v bool)` + +SetIsLocked sets IsLocked field to given value. + +### HasIsLocked + +`func (o *PubSubComment) HasIsLocked() bool` + +HasIsLocked returns a boolean if a field has been set. + +### SetIsLockedNil + +`func (o *PubSubComment) SetIsLockedNil(b bool)` + + SetIsLockedNil sets the value for IsLocked to be an explicit nil + +### UnsetIsLocked +`func (o *PubSubComment) UnsetIsLocked()` + +UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +### GetDisplayLabel + +`func (o *PubSubComment) GetDisplayLabel() string` + +GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. + +### GetDisplayLabelOk + +`func (o *PubSubComment) GetDisplayLabelOk() (*string, bool)` + +GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayLabel + +`func (o *PubSubComment) SetDisplayLabel(v string)` + +SetDisplayLabel sets DisplayLabel field to given value. + +### HasDisplayLabel + +`func (o *PubSubComment) HasDisplayLabel() bool` + +HasDisplayLabel returns a boolean if a field has been set. + +### SetDisplayLabelNil + +`func (o *PubSubComment) SetDisplayLabelNil(b bool)` + + SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil + +### UnsetDisplayLabel +`func (o *PubSubComment) UnsetDisplayLabel()` + +UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +### GetRating + +`func (o *PubSubComment) GetRating() float64` + +GetRating returns the Rating field if non-nil, zero value otherwise. + +### GetRatingOk + +`func (o *PubSubComment) GetRatingOk() (*float64, bool)` + +GetRatingOk returns a tuple with the Rating field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRating + +`func (o *PubSubComment) SetRating(v float64)` + +SetRating sets Rating field to given value. + +### HasRating + +`func (o *PubSubComment) HasRating() bool` + +HasRating returns a boolean if a field has been set. + +### SetRatingNil + +`func (o *PubSubComment) SetRatingNil(b bool)` + + SetRatingNil sets the value for Rating to be an explicit nil + +### UnsetRating +`func (o *PubSubComment) UnsetRating()` + +UnsetRating ensures that no value is present for Rating, not even an explicit nil +### GetBadges + +`func (o *PubSubComment) GetBadges() []CommentUserBadgeInfo` + +GetBadges returns the Badges field if non-nil, zero value otherwise. + +### GetBadgesOk + +`func (o *PubSubComment) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` + +GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBadges + +`func (o *PubSubComment) SetBadges(v []CommentUserBadgeInfo)` + +SetBadges sets Badges field to given value. + +### HasBadges + +`func (o *PubSubComment) HasBadges() bool` + +HasBadges returns a boolean if a field has been set. + +### SetBadgesNil + +`func (o *PubSubComment) SetBadgesNil(b bool)` + + SetBadgesNil sets the value for Badges to be an explicit nil + +### UnsetBadges +`func (o *PubSubComment) UnsetBadges()` + +UnsetBadges ensures that no value is present for Badges, not even an explicit nil +### GetViewCount + +`func (o *PubSubComment) GetViewCount() int64` + +GetViewCount returns the ViewCount field if non-nil, zero value otherwise. + +### GetViewCountOk + +`func (o *PubSubComment) GetViewCountOk() (*int64, bool)` + +GetViewCountOk returns a tuple with the ViewCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetViewCount + +`func (o *PubSubComment) SetViewCount(v int64)` + +SetViewCount sets ViewCount field to given value. + +### HasViewCount + +`func (o *PubSubComment) HasViewCount() bool` + +HasViewCount returns a boolean if a field has been set. + +### SetViewCountNil + +`func (o *PubSubComment) SetViewCountNil(b bool)` + SetViewCountNil sets the value for ViewCount to be an explicit nil +### UnsetViewCount +`func (o *PubSubComment) UnsetViewCount()` + +UnsetViewCount ensures that no value is present for ViewCount, not even an explicit nil ### GetIsDeleted `func (o *PubSubComment) GetIsDeleted() bool` @@ -712,280 +812,375 @@ SetIsDeletedUser sets IsDeletedUser field to given value. HasIsDeletedUser returns a boolean if a field has been set. -### GetIsBannedUser +### GetIsSpam -`func (o *PubSubComment) GetIsBannedUser() bool` +`func (o *PubSubComment) GetIsSpam() bool` -GetIsBannedUser returns the IsBannedUser field if non-nil, zero value otherwise. +GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. -### GetIsBannedUserOk +### GetIsSpamOk -`func (o *PubSubComment) GetIsBannedUserOk() (*bool, bool)` +`func (o *PubSubComment) GetIsSpamOk() (*bool, bool)` -GetIsBannedUserOk returns a tuple with the IsBannedUser field if it's non-nil, zero value otherwise +GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsBannedUser +### SetIsSpam -`func (o *PubSubComment) SetIsBannedUser(v bool)` +`func (o *PubSubComment) SetIsSpam(v bool)` -SetIsBannedUser sets IsBannedUser field to given value. +SetIsSpam sets IsSpam field to given value. -### HasIsBannedUser +### HasIsSpam -`func (o *PubSubComment) HasIsBannedUser() bool` +`func (o *PubSubComment) HasIsSpam() bool` -HasIsBannedUser returns a boolean if a field has been set. +HasIsSpam returns a boolean if a field has been set. -### GetIsByAdmin +### GetAnonUserId -`func (o *PubSubComment) GetIsByAdmin() bool` +`func (o *PubSubComment) GetAnonUserId() string` -GetIsByAdmin returns the IsByAdmin field if non-nil, zero value otherwise. +GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. -### GetIsByAdminOk +### GetAnonUserIdOk -`func (o *PubSubComment) GetIsByAdminOk() (*bool, bool)` +`func (o *PubSubComment) GetAnonUserIdOk() (*string, bool)` -GetIsByAdminOk returns a tuple with the IsByAdmin field if it's non-nil, zero value otherwise +GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsByAdmin +### SetAnonUserId -`func (o *PubSubComment) SetIsByAdmin(v bool)` +`func (o *PubSubComment) SetAnonUserId(v string)` + +SetAnonUserId sets AnonUserId field to given value. + +### HasAnonUserId + +`func (o *PubSubComment) HasAnonUserId() bool` + +HasAnonUserId returns a boolean if a field has been set. + +### SetAnonUserIdNil + +`func (o *PubSubComment) SetAnonUserIdNil(b bool)` + + SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil + +### UnsetAnonUserId +`func (o *PubSubComment) UnsetAnonUserId()` + +UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +### GetFeedbackIds + +`func (o *PubSubComment) GetFeedbackIds() []string` + +GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. + +### GetFeedbackIdsOk + +`func (o *PubSubComment) GetFeedbackIdsOk() (*[]string, bool)` + +GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeedbackIds + +`func (o *PubSubComment) SetFeedbackIds(v []string)` + +SetFeedbackIds sets FeedbackIds field to given value. + +### HasFeedbackIds + +`func (o *PubSubComment) HasFeedbackIds() bool` + +HasFeedbackIds returns a boolean if a field has been set. + +### GetFlagCount + +`func (o *PubSubComment) GetFlagCount() int32` + +GetFlagCount returns the FlagCount field if non-nil, zero value otherwise. + +### GetFlagCountOk + +`func (o *PubSubComment) GetFlagCountOk() (*int32, bool)` + +GetFlagCountOk returns a tuple with the FlagCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlagCount + +`func (o *PubSubComment) SetFlagCount(v int32)` + +SetFlagCount sets FlagCount field to given value. + +### HasFlagCount + +`func (o *PubSubComment) HasFlagCount() bool` + +HasFlagCount returns a boolean if a field has been set. + +### SetFlagCountNil + +`func (o *PubSubComment) SetFlagCountNil(b bool)` + + SetFlagCountNil sets the value for FlagCount to be an explicit nil + +### UnsetFlagCount +`func (o *PubSubComment) UnsetFlagCount()` + +UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil +### GetDomain + +`func (o *PubSubComment) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *PubSubComment) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -SetIsByAdmin sets IsByAdmin field to given value. +### SetDomain -### HasIsByAdmin +`func (o *PubSubComment) SetDomain(v string)` -`func (o *PubSubComment) HasIsByAdmin() bool` +SetDomain sets Domain field to given value. -HasIsByAdmin returns a boolean if a field has been set. +### HasDomain -### GetIsByModerator +`func (o *PubSubComment) HasDomain() bool` -`func (o *PubSubComment) GetIsByModerator() bool` +HasDomain returns a boolean if a field has been set. -GetIsByModerator returns the IsByModerator field if non-nil, zero value otherwise. +### SetDomainNil -### GetIsByModeratorOk +`func (o *PubSubComment) SetDomainNil(b bool)` -`func (o *PubSubComment) GetIsByModeratorOk() (*bool, bool)` + SetDomainNil sets the value for Domain to be an explicit nil -GetIsByModeratorOk returns a tuple with the IsByModerator field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### UnsetDomain +`func (o *PubSubComment) UnsetDomain()` -### SetIsByModerator +UnsetDomain ensures that no value is present for Domain, not even an explicit nil +### GetUrl -`func (o *PubSubComment) SetIsByModerator(v bool)` +`func (o *PubSubComment) GetUrl() string` -SetIsByModerator sets IsByModerator field to given value. +GetUrl returns the Url field if non-nil, zero value otherwise. -### HasIsByModerator +### GetUrlOk -`func (o *PubSubComment) HasIsByModerator() bool` +`func (o *PubSubComment) GetUrlOk() (*string, bool)` -HasIsByModerator returns a boolean if a field has been set. +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. -### GetIsPinned +### SetUrl -`func (o *PubSubComment) GetIsPinned() bool` +`func (o *PubSubComment) SetUrl(v string)` -GetIsPinned returns the IsPinned field if non-nil, zero value otherwise. +SetUrl sets Url field to given value. -### GetIsPinnedOk -`func (o *PubSubComment) GetIsPinnedOk() (*bool, bool)` +### GetPageTitle -GetIsPinnedOk returns a tuple with the IsPinned field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *PubSubComment) GetPageTitle() string` -### SetIsPinned +GetPageTitle returns the PageTitle field if non-nil, zero value otherwise. -`func (o *PubSubComment) SetIsPinned(v bool)` +### GetPageTitleOk -SetIsPinned sets IsPinned field to given value. +`func (o *PubSubComment) GetPageTitleOk() (*string, bool)` -### HasIsPinned +GetPageTitleOk returns a tuple with the PageTitle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *PubSubComment) HasIsPinned() bool` +### SetPageTitle -HasIsPinned returns a boolean if a field has been set. +`func (o *PubSubComment) SetPageTitle(v string)` -### GetIsLocked +SetPageTitle sets PageTitle field to given value. -`func (o *PubSubComment) GetIsLocked() bool` +### HasPageTitle -GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. +`func (o *PubSubComment) HasPageTitle() bool` -### GetIsLockedOk +HasPageTitle returns a boolean if a field has been set. -`func (o *PubSubComment) GetIsLockedOk() (*bool, bool)` +### SetPageTitleNil -GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *PubSubComment) SetPageTitleNil(b bool)` -### SetIsLocked + SetPageTitleNil sets the value for PageTitle to be an explicit nil -`func (o *PubSubComment) SetIsLocked(v bool)` +### UnsetPageTitle +`func (o *PubSubComment) UnsetPageTitle()` -SetIsLocked sets IsLocked field to given value. +UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +### GetExpireAt -### HasIsLocked +`func (o *PubSubComment) GetExpireAt() time.Time` -`func (o *PubSubComment) HasIsLocked() bool` +GetExpireAt returns the ExpireAt field if non-nil, zero value otherwise. -HasIsLocked returns a boolean if a field has been set. +### GetExpireAtOk -### GetFlagCount +`func (o *PubSubComment) GetExpireAtOk() (*time.Time, bool)` -`func (o *PubSubComment) GetFlagCount() int32` +GetExpireAtOk returns a tuple with the ExpireAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -GetFlagCount returns the FlagCount field if non-nil, zero value otherwise. +### SetExpireAt -### GetFlagCountOk +`func (o *PubSubComment) SetExpireAt(v time.Time)` -`func (o *PubSubComment) GetFlagCountOk() (*int32, bool)` +SetExpireAt sets ExpireAt field to given value. -GetFlagCountOk returns a tuple with the FlagCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### HasExpireAt -### SetFlagCount +`func (o *PubSubComment) HasExpireAt() bool` -`func (o *PubSubComment) SetFlagCount(v int32)` +HasExpireAt returns a boolean if a field has been set. -SetFlagCount sets FlagCount field to given value. +### SetExpireAtNil -### HasFlagCount +`func (o *PubSubComment) SetExpireAtNil(b bool)` -`func (o *PubSubComment) HasFlagCount() bool` + SetExpireAtNil sets the value for ExpireAt to be an explicit nil -HasFlagCount returns a boolean if a field has been set. +### UnsetExpireAt +`func (o *PubSubComment) UnsetExpireAt()` -### GetRating +UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +### GetReviewed -`func (o *PubSubComment) GetRating() float64` +`func (o *PubSubComment) GetReviewed() bool` -GetRating returns the Rating field if non-nil, zero value otherwise. +GetReviewed returns the Reviewed field if non-nil, zero value otherwise. -### GetRatingOk +### GetReviewedOk -`func (o *PubSubComment) GetRatingOk() (*float64, bool)` +`func (o *PubSubComment) GetReviewedOk() (*bool, bool)` -GetRatingOk returns a tuple with the Rating field if it's non-nil, zero value otherwise +GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetRating +### SetReviewed -`func (o *PubSubComment) SetRating(v float64)` +`func (o *PubSubComment) SetReviewed(v bool)` -SetRating sets Rating field to given value. +SetReviewed sets Reviewed field to given value. -### HasRating +### HasReviewed -`func (o *PubSubComment) HasRating() bool` +`func (o *PubSubComment) HasReviewed() bool` -HasRating returns a boolean if a field has been set. +HasReviewed returns a boolean if a field has been set. -### GetDisplayLabel +### GetHasCode -`func (o *PubSubComment) GetDisplayLabel() string` +`func (o *PubSubComment) GetHasCode() bool` -GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. +GetHasCode returns the HasCode field if non-nil, zero value otherwise. -### GetDisplayLabelOk +### GetHasCodeOk -`func (o *PubSubComment) GetDisplayLabelOk() (*string, bool)` +`func (o *PubSubComment) GetHasCodeOk() (*bool, bool)` -GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise +GetHasCodeOk returns a tuple with the HasCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisplayLabel +### SetHasCode -`func (o *PubSubComment) SetDisplayLabel(v string)` +`func (o *PubSubComment) SetHasCode(v bool)` -SetDisplayLabel sets DisplayLabel field to given value. +SetHasCode sets HasCode field to given value. -### HasDisplayLabel +### HasHasCode -`func (o *PubSubComment) HasDisplayLabel() bool` +`func (o *PubSubComment) HasHasCode() bool` -HasDisplayLabel returns a boolean if a field has been set. +HasHasCode returns a boolean if a field has been set. -### GetBadges +### GetApproved -`func (o *PubSubComment) GetBadges() []CommentUserBadgeInfo` +`func (o *PubSubComment) GetApproved() bool` -GetBadges returns the Badges field if non-nil, zero value otherwise. +GetApproved returns the Approved field if non-nil, zero value otherwise. -### GetBadgesOk +### GetApprovedOk -`func (o *PubSubComment) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` +`func (o *PubSubComment) GetApprovedOk() (*bool, bool)` -GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetBadges +### SetApproved -`func (o *PubSubComment) SetBadges(v []CommentUserBadgeInfo)` +`func (o *PubSubComment) SetApproved(v bool)` -SetBadges sets Badges field to given value. +SetApproved sets Approved field to given value. -### HasBadges -`func (o *PubSubComment) HasBadges() bool` +### GetLocale -HasBadges returns a boolean if a field has been set. +`func (o *PubSubComment) GetLocale() string` -### GetDomain +GetLocale returns the Locale field if non-nil, zero value otherwise. -`func (o *PubSubComment) GetDomain() string` +### GetLocaleOk -GetDomain returns the Domain field if non-nil, zero value otherwise. +`func (o *PubSubComment) GetLocaleOk() (*string, bool)` -### GetDomainOk +GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *PubSubComment) GetDomainOk() (*string, bool)` +### SetLocale -GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *PubSubComment) SetLocale(v string)` -### SetDomain +SetLocale sets Locale field to given value. -`func (o *PubSubComment) SetDomain(v string)` -SetDomain sets Domain field to given value. +### SetLocaleNil -### HasDomain +`func (o *PubSubComment) SetLocaleNil(b bool)` -`func (o *PubSubComment) HasDomain() bool` + SetLocaleNil sets the value for Locale to be an explicit nil -HasDomain returns a boolean if a field has been set. +### UnsetLocale +`func (o *PubSubComment) UnsetLocale()` -### GetFeedbackIds +UnsetLocale ensures that no value is present for Locale, not even an explicit nil +### GetIsBannedUser -`func (o *PubSubComment) GetFeedbackIds() []string` +`func (o *PubSubComment) GetIsBannedUser() bool` -GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. +GetIsBannedUser returns the IsBannedUser field if non-nil, zero value otherwise. -### GetFeedbackIdsOk +### GetIsBannedUserOk -`func (o *PubSubComment) GetFeedbackIdsOk() (*[]string, bool)` +`func (o *PubSubComment) GetIsBannedUserOk() (*bool, bool)` -GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise +GetIsBannedUserOk returns a tuple with the IsBannedUser field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFeedbackIds +### SetIsBannedUser -`func (o *PubSubComment) SetFeedbackIds(v []string)` +`func (o *PubSubComment) SetIsBannedUser(v bool)` -SetFeedbackIds sets FeedbackIds field to given value. +SetIsBannedUser sets IsBannedUser field to given value. -### HasFeedbackIds +### HasIsBannedUser -`func (o *PubSubComment) HasFeedbackIds() bool` +`func (o *PubSubComment) HasIsBannedUser() bool` -HasFeedbackIds returns a boolean if a field has been set. +HasIsBannedUser returns a boolean if a field has been set. ### GetGroupIds @@ -1012,31 +1207,16 @@ SetGroupIds sets GroupIds field to given value. HasGroupIds returns a boolean if a field has been set. -### GetViewCount - -`func (o *PubSubComment) GetViewCount() int64` - -GetViewCount returns the ViewCount field if non-nil, zero value otherwise. - -### GetViewCountOk - -`func (o *PubSubComment) GetViewCountOk() (*int64, bool)` - -GetViewCountOk returns a tuple with the ViewCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetViewCount - -`func (o *PubSubComment) SetViewCount(v int64)` - -SetViewCount sets ViewCount field to given value. +### SetGroupIdsNil -### HasViewCount +`func (o *PubSubComment) SetGroupIdsNil(b bool)` -`func (o *PubSubComment) HasViewCount() bool` + SetGroupIdsNil sets the value for GroupIds to be an explicit nil -HasViewCount returns a boolean if a field has been set. +### UnsetGroupIds +`func (o *PubSubComment) UnsetGroupIds()` +UnsetGroupIds ensures that no value is present for GroupIds, not even an explicit nil ### GetIsLive `func (o *PubSubComment) GetIsLive() bool` @@ -1087,6 +1267,26 @@ SetHidden sets Hidden field to given value. HasHidden returns a boolean if a field has been set. +### GetDate + +`func (o *PubSubComment) GetDate() string` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *PubSubComment) GetDateOk() (*string, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *PubSubComment) SetDate(v string)` + +SetDate sets Date field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.md b/client/docs/PubSubCommentBase.md similarity index 52% rename from client/docs/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.md rename to client/docs/PubSubCommentBase.md index d58f9a1..7c822e3 100644 --- a/client/docs/PickOmitFCommentDatePublicCommentPubSubFieldsKeys.md +++ b/client/docs/PubSubCommentBase.md @@ -1,1050 +1,1219 @@ -# PickOmitFCommentDatePublicCommentPubSubFieldsKeys +# PubSubCommentBase ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Date** | **interface{}** | | **Id** | **string** | | **TenantId** | **string** | | +**UserId** | Pointer to **NullableString** | | [optional] **UrlId** | **string** | | -**Url** | **string** | | -**PageTitle** | Pointer to **string** | | [optional] -**UserId** | Pointer to **string** | | [optional] -**AnonUserId** | Pointer to **string** | | [optional] **CommenterName** | **string** | | -**CommenterLink** | Pointer to **string** | | [optional] -**Comment** | **string** | | +**CommenterLink** | Pointer to **NullableString** | | [optional] **CommentHTML** | **string** | | -**ParentId** | Pointer to **string** | | [optional] -**Votes** | Pointer to **int32** | | [optional] -**VotesUp** | Pointer to **int32** | | [optional] -**VotesDown** | Pointer to **int32** | | [optional] -**ExpireAt** | Pointer to **time.Time** | | [optional] +**Comment** | **string** | | +**ParentId** | Pointer to **NullableString** | | [optional] +**Votes** | Pointer to **NullableInt32** | | [optional] +**VotesUp** | Pointer to **NullableInt32** | | [optional] +**VotesDown** | Pointer to **NullableInt32** | | [optional] **Verified** | **bool** | | -**Reviewed** | Pointer to **bool** | | [optional] -**AvatarSrc** | Pointer to **string** | | [optional] -**IsSpam** | Pointer to **bool** | | [optional] +**AvatarSrc** | Pointer to **NullableString** | | [optional] **HasImages** | Pointer to **bool** | | [optional] **HasLinks** | Pointer to **bool** | | [optional] -**HasCode** | Pointer to **bool** | | [optional] -**Approved** | **bool** | | -**Locale** | **string** | | -**IsDeleted** | Pointer to **bool** | | [optional] -**IsDeletedUser** | Pointer to **bool** | | [optional] -**IsBannedUser** | Pointer to **bool** | | [optional] **IsByAdmin** | Pointer to **bool** | | [optional] **IsByModerator** | Pointer to **bool** | | [optional] -**IsPinned** | Pointer to **bool** | | [optional] -**IsLocked** | Pointer to **bool** | | [optional] -**FlagCount** | Pointer to **int32** | | [optional] -**Rating** | Pointer to **float64** | | [optional] -**DisplayLabel** | Pointer to **string** | | [optional] +**IsPinned** | Pointer to **NullableBool** | | [optional] +**IsLocked** | Pointer to **NullableBool** | | [optional] +**DisplayLabel** | Pointer to **NullableString** | | [optional] +**Rating** | Pointer to **NullableFloat64** | | [optional] **Badges** | Pointer to [**[]CommentUserBadgeInfo**](CommentUserBadgeInfo.md) | | [optional] -**Domain** | Pointer to **string** | | [optional] +**ViewCount** | Pointer to **NullableInt64** | | [optional] +**IsDeleted** | Pointer to **bool** | | [optional] +**IsDeletedUser** | Pointer to **bool** | | [optional] +**IsSpam** | Pointer to **bool** | | [optional] +**AnonUserId** | Pointer to **NullableString** | | [optional] **FeedbackIds** | Pointer to **[]string** | | [optional] +**FlagCount** | Pointer to **NullableInt32** | | [optional] +**Domain** | Pointer to **NullableString** | | [optional] +**Url** | **string** | | +**PageTitle** | Pointer to **NullableString** | | [optional] +**ExpireAt** | Pointer to **NullableTime** | | [optional] +**Reviewed** | Pointer to **bool** | | [optional] +**HasCode** | Pointer to **bool** | | [optional] +**Approved** | **bool** | | +**Locale** | **NullableString** | | +**IsBannedUser** | Pointer to **bool** | | [optional] **GroupIds** | Pointer to **[]string** | | [optional] -**ViewCount** | Pointer to **int64** | | [optional] ## Methods -### NewPickOmitFCommentDatePublicCommentPubSubFieldsKeys +### NewPubSubCommentBase -`func NewPickOmitFCommentDatePublicCommentPubSubFieldsKeys(date interface{}, id string, tenantId string, urlId string, url string, commenterName string, comment string, commentHTML string, verified bool, approved bool, locale string, ) *PickOmitFCommentDatePublicCommentPubSubFieldsKeys` +`func NewPubSubCommentBase(id string, tenantId string, urlId string, commenterName string, commentHTML string, comment string, verified bool, url string, approved bool, locale NullableString, ) *PubSubCommentBase` -NewPickOmitFCommentDatePublicCommentPubSubFieldsKeys instantiates a new PickOmitFCommentDatePublicCommentPubSubFieldsKeys object +NewPubSubCommentBase instantiates a new PubSubCommentBase 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 -### NewPickOmitFCommentDatePublicCommentPubSubFieldsKeysWithDefaults +### NewPubSubCommentBaseWithDefaults -`func NewPickOmitFCommentDatePublicCommentPubSubFieldsKeysWithDefaults() *PickOmitFCommentDatePublicCommentPubSubFieldsKeys` +`func NewPubSubCommentBaseWithDefaults() *PubSubCommentBase` -NewPickOmitFCommentDatePublicCommentPubSubFieldsKeysWithDefaults instantiates a new PickOmitFCommentDatePublicCommentPubSubFieldsKeys object +NewPubSubCommentBaseWithDefaults instantiates a new PubSubCommentBase 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 -### GetDate - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDate() interface{}` - -GetDate returns the Date field if non-nil, zero value otherwise. - -### GetDateOk - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDateOk() (*interface{}, bool)` - -GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDate - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetDate(v interface{})` - -SetDate sets Date field to given value. - - -### SetDateNil - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetDateNil(b bool)` - - SetDateNil sets the value for Date to be an explicit nil - -### UnsetDate -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) UnsetDate()` - -UnsetDate ensures that no value is present for Date, not even an explicit nil ### GetId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetId() string` +`func (o *PubSubCommentBase) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIdOk() (*string, bool)` +`func (o *PubSubCommentBase) GetIdOk() (*string, 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 *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetId(v string)` +`func (o *PubSubCommentBase) SetId(v string)` SetId sets Id field to given value. ### GetTenantId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetTenantId() string` +`func (o *PubSubCommentBase) GetTenantId() string` GetTenantId returns the TenantId field if non-nil, zero value otherwise. ### GetTenantIdOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetTenantIdOk() (*string, bool)` +`func (o *PubSubCommentBase) GetTenantIdOk() (*string, bool)` GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenantId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetTenantId(v string)` +`func (o *PubSubCommentBase) SetTenantId(v string)` SetTenantId sets TenantId field to given value. -### GetUrlId - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetUrlId() string` - -GetUrlId returns the UrlId field if non-nil, zero value otherwise. - -### GetUrlIdOk - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetUrlIdOk() (*string, bool)` - -GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrlId - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetUrlId(v string)` - -SetUrlId sets UrlId field to given value. - - -### GetUrl - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) 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 *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetUrl(v string)` - -SetUrl sets Url field to given value. - - -### GetPageTitle - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetPageTitle() string` - -GetPageTitle returns the PageTitle field if non-nil, zero value otherwise. - -### GetPageTitleOk - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetPageTitleOk() (*string, bool)` - -GetPageTitleOk returns a tuple with the PageTitle field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageTitle - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetPageTitle(v string)` - -SetPageTitle sets PageTitle field to given value. - -### HasPageTitle - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasPageTitle() bool` - -HasPageTitle returns a boolean if a field has been set. - ### GetUserId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetUserId() string` +`func (o *PubSubCommentBase) GetUserId() string` GetUserId returns the UserId field if non-nil, zero value otherwise. ### GetUserIdOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetUserIdOk() (*string, bool)` +`func (o *PubSubCommentBase) GetUserIdOk() (*string, 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 *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetUserId(v string)` +`func (o *PubSubCommentBase) SetUserId(v string)` SetUserId sets UserId field to given value. ### HasUserId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasUserId() bool` +`func (o *PubSubCommentBase) HasUserId() bool` HasUserId returns a boolean if a field has been set. -### GetAnonUserId +### SetUserIdNil -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetAnonUserId() string` +`func (o *PubSubCommentBase) SetUserIdNil(b bool)` -GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. + SetUserIdNil sets the value for UserId to be an explicit nil -### GetAnonUserIdOk +### UnsetUserId +`func (o *PubSubCommentBase) UnsetUserId()` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetAnonUserIdOk() (*string, bool)` +UnsetUserId ensures that no value is present for UserId, not even an explicit nil +### GetUrlId -GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *PubSubCommentBase) GetUrlId() string` -### SetAnonUserId +GetUrlId returns the UrlId field if non-nil, zero value otherwise. -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetAnonUserId(v string)` +### GetUrlIdOk -SetAnonUserId sets AnonUserId field to given value. +`func (o *PubSubCommentBase) GetUrlIdOk() (*string, bool)` -### HasAnonUserId +GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasAnonUserId() bool` +`func (o *PubSubCommentBase) SetUrlId(v string)` + +SetUrlId sets UrlId field to given value. -HasAnonUserId returns a boolean if a field has been set. ### GetCommenterName -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommenterName() string` +`func (o *PubSubCommentBase) GetCommenterName() string` GetCommenterName returns the CommenterName field if non-nil, zero value otherwise. ### GetCommenterNameOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommenterNameOk() (*string, bool)` +`func (o *PubSubCommentBase) GetCommenterNameOk() (*string, bool)` GetCommenterNameOk returns a tuple with the CommenterName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCommenterName -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetCommenterName(v string)` +`func (o *PubSubCommentBase) SetCommenterName(v string)` SetCommenterName sets CommenterName field to given value. ### GetCommenterLink -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommenterLink() string` +`func (o *PubSubCommentBase) GetCommenterLink() string` GetCommenterLink returns the CommenterLink field if non-nil, zero value otherwise. ### GetCommenterLinkOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommenterLinkOk() (*string, bool)` +`func (o *PubSubCommentBase) GetCommenterLinkOk() (*string, bool)` GetCommenterLinkOk returns a tuple with the CommenterLink field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCommenterLink -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetCommenterLink(v string)` +`func (o *PubSubCommentBase) SetCommenterLink(v string)` SetCommenterLink sets CommenterLink field to given value. ### HasCommenterLink -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasCommenterLink() bool` +`func (o *PubSubCommentBase) HasCommenterLink() bool` HasCommenterLink returns a boolean if a field has been set. -### GetComment +### SetCommenterLinkNil -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetComment() string` +`func (o *PubSubCommentBase) SetCommenterLinkNil(b bool)` -GetComment returns the Comment field if non-nil, zero value otherwise. + SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil -### GetCommentOk +### UnsetCommenterLink +`func (o *PubSubCommentBase) UnsetCommenterLink()` + +UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +### GetCommentHTML -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommentOk() (*string, bool)` +`func (o *PubSubCommentBase) GetCommentHTML() string` -GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. + +### GetCommentHTMLOk + +`func (o *PubSubCommentBase) GetCommentHTMLOk() (*string, bool)` + +GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetComment +### SetCommentHTML -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetComment(v string)` +`func (o *PubSubCommentBase) SetCommentHTML(v string)` -SetComment sets Comment field to given value. +SetCommentHTML sets CommentHTML field to given value. -### GetCommentHTML +### GetComment -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommentHTML() string` +`func (o *PubSubCommentBase) GetComment() string` -GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. +GetComment returns the Comment field if non-nil, zero value otherwise. -### GetCommentHTMLOk +### GetCommentOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommentHTMLOk() (*string, bool)` +`func (o *PubSubCommentBase) GetCommentOk() (*string, bool)` -GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCommentHTML +### SetComment -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetCommentHTML(v string)` +`func (o *PubSubCommentBase) SetComment(v string)` -SetCommentHTML sets CommentHTML field to given value. +SetComment sets Comment field to given value. ### GetParentId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetParentId() string` +`func (o *PubSubCommentBase) GetParentId() string` GetParentId returns the ParentId field if non-nil, zero value otherwise. ### GetParentIdOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetParentIdOk() (*string, bool)` +`func (o *PubSubCommentBase) GetParentIdOk() (*string, bool)` GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetParentId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetParentId(v string)` +`func (o *PubSubCommentBase) SetParentId(v string)` SetParentId sets ParentId field to given value. ### HasParentId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasParentId() bool` +`func (o *PubSubCommentBase) HasParentId() bool` HasParentId returns a boolean if a field has been set. +### SetParentIdNil + +`func (o *PubSubCommentBase) SetParentIdNil(b bool)` + + SetParentIdNil sets the value for ParentId to be an explicit nil + +### UnsetParentId +`func (o *PubSubCommentBase) UnsetParentId()` + +UnsetParentId ensures that no value is present for ParentId, not even an explicit nil ### GetVotes -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotes() int32` +`func (o *PubSubCommentBase) GetVotes() int32` GetVotes returns the Votes field if non-nil, zero value otherwise. ### GetVotesOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotesOk() (*int32, bool)` +`func (o *PubSubCommentBase) GetVotesOk() (*int32, bool)` GetVotesOk returns a tuple with the Votes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVotes -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetVotes(v int32)` +`func (o *PubSubCommentBase) SetVotes(v int32)` SetVotes sets Votes field to given value. ### HasVotes -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasVotes() bool` +`func (o *PubSubCommentBase) HasVotes() bool` HasVotes returns a boolean if a field has been set. +### SetVotesNil + +`func (o *PubSubCommentBase) SetVotesNil(b bool)` + + SetVotesNil sets the value for Votes to be an explicit nil + +### UnsetVotes +`func (o *PubSubCommentBase) UnsetVotes()` + +UnsetVotes ensures that no value is present for Votes, not even an explicit nil ### GetVotesUp -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotesUp() int32` +`func (o *PubSubCommentBase) GetVotesUp() int32` GetVotesUp returns the VotesUp field if non-nil, zero value otherwise. ### GetVotesUpOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotesUpOk() (*int32, bool)` +`func (o *PubSubCommentBase) GetVotesUpOk() (*int32, bool)` GetVotesUpOk returns a tuple with the VotesUp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVotesUp -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetVotesUp(v int32)` +`func (o *PubSubCommentBase) SetVotesUp(v int32)` SetVotesUp sets VotesUp field to given value. ### HasVotesUp -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasVotesUp() bool` +`func (o *PubSubCommentBase) HasVotesUp() bool` HasVotesUp returns a boolean if a field has been set. +### SetVotesUpNil + +`func (o *PubSubCommentBase) SetVotesUpNil(b bool)` + + SetVotesUpNil sets the value for VotesUp to be an explicit nil + +### UnsetVotesUp +`func (o *PubSubCommentBase) UnsetVotesUp()` + +UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil ### GetVotesDown -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotesDown() int32` +`func (o *PubSubCommentBase) GetVotesDown() int32` GetVotesDown returns the VotesDown field if non-nil, zero value otherwise. ### GetVotesDownOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotesDownOk() (*int32, bool)` +`func (o *PubSubCommentBase) GetVotesDownOk() (*int32, bool)` GetVotesDownOk returns a tuple with the VotesDown field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVotesDown -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetVotesDown(v int32)` +`func (o *PubSubCommentBase) SetVotesDown(v int32)` SetVotesDown sets VotesDown field to given value. ### HasVotesDown -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasVotesDown() bool` +`func (o *PubSubCommentBase) HasVotesDown() bool` HasVotesDown returns a boolean if a field has been set. -### GetExpireAt - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetExpireAt() time.Time` - -GetExpireAt returns the ExpireAt field if non-nil, zero value otherwise. - -### GetExpireAtOk - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetExpireAtOk() (*time.Time, bool)` - -GetExpireAtOk returns a tuple with the ExpireAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpireAt - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetExpireAt(v time.Time)` - -SetExpireAt sets ExpireAt field to given value. +### SetVotesDownNil -### HasExpireAt +`func (o *PubSubCommentBase) SetVotesDownNil(b bool)` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasExpireAt() bool` + SetVotesDownNil sets the value for VotesDown to be an explicit nil -HasExpireAt returns a boolean if a field has been set. +### UnsetVotesDown +`func (o *PubSubCommentBase) UnsetVotesDown()` +UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil ### GetVerified -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVerified() bool` +`func (o *PubSubCommentBase) GetVerified() bool` GetVerified returns the Verified field if non-nil, zero value otherwise. ### GetVerifiedOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVerifiedOk() (*bool, bool)` +`func (o *PubSubCommentBase) GetVerifiedOk() (*bool, bool)` GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVerified -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetVerified(v bool)` +`func (o *PubSubCommentBase) SetVerified(v bool)` SetVerified sets Verified field to given value. -### GetReviewed - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetReviewed() bool` - -GetReviewed returns the Reviewed field if non-nil, zero value otherwise. - -### GetReviewedOk - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetReviewedOk() (*bool, bool)` - -GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReviewed - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetReviewed(v bool)` - -SetReviewed sets Reviewed field to given value. - -### HasReviewed - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasReviewed() bool` - -HasReviewed returns a boolean if a field has been set. - ### GetAvatarSrc -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetAvatarSrc() string` +`func (o *PubSubCommentBase) GetAvatarSrc() string` GetAvatarSrc returns the AvatarSrc field if non-nil, zero value otherwise. ### GetAvatarSrcOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetAvatarSrcOk() (*string, bool)` +`func (o *PubSubCommentBase) GetAvatarSrcOk() (*string, bool)` GetAvatarSrcOk returns a tuple with the AvatarSrc field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAvatarSrc -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetAvatarSrc(v string)` +`func (o *PubSubCommentBase) SetAvatarSrc(v string)` SetAvatarSrc sets AvatarSrc field to given value. ### HasAvatarSrc -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasAvatarSrc() bool` +`func (o *PubSubCommentBase) HasAvatarSrc() bool` HasAvatarSrc returns a boolean if a field has been set. -### GetIsSpam - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsSpam() bool` - -GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. - -### GetIsSpamOk - -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsSpamOk() (*bool, bool)` - -GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsSpam +### SetAvatarSrcNil -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsSpam(v bool)` - -SetIsSpam sets IsSpam field to given value. - -### HasIsSpam +`func (o *PubSubCommentBase) SetAvatarSrcNil(b bool)` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsSpam() bool` + SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil -HasIsSpam returns a boolean if a field has been set. +### UnsetAvatarSrc +`func (o *PubSubCommentBase) UnsetAvatarSrc()` +UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil ### GetHasImages -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasImages() bool` +`func (o *PubSubCommentBase) GetHasImages() bool` GetHasImages returns the HasImages field if non-nil, zero value otherwise. ### GetHasImagesOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasImagesOk() (*bool, bool)` +`func (o *PubSubCommentBase) GetHasImagesOk() (*bool, bool)` GetHasImagesOk returns a tuple with the HasImages field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetHasImages -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetHasImages(v bool)` +`func (o *PubSubCommentBase) SetHasImages(v bool)` SetHasImages sets HasImages field to given value. ### HasHasImages -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasHasImages() bool` +`func (o *PubSubCommentBase) HasHasImages() bool` HasHasImages returns a boolean if a field has been set. ### GetHasLinks -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasLinks() bool` +`func (o *PubSubCommentBase) GetHasLinks() bool` GetHasLinks returns the HasLinks field if non-nil, zero value otherwise. ### GetHasLinksOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasLinksOk() (*bool, bool)` +`func (o *PubSubCommentBase) GetHasLinksOk() (*bool, bool)` GetHasLinksOk returns a tuple with the HasLinks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetHasLinks -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetHasLinks(v bool)` +`func (o *PubSubCommentBase) SetHasLinks(v bool)` SetHasLinks sets HasLinks field to given value. ### HasHasLinks -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasHasLinks() bool` +`func (o *PubSubCommentBase) HasHasLinks() bool` HasHasLinks returns a boolean if a field has been set. -### GetHasCode +### GetIsByAdmin -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasCode() bool` +`func (o *PubSubCommentBase) GetIsByAdmin() bool` -GetHasCode returns the HasCode field if non-nil, zero value otherwise. +GetIsByAdmin returns the IsByAdmin field if non-nil, zero value otherwise. -### GetHasCodeOk +### GetIsByAdminOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasCodeOk() (*bool, bool)` +`func (o *PubSubCommentBase) GetIsByAdminOk() (*bool, bool)` -GetHasCodeOk returns a tuple with the HasCode field if it's non-nil, zero value otherwise +GetIsByAdminOk returns a tuple with the IsByAdmin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHasCode +### SetIsByAdmin -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetHasCode(v bool)` +`func (o *PubSubCommentBase) SetIsByAdmin(v bool)` -SetHasCode sets HasCode field to given value. +SetIsByAdmin sets IsByAdmin field to given value. -### HasHasCode +### HasIsByAdmin -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasHasCode() bool` +`func (o *PubSubCommentBase) HasIsByAdmin() bool` -HasHasCode returns a boolean if a field has been set. +HasIsByAdmin returns a boolean if a field has been set. -### GetApproved +### GetIsByModerator -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetApproved() bool` +`func (o *PubSubCommentBase) GetIsByModerator() bool` -GetApproved returns the Approved field if non-nil, zero value otherwise. +GetIsByModerator returns the IsByModerator field if non-nil, zero value otherwise. -### GetApprovedOk +### GetIsByModeratorOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetApprovedOk() (*bool, bool)` +`func (o *PubSubCommentBase) GetIsByModeratorOk() (*bool, bool)` -GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +GetIsByModeratorOk returns a tuple with the IsByModerator field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetApproved +### SetIsByModerator -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetApproved(v bool)` +`func (o *PubSubCommentBase) SetIsByModerator(v bool)` -SetApproved sets Approved field to given value. +SetIsByModerator sets IsByModerator field to given value. +### HasIsByModerator -### GetLocale +`func (o *PubSubCommentBase) HasIsByModerator() bool` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetLocale() string` +HasIsByModerator returns a boolean if a field has been set. -GetLocale returns the Locale field if non-nil, zero value otherwise. +### GetIsPinned -### GetLocaleOk +`func (o *PubSubCommentBase) GetIsPinned() bool` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetLocaleOk() (*string, bool)` +GetIsPinned returns the IsPinned field if non-nil, zero value otherwise. -GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +### GetIsPinnedOk -### SetLocale +`func (o *PubSubCommentBase) GetIsPinnedOk() (*bool, bool)` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetLocale(v string)` +GetIsPinnedOk returns a tuple with the IsPinned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -SetLocale sets Locale field to given value. +### SetIsPinned +`func (o *PubSubCommentBase) SetIsPinned(v bool)` -### GetIsDeleted +SetIsPinned sets IsPinned field to given value. -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsDeleted() bool` +### HasIsPinned -GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. +`func (o *PubSubCommentBase) HasIsPinned() bool` -### GetIsDeletedOk +HasIsPinned returns a boolean if a field has been set. -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsDeletedOk() (*bool, bool)` +### SetIsPinnedNil -GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +`func (o *PubSubCommentBase) SetIsPinnedNil(b bool)` -### SetIsDeleted + SetIsPinnedNil sets the value for IsPinned to be an explicit nil -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsDeleted(v bool)` +### UnsetIsPinned +`func (o *PubSubCommentBase) UnsetIsPinned()` -SetIsDeleted sets IsDeleted field to given value. +UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +### GetIsLocked -### HasIsDeleted +`func (o *PubSubCommentBase) GetIsLocked() bool` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsDeleted() bool` +GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. -HasIsDeleted returns a boolean if a field has been set. +### GetIsLockedOk -### GetIsDeletedUser +`func (o *PubSubCommentBase) GetIsLockedOk() (*bool, bool)` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsDeletedUser() bool` +GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. +### SetIsLocked -### GetIsDeletedUserOk +`func (o *PubSubCommentBase) SetIsLocked(v bool)` + +SetIsLocked sets IsLocked field to given value. -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsDeletedUserOk() (*bool, bool)` +### HasIsLocked -GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise +`func (o *PubSubCommentBase) HasIsLocked() bool` + +HasIsLocked returns a boolean if a field has been set. + +### SetIsLockedNil + +`func (o *PubSubCommentBase) SetIsLockedNil(b bool)` + + SetIsLockedNil sets the value for IsLocked to be an explicit nil + +### UnsetIsLocked +`func (o *PubSubCommentBase) UnsetIsLocked()` + +UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +### GetDisplayLabel + +`func (o *PubSubCommentBase) GetDisplayLabel() string` + +GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. + +### GetDisplayLabelOk + +`func (o *PubSubCommentBase) GetDisplayLabelOk() (*string, bool)` + +GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsDeletedUser +### SetDisplayLabel -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsDeletedUser(v bool)` +`func (o *PubSubCommentBase) SetDisplayLabel(v string)` -SetIsDeletedUser sets IsDeletedUser field to given value. +SetDisplayLabel sets DisplayLabel field to given value. -### HasIsDeletedUser +### HasDisplayLabel -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsDeletedUser() bool` +`func (o *PubSubCommentBase) HasDisplayLabel() bool` -HasIsDeletedUser returns a boolean if a field has been set. +HasDisplayLabel returns a boolean if a field has been set. -### GetIsBannedUser +### SetDisplayLabelNil -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsBannedUser() bool` +`func (o *PubSubCommentBase) SetDisplayLabelNil(b bool)` -GetIsBannedUser returns the IsBannedUser field if non-nil, zero value otherwise. + SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil -### GetIsBannedUserOk +### UnsetDisplayLabel +`func (o *PubSubCommentBase) UnsetDisplayLabel()` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsBannedUserOk() (*bool, bool)` +UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +### GetRating -GetIsBannedUserOk returns a tuple with the IsBannedUser field if it's non-nil, zero value otherwise +`func (o *PubSubCommentBase) GetRating() float64` + +GetRating returns the Rating field if non-nil, zero value otherwise. + +### GetRatingOk + +`func (o *PubSubCommentBase) GetRatingOk() (*float64, bool)` + +GetRatingOk returns a tuple with the Rating field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsBannedUser +### SetRating -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsBannedUser(v bool)` +`func (o *PubSubCommentBase) SetRating(v float64)` -SetIsBannedUser sets IsBannedUser field to given value. +SetRating sets Rating field to given value. -### HasIsBannedUser +### HasRating -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsBannedUser() bool` +`func (o *PubSubCommentBase) HasRating() bool` -HasIsBannedUser returns a boolean if a field has been set. +HasRating returns a boolean if a field has been set. -### GetIsByAdmin +### SetRatingNil -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsByAdmin() bool` +`func (o *PubSubCommentBase) SetRatingNil(b bool)` -GetIsByAdmin returns the IsByAdmin field if non-nil, zero value otherwise. + SetRatingNil sets the value for Rating to be an explicit nil -### GetIsByAdminOk +### UnsetRating +`func (o *PubSubCommentBase) UnsetRating()` + +UnsetRating ensures that no value is present for Rating, not even an explicit nil +### GetBadges -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsByAdminOk() (*bool, bool)` +`func (o *PubSubCommentBase) GetBadges() []CommentUserBadgeInfo` -GetIsByAdminOk returns a tuple with the IsByAdmin field if it's non-nil, zero value otherwise +GetBadges returns the Badges field if non-nil, zero value otherwise. + +### GetBadgesOk + +`func (o *PubSubCommentBase) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` + +GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsByAdmin +### SetBadges -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsByAdmin(v bool)` +`func (o *PubSubCommentBase) SetBadges(v []CommentUserBadgeInfo)` -SetIsByAdmin sets IsByAdmin field to given value. +SetBadges sets Badges field to given value. -### HasIsByAdmin +### HasBadges -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsByAdmin() bool` +`func (o *PubSubCommentBase) HasBadges() bool` -HasIsByAdmin returns a boolean if a field has been set. +HasBadges returns a boolean if a field has been set. -### GetIsByModerator +### SetBadgesNil -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsByModerator() bool` +`func (o *PubSubCommentBase) SetBadgesNil(b bool)` -GetIsByModerator returns the IsByModerator field if non-nil, zero value otherwise. + SetBadgesNil sets the value for Badges to be an explicit nil -### GetIsByModeratorOk +### UnsetBadges +`func (o *PubSubCommentBase) UnsetBadges()` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsByModeratorOk() (*bool, bool)` +UnsetBadges ensures that no value is present for Badges, not even an explicit nil +### GetViewCount -GetIsByModeratorOk returns a tuple with the IsByModerator field if it's non-nil, zero value otherwise +`func (o *PubSubCommentBase) GetViewCount() int64` + +GetViewCount returns the ViewCount field if non-nil, zero value otherwise. + +### GetViewCountOk + +`func (o *PubSubCommentBase) GetViewCountOk() (*int64, bool)` + +GetViewCountOk returns a tuple with the ViewCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsByModerator +### SetViewCount -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsByModerator(v bool)` +`func (o *PubSubCommentBase) SetViewCount(v int64)` -SetIsByModerator sets IsByModerator field to given value. +SetViewCount sets ViewCount field to given value. -### HasIsByModerator +### HasViewCount -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsByModerator() bool` +`func (o *PubSubCommentBase) HasViewCount() bool` -HasIsByModerator returns a boolean if a field has been set. +HasViewCount returns a boolean if a field has been set. -### GetIsPinned +### SetViewCountNil -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsPinned() bool` +`func (o *PubSubCommentBase) SetViewCountNil(b bool)` -GetIsPinned returns the IsPinned field if non-nil, zero value otherwise. + SetViewCountNil sets the value for ViewCount to be an explicit nil -### GetIsPinnedOk +### UnsetViewCount +`func (o *PubSubCommentBase) UnsetViewCount()` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsPinnedOk() (*bool, bool)` +UnsetViewCount ensures that no value is present for ViewCount, not even an explicit nil +### GetIsDeleted -GetIsPinnedOk returns a tuple with the IsPinned field if it's non-nil, zero value otherwise +`func (o *PubSubCommentBase) GetIsDeleted() bool` + +GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. + +### GetIsDeletedOk + +`func (o *PubSubCommentBase) GetIsDeletedOk() (*bool, bool)` + +GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsPinned +### SetIsDeleted -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsPinned(v bool)` +`func (o *PubSubCommentBase) SetIsDeleted(v bool)` -SetIsPinned sets IsPinned field to given value. +SetIsDeleted sets IsDeleted field to given value. -### HasIsPinned +### HasIsDeleted -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsPinned() bool` +`func (o *PubSubCommentBase) HasIsDeleted() bool` -HasIsPinned returns a boolean if a field has been set. +HasIsDeleted returns a boolean if a field has been set. -### GetIsLocked +### GetIsDeletedUser -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsLocked() bool` +`func (o *PubSubCommentBase) GetIsDeletedUser() bool` -GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. +GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. -### GetIsLockedOk +### GetIsDeletedUserOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsLockedOk() (*bool, bool)` +`func (o *PubSubCommentBase) GetIsDeletedUserOk() (*bool, bool)` -GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise +GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIsLocked +### SetIsDeletedUser -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsLocked(v bool)` +`func (o *PubSubCommentBase) SetIsDeletedUser(v bool)` -SetIsLocked sets IsLocked field to given value. +SetIsDeletedUser sets IsDeletedUser field to given value. -### HasIsLocked +### HasIsDeletedUser -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsLocked() bool` +`func (o *PubSubCommentBase) HasIsDeletedUser() bool` -HasIsLocked returns a boolean if a field has been set. +HasIsDeletedUser returns a boolean if a field has been set. -### GetFlagCount +### GetIsSpam -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetFlagCount() int32` +`func (o *PubSubCommentBase) GetIsSpam() bool` -GetFlagCount returns the FlagCount field if non-nil, zero value otherwise. +GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. -### GetFlagCountOk +### GetIsSpamOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetFlagCountOk() (*int32, bool)` +`func (o *PubSubCommentBase) GetIsSpamOk() (*bool, bool)` -GetFlagCountOk returns a tuple with the FlagCount field if it's non-nil, zero value otherwise +GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFlagCount +### SetIsSpam -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetFlagCount(v int32)` +`func (o *PubSubCommentBase) SetIsSpam(v bool)` -SetFlagCount sets FlagCount field to given value. +SetIsSpam sets IsSpam field to given value. -### HasFlagCount +### HasIsSpam -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasFlagCount() bool` +`func (o *PubSubCommentBase) HasIsSpam() bool` -HasFlagCount returns a boolean if a field has been set. +HasIsSpam returns a boolean if a field has been set. -### GetRating +### GetAnonUserId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetRating() float64` +`func (o *PubSubCommentBase) GetAnonUserId() string` -GetRating returns the Rating field if non-nil, zero value otherwise. +GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. -### GetRatingOk +### GetAnonUserIdOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetRatingOk() (*float64, bool)` +`func (o *PubSubCommentBase) GetAnonUserIdOk() (*string, bool)` -GetRatingOk returns a tuple with the Rating field if it's non-nil, zero value otherwise +GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetRating +### SetAnonUserId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetRating(v float64)` +`func (o *PubSubCommentBase) SetAnonUserId(v string)` -SetRating sets Rating field to given value. +SetAnonUserId sets AnonUserId field to given value. -### HasRating +### HasAnonUserId -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasRating() bool` +`func (o *PubSubCommentBase) HasAnonUserId() bool` -HasRating returns a boolean if a field has been set. +HasAnonUserId returns a boolean if a field has been set. -### GetDisplayLabel +### SetAnonUserIdNil -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDisplayLabel() string` +`func (o *PubSubCommentBase) SetAnonUserIdNil(b bool)` -GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. + SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil -### GetDisplayLabelOk +### UnsetAnonUserId +`func (o *PubSubCommentBase) UnsetAnonUserId()` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDisplayLabelOk() (*string, bool)` +UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +### GetFeedbackIds -GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise +`func (o *PubSubCommentBase) GetFeedbackIds() []string` + +GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. + +### GetFeedbackIdsOk + +`func (o *PubSubCommentBase) GetFeedbackIdsOk() (*[]string, bool)` + +GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisplayLabel +### SetFeedbackIds -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetDisplayLabel(v string)` +`func (o *PubSubCommentBase) SetFeedbackIds(v []string)` -SetDisplayLabel sets DisplayLabel field to given value. +SetFeedbackIds sets FeedbackIds field to given value. -### HasDisplayLabel +### HasFeedbackIds -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasDisplayLabel() bool` +`func (o *PubSubCommentBase) HasFeedbackIds() bool` -HasDisplayLabel returns a boolean if a field has been set. +HasFeedbackIds returns a boolean if a field has been set. -### GetBadges +### GetFlagCount -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetBadges() []CommentUserBadgeInfo` +`func (o *PubSubCommentBase) GetFlagCount() int32` -GetBadges returns the Badges field if non-nil, zero value otherwise. +GetFlagCount returns the FlagCount field if non-nil, zero value otherwise. -### GetBadgesOk +### GetFlagCountOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` +`func (o *PubSubCommentBase) GetFlagCountOk() (*int32, bool)` -GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise +GetFlagCountOk returns a tuple with the FlagCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetBadges +### SetFlagCount -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetBadges(v []CommentUserBadgeInfo)` +`func (o *PubSubCommentBase) SetFlagCount(v int32)` -SetBadges sets Badges field to given value. +SetFlagCount sets FlagCount field to given value. -### HasBadges +### HasFlagCount -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasBadges() bool` +`func (o *PubSubCommentBase) HasFlagCount() bool` -HasBadges returns a boolean if a field has been set. +HasFlagCount returns a boolean if a field has been set. +### SetFlagCountNil + +`func (o *PubSubCommentBase) SetFlagCountNil(b bool)` + + SetFlagCountNil sets the value for FlagCount to be an explicit nil + +### UnsetFlagCount +`func (o *PubSubCommentBase) UnsetFlagCount()` + +UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil ### GetDomain -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDomain() string` +`func (o *PubSubCommentBase) GetDomain() string` GetDomain returns the Domain field if non-nil, zero value otherwise. ### GetDomainOk -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDomainOk() (*string, bool)` +`func (o *PubSubCommentBase) GetDomainOk() (*string, bool)` GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDomain -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetDomain(v string)` +`func (o *PubSubCommentBase) SetDomain(v string)` SetDomain sets Domain field to given value. ### HasDomain -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasDomain() bool` +`func (o *PubSubCommentBase) HasDomain() bool` HasDomain returns a boolean if a field has been set. -### GetFeedbackIds +### SetDomainNil -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetFeedbackIds() []string` +`func (o *PubSubCommentBase) SetDomainNil(b bool)` -GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. + SetDomainNil sets the value for Domain to be an explicit nil -### GetFeedbackIdsOk +### UnsetDomain +`func (o *PubSubCommentBase) UnsetDomain()` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetFeedbackIdsOk() (*[]string, bool)` +UnsetDomain ensures that no value is present for Domain, not even an explicit nil +### GetUrl -GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise +`func (o *PubSubCommentBase) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *PubSubCommentBase) 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. -### SetFeedbackIds +### SetUrl -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetFeedbackIds(v []string)` +`func (o *PubSubCommentBase) SetUrl(v string)` -SetFeedbackIds sets FeedbackIds field to given value. +SetUrl sets Url field to given value. -### HasFeedbackIds -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasFeedbackIds() bool` +### GetPageTitle -HasFeedbackIds returns a boolean if a field has been set. +`func (o *PubSubCommentBase) GetPageTitle() string` -### GetGroupIds +GetPageTitle returns the PageTitle field if non-nil, zero value otherwise. -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetGroupIds() []string` +### GetPageTitleOk -GetGroupIds returns the GroupIds field if non-nil, zero value otherwise. +`func (o *PubSubCommentBase) GetPageTitleOk() (*string, bool)` -### GetGroupIdsOk +GetPageTitleOk returns a tuple with the PageTitle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetGroupIdsOk() (*[]string, bool)` +### SetPageTitle -GetGroupIdsOk returns a tuple with the GroupIds field if it's non-nil, zero value otherwise +`func (o *PubSubCommentBase) SetPageTitle(v string)` + +SetPageTitle sets PageTitle field to given value. + +### HasPageTitle + +`func (o *PubSubCommentBase) HasPageTitle() bool` + +HasPageTitle returns a boolean if a field has been set. + +### SetPageTitleNil + +`func (o *PubSubCommentBase) SetPageTitleNil(b bool)` + + SetPageTitleNil sets the value for PageTitle to be an explicit nil + +### UnsetPageTitle +`func (o *PubSubCommentBase) UnsetPageTitle()` + +UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +### GetExpireAt + +`func (o *PubSubCommentBase) GetExpireAt() time.Time` + +GetExpireAt returns the ExpireAt field if non-nil, zero value otherwise. + +### GetExpireAtOk + +`func (o *PubSubCommentBase) GetExpireAtOk() (*time.Time, bool)` + +GetExpireAtOk returns a tuple with the ExpireAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetGroupIds +### SetExpireAt -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetGroupIds(v []string)` +`func (o *PubSubCommentBase) SetExpireAt(v time.Time)` -SetGroupIds sets GroupIds field to given value. +SetExpireAt sets ExpireAt field to given value. -### HasGroupIds +### HasExpireAt -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasGroupIds() bool` +`func (o *PubSubCommentBase) HasExpireAt() bool` -HasGroupIds returns a boolean if a field has been set. +HasExpireAt returns a boolean if a field has been set. -### GetViewCount +### SetExpireAtNil -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetViewCount() int64` +`func (o *PubSubCommentBase) SetExpireAtNil(b bool)` -GetViewCount returns the ViewCount field if non-nil, zero value otherwise. + SetExpireAtNil sets the value for ExpireAt to be an explicit nil -### GetViewCountOk +### UnsetExpireAt +`func (o *PubSubCommentBase) UnsetExpireAt()` -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetViewCountOk() (*int64, bool)` +UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +### GetReviewed -GetViewCountOk returns a tuple with the ViewCount field if it's non-nil, zero value otherwise +`func (o *PubSubCommentBase) GetReviewed() bool` + +GetReviewed returns the Reviewed field if non-nil, zero value otherwise. + +### GetReviewedOk + +`func (o *PubSubCommentBase) GetReviewedOk() (*bool, bool)` + +GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetViewCount +### SetReviewed -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetViewCount(v int64)` +`func (o *PubSubCommentBase) SetReviewed(v bool)` -SetViewCount sets ViewCount field to given value. +SetReviewed sets Reviewed field to given value. -### HasViewCount +### HasReviewed -`func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasViewCount() bool` +`func (o *PubSubCommentBase) HasReviewed() bool` -HasViewCount returns a boolean if a field has been set. +HasReviewed returns a boolean if a field has been set. + +### GetHasCode + +`func (o *PubSubCommentBase) GetHasCode() bool` + +GetHasCode returns the HasCode field if non-nil, zero value otherwise. + +### GetHasCodeOk + +`func (o *PubSubCommentBase) GetHasCodeOk() (*bool, bool)` + +GetHasCodeOk returns a tuple with the HasCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasCode + +`func (o *PubSubCommentBase) SetHasCode(v bool)` + +SetHasCode sets HasCode field to given value. + +### HasHasCode + +`func (o *PubSubCommentBase) HasHasCode() bool` + +HasHasCode returns a boolean if a field has been set. + +### GetApproved + +`func (o *PubSubCommentBase) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *PubSubCommentBase) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *PubSubCommentBase) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + + +### GetLocale + +`func (o *PubSubCommentBase) GetLocale() string` + +GetLocale returns the Locale field if non-nil, zero value otherwise. + +### GetLocaleOk + +`func (o *PubSubCommentBase) GetLocaleOk() (*string, bool)` + +GetLocaleOk returns a tuple with the Locale field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocale + +`func (o *PubSubCommentBase) SetLocale(v string)` + +SetLocale sets Locale field to given value. + + +### SetLocaleNil + +`func (o *PubSubCommentBase) SetLocaleNil(b bool)` + + SetLocaleNil sets the value for Locale to be an explicit nil + +### UnsetLocale +`func (o *PubSubCommentBase) UnsetLocale()` + +UnsetLocale ensures that no value is present for Locale, not even an explicit nil +### GetIsBannedUser + +`func (o *PubSubCommentBase) GetIsBannedUser() bool` + +GetIsBannedUser returns the IsBannedUser field if non-nil, zero value otherwise. + +### GetIsBannedUserOk + +`func (o *PubSubCommentBase) GetIsBannedUserOk() (*bool, bool)` + +GetIsBannedUserOk returns a tuple with the IsBannedUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsBannedUser + +`func (o *PubSubCommentBase) SetIsBannedUser(v bool)` + +SetIsBannedUser sets IsBannedUser field to given value. + +### HasIsBannedUser + +`func (o *PubSubCommentBase) HasIsBannedUser() bool` + +HasIsBannedUser returns a boolean if a field has been set. + +### GetGroupIds + +`func (o *PubSubCommentBase) GetGroupIds() []string` + +GetGroupIds returns the GroupIds field if non-nil, zero value otherwise. + +### GetGroupIdsOk + +`func (o *PubSubCommentBase) GetGroupIdsOk() (*[]string, bool)` + +GetGroupIdsOk returns a tuple with the GroupIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupIds + +`func (o *PubSubCommentBase) SetGroupIds(v []string)` + +SetGroupIds sets GroupIds field to given value. + +### HasGroupIds + +`func (o *PubSubCommentBase) HasGroupIds() bool` + +HasGroupIds returns a boolean if a field has been set. + +### SetGroupIdsNil + +`func (o *PubSubCommentBase) SetGroupIdsNil(b bool)` + + SetGroupIdsNil sets the value for GroupIds to be an explicit nil + +### UnsetGroupIds +`func (o *PubSubCommentBase) UnsetGroupIds()` +UnsetGroupIds ensures that no value is present for GroupIds, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/PublicAPIDeleteCommentResponse.md b/client/docs/PublicAPIDeleteCommentResponse.md index e626b83..199aa7b 100644 --- a/client/docs/PublicAPIDeleteCommentResponse.md +++ b/client/docs/PublicAPIDeleteCommentResponse.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Comment** | Pointer to [**PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId**](PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId.md) | | [optional] +**Comment** | Pointer to [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] **HardRemoved** | **bool** | | -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | ## Methods ### NewPublicAPIDeleteCommentResponse -`func NewPublicAPIDeleteCommentResponse(hardRemoved bool, status ImportedAPIStatusSUCCESS, ) *PublicAPIDeleteCommentResponse` +`func NewPublicAPIDeleteCommentResponse(hardRemoved bool, status APIStatus, ) *PublicAPIDeleteCommentResponse` NewPublicAPIDeleteCommentResponse instantiates a new PublicAPIDeleteCommentResponse object This constructor will assign default values to properties that have it defined, @@ -29,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetComment -`func (o *PublicAPIDeleteCommentResponse) GetComment() PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId` +`func (o *PublicAPIDeleteCommentResponse) GetComment() DeletedCommentResultComment` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *PublicAPIDeleteCommentResponse) GetCommentOk() (*PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId, bool)` +`func (o *PublicAPIDeleteCommentResponse) GetCommentOk() (*DeletedCommentResultComment, bool)` GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComment -`func (o *PublicAPIDeleteCommentResponse) SetComment(v PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId)` +`func (o *PublicAPIDeleteCommentResponse) SetComment(v DeletedCommentResultComment)` SetComment sets Comment field to given value. @@ -74,20 +74,20 @@ SetHardRemoved sets HardRemoved field to given value. ### GetStatus -`func (o *PublicAPIDeleteCommentResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *PublicAPIDeleteCommentResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PublicAPIDeleteCommentResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *PublicAPIDeleteCommentResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PublicAPIDeleteCommentResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *PublicAPIDeleteCommentResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/PublicAPIGetCommentTextResponse.md b/client/docs/PublicAPIGetCommentTextResponse.md index 78ed923..c13f3dc 100644 --- a/client/docs/PublicAPIGetCommentTextResponse.md +++ b/client/docs/PublicAPIGetCommentTextResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **CommentText** | **string** | | **SanitizedCommentText** | **string** | | @@ -12,7 +12,7 @@ Name | Type | Description | Notes ### NewPublicAPIGetCommentTextResponse -`func NewPublicAPIGetCommentTextResponse(status ImportedAPIStatusSUCCESS, commentText string, sanitizedCommentText string, ) *PublicAPIGetCommentTextResponse` +`func NewPublicAPIGetCommentTextResponse(status APIStatus, commentText string, sanitizedCommentText string, ) *PublicAPIGetCommentTextResponse` NewPublicAPIGetCommentTextResponse instantiates a new PublicAPIGetCommentTextResponse object This constructor will assign default values to properties that have it defined, @@ -29,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *PublicAPIGetCommentTextResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *PublicAPIGetCommentTextResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PublicAPIGetCommentTextResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *PublicAPIGetCommentTextResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PublicAPIGetCommentTextResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *PublicAPIGetCommentTextResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/PublicAPISetCommentTextResponse.md b/client/docs/PublicAPISetCommentTextResponse.md index 7a22f7d..9dae4fa 100644 --- a/client/docs/PublicAPISetCommentTextResponse.md +++ b/client/docs/PublicAPISetCommentTextResponse.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Comment** | [**PickFCommentApprovedOrCommentHTML**](PickFCommentApprovedOrCommentHTML.md) | | -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | ## Methods ### NewPublicAPISetCommentTextResponse -`func NewPublicAPISetCommentTextResponse(comment PickFCommentApprovedOrCommentHTML, status ImportedAPIStatusSUCCESS, ) *PublicAPISetCommentTextResponse` +`func NewPublicAPISetCommentTextResponse(comment SetCommentTextResult, status APIStatus, ) *PublicAPISetCommentTextResponse` NewPublicAPISetCommentTextResponse instantiates a new PublicAPISetCommentTextResponse object This constructor will assign default values to properties that have it defined, @@ -28,40 +28,40 @@ but it doesn't guarantee that properties required by API are set ### GetComment -`func (o *PublicAPISetCommentTextResponse) GetComment() PickFCommentApprovedOrCommentHTML` +`func (o *PublicAPISetCommentTextResponse) GetComment() SetCommentTextResult` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *PublicAPISetCommentTextResponse) GetCommentOk() (*PickFCommentApprovedOrCommentHTML, bool)` +`func (o *PublicAPISetCommentTextResponse) GetCommentOk() (*SetCommentTextResult, bool)` GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComment -`func (o *PublicAPISetCommentTextResponse) SetComment(v PickFCommentApprovedOrCommentHTML)` +`func (o *PublicAPISetCommentTextResponse) SetComment(v SetCommentTextResult)` SetComment sets Comment field to given value. ### GetStatus -`func (o *PublicAPISetCommentTextResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *PublicAPISetCommentTextResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PublicAPISetCommentTextResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *PublicAPISetCommentTextResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PublicAPISetCommentTextResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *PublicAPISetCommentTextResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/PublicComment.md b/client/docs/PublicComment.md index a51120d..871a39b 100644 --- a/client/docs/PublicComment.md +++ b/client/docs/PublicComment.md @@ -4,34 +4,35 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Date** | **time.Time** | | **Id** | **string** | | -**UserId** | Pointer to **string** | | [optional] -**AnonUserId** | Pointer to **string** | | [optional] +**UserId** | Pointer to **NullableString** | | [optional] **CommenterName** | **string** | | -**CommenterLink** | Pointer to **string** | | [optional] +**CommenterLink** | Pointer to **NullableString** | | [optional] **CommentHTML** | **string** | | -**ParentId** | Pointer to **string** | | [optional] -**Votes** | Pointer to **int32** | | [optional] -**VotesUp** | Pointer to **int32** | | [optional] -**VotesDown** | Pointer to **int32** | | [optional] +**ParentId** | Pointer to **NullableString** | | [optional] +**Date** | **NullableTime** | | +**Votes** | Pointer to **NullableInt32** | | [optional] +**VotesUp** | Pointer to **NullableInt32** | | [optional] +**VotesDown** | Pointer to **NullableInt32** | | [optional] **Verified** | **bool** | | -**AvatarSrc** | Pointer to **string** | | [optional] -**IsSpam** | Pointer to **bool** | | [optional] +**AvatarSrc** | Pointer to **NullableString** | | [optional] **HasImages** | Pointer to **bool** | | [optional] -**IsDeleted** | Pointer to **bool** | | [optional] -**IsDeletedUser** | Pointer to **bool** | | [optional] **IsByAdmin** | Pointer to **bool** | | [optional] **IsByModerator** | Pointer to **bool** | | [optional] -**IsPinned** | Pointer to **bool** | | [optional] -**IsLocked** | Pointer to **bool** | | [optional] -**Rating** | Pointer to **float64** | | [optional] -**DisplayLabel** | Pointer to **string** | | [optional] +**IsPinned** | Pointer to **NullableBool** | | [optional] +**IsLocked** | Pointer to **NullableBool** | | [optional] +**DisplayLabel** | Pointer to **NullableString** | | [optional] +**Rating** | Pointer to **NullableFloat64** | | [optional] **Badges** | Pointer to [**[]CommentUserBadgeInfo**](CommentUserBadgeInfo.md) | | [optional] +**ViewCount** | Pointer to **NullableInt64** | | [optional] +**IsDeleted** | Pointer to **bool** | | [optional] +**IsDeletedUser** | Pointer to **bool** | | [optional] +**IsSpam** | Pointer to **bool** | | [optional] +**AnonUserId** | Pointer to **NullableString** | | [optional] **FeedbackIds** | Pointer to **[]string** | | [optional] -**ViewCount** | Pointer to **int64** | | [optional] **RequiresVerification** | Pointer to **bool** | | [optional] **EditKey** | Pointer to **string** | | [optional] +**Approved** | Pointer to **bool** | | [optional] **IsUnread** | Pointer to **bool** | | [optional] **MyVoteId** | Pointer to **string** | | [optional] **IsVotedDown** | Pointer to **bool** | | [optional] @@ -47,7 +48,7 @@ Name | Type | Description | Notes ### NewPublicComment -`func NewPublicComment(date time.Time, id string, commenterName string, commentHTML string, verified bool, ) *PublicComment` +`func NewPublicComment(id string, commenterName string, commentHTML string, date NullableTime, verified bool, ) *PublicComment` NewPublicComment instantiates a new PublicComment object This constructor will assign default values to properties that have it defined, @@ -62,26 +63,6 @@ NewPublicCommentWithDefaults instantiates a new PublicComment 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 -### GetDate - -`func (o *PublicComment) GetDate() time.Time` - -GetDate returns the Date field if non-nil, zero value otherwise. - -### GetDateOk - -`func (o *PublicComment) GetDateOk() (*time.Time, bool)` - -GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDate - -`func (o *PublicComment) SetDate(v time.Time)` - -SetDate sets Date field to given value. - - ### GetId `func (o *PublicComment) GetId() string` @@ -127,31 +108,16 @@ SetUserId sets UserId field to given value. HasUserId returns a boolean if a field has been set. -### GetAnonUserId - -`func (o *PublicComment) GetAnonUserId() string` - -GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. - -### GetAnonUserIdOk - -`func (o *PublicComment) GetAnonUserIdOk() (*string, bool)` - -GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAnonUserId - -`func (o *PublicComment) SetAnonUserId(v string)` - -SetAnonUserId sets AnonUserId field to given value. +### SetUserIdNil -### HasAnonUserId +`func (o *PublicComment) SetUserIdNil(b bool)` -`func (o *PublicComment) HasAnonUserId() bool` + SetUserIdNil sets the value for UserId to be an explicit nil -HasAnonUserId returns a boolean if a field has been set. +### UnsetUserId +`func (o *PublicComment) UnsetUserId()` +UnsetUserId ensures that no value is present for UserId, not even an explicit nil ### GetCommenterName `func (o *PublicComment) GetCommenterName() string` @@ -197,6 +163,16 @@ SetCommenterLink sets CommenterLink field to given value. HasCommenterLink returns a boolean if a field has been set. +### SetCommenterLinkNil + +`func (o *PublicComment) SetCommenterLinkNil(b bool)` + + SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil + +### UnsetCommenterLink +`func (o *PublicComment) UnsetCommenterLink()` + +UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil ### GetCommentHTML `func (o *PublicComment) GetCommentHTML() string` @@ -242,6 +218,46 @@ SetParentId sets ParentId field to given value. HasParentId returns a boolean if a field has been set. +### SetParentIdNil + +`func (o *PublicComment) SetParentIdNil(b bool)` + + SetParentIdNil sets the value for ParentId to be an explicit nil + +### UnsetParentId +`func (o *PublicComment) UnsetParentId()` + +UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +### GetDate + +`func (o *PublicComment) GetDate() time.Time` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *PublicComment) GetDateOk() (*time.Time, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *PublicComment) SetDate(v time.Time)` + +SetDate sets Date field to given value. + + +### SetDateNil + +`func (o *PublicComment) SetDateNil(b bool)` + + SetDateNil sets the value for Date to be an explicit nil + +### UnsetDate +`func (o *PublicComment) UnsetDate()` + +UnsetDate ensures that no value is present for Date, not even an explicit nil ### GetVotes `func (o *PublicComment) GetVotes() int32` @@ -267,6 +283,16 @@ SetVotes sets Votes field to given value. HasVotes returns a boolean if a field has been set. +### SetVotesNil + +`func (o *PublicComment) SetVotesNil(b bool)` + + SetVotesNil sets the value for Votes to be an explicit nil + +### UnsetVotes +`func (o *PublicComment) UnsetVotes()` + +UnsetVotes ensures that no value is present for Votes, not even an explicit nil ### GetVotesUp `func (o *PublicComment) GetVotesUp() int32` @@ -292,6 +318,16 @@ SetVotesUp sets VotesUp field to given value. HasVotesUp returns a boolean if a field has been set. +### SetVotesUpNil + +`func (o *PublicComment) SetVotesUpNil(b bool)` + + SetVotesUpNil sets the value for VotesUp to be an explicit nil + +### UnsetVotesUp +`func (o *PublicComment) UnsetVotesUp()` + +UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil ### GetVotesDown `func (o *PublicComment) GetVotesDown() int32` @@ -317,6 +353,16 @@ SetVotesDown sets VotesDown field to given value. HasVotesDown returns a boolean if a field has been set. +### SetVotesDownNil + +`func (o *PublicComment) SetVotesDownNil(b bool)` + + SetVotesDownNil sets the value for VotesDown to be an explicit nil + +### UnsetVotesDown +`func (o *PublicComment) UnsetVotesDown()` + +UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil ### GetVerified `func (o *PublicComment) GetVerified() bool` @@ -362,31 +408,16 @@ SetAvatarSrc sets AvatarSrc field to given value. HasAvatarSrc returns a boolean if a field has been set. -### GetIsSpam - -`func (o *PublicComment) GetIsSpam() bool` - -GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. - -### GetIsSpamOk +### SetAvatarSrcNil -`func (o *PublicComment) GetIsSpamOk() (*bool, bool)` +`func (o *PublicComment) SetAvatarSrcNil(b bool)` -GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. + SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil -### SetIsSpam - -`func (o *PublicComment) SetIsSpam(v bool)` - -SetIsSpam sets IsSpam field to given value. - -### HasIsSpam - -`func (o *PublicComment) HasIsSpam() bool` - -HasIsSpam returns a boolean if a field has been set. +### UnsetAvatarSrc +`func (o *PublicComment) UnsetAvatarSrc()` +UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil ### GetHasImages `func (o *PublicComment) GetHasImages() bool` @@ -412,56 +443,6 @@ SetHasImages sets HasImages field to given value. HasHasImages returns a boolean if a field has been set. -### GetIsDeleted - -`func (o *PublicComment) GetIsDeleted() bool` - -GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. - -### GetIsDeletedOk - -`func (o *PublicComment) GetIsDeletedOk() (*bool, bool)` - -GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsDeleted - -`func (o *PublicComment) SetIsDeleted(v bool)` - -SetIsDeleted sets IsDeleted field to given value. - -### HasIsDeleted - -`func (o *PublicComment) HasIsDeleted() bool` - -HasIsDeleted returns a boolean if a field has been set. - -### GetIsDeletedUser - -`func (o *PublicComment) GetIsDeletedUser() bool` - -GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. - -### GetIsDeletedUserOk - -`func (o *PublicComment) GetIsDeletedUserOk() (*bool, bool)` - -GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsDeletedUser - -`func (o *PublicComment) SetIsDeletedUser(v bool)` - -SetIsDeletedUser sets IsDeletedUser field to given value. - -### HasIsDeletedUser - -`func (o *PublicComment) HasIsDeletedUser() bool` - -HasIsDeletedUser returns a boolean if a field has been set. - ### GetIsByAdmin `func (o *PublicComment) GetIsByAdmin() bool` @@ -537,6 +518,16 @@ SetIsPinned sets IsPinned field to given value. HasIsPinned returns a boolean if a field has been set. +### SetIsPinnedNil + +`func (o *PublicComment) SetIsPinnedNil(b bool)` + + SetIsPinnedNil sets the value for IsPinned to be an explicit nil + +### UnsetIsPinned +`func (o *PublicComment) UnsetIsPinned()` + +UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil ### GetIsLocked `func (o *PublicComment) GetIsLocked() bool` @@ -562,31 +553,16 @@ SetIsLocked sets IsLocked field to given value. HasIsLocked returns a boolean if a field has been set. -### GetRating - -`func (o *PublicComment) GetRating() float64` - -GetRating returns the Rating field if non-nil, zero value otherwise. - -### GetRatingOk - -`func (o *PublicComment) GetRatingOk() (*float64, bool)` - -GetRatingOk returns a tuple with the Rating field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRating - -`func (o *PublicComment) SetRating(v float64)` +### SetIsLockedNil -SetRating sets Rating field to given value. - -### HasRating +`func (o *PublicComment) SetIsLockedNil(b bool)` -`func (o *PublicComment) HasRating() bool` + SetIsLockedNil sets the value for IsLocked to be an explicit nil -HasRating returns a boolean if a field has been set. +### UnsetIsLocked +`func (o *PublicComment) UnsetIsLocked()` +UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil ### GetDisplayLabel `func (o *PublicComment) GetDisplayLabel() string` @@ -612,6 +588,51 @@ SetDisplayLabel sets DisplayLabel field to given value. HasDisplayLabel returns a boolean if a field has been set. +### SetDisplayLabelNil + +`func (o *PublicComment) SetDisplayLabelNil(b bool)` + + SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil + +### UnsetDisplayLabel +`func (o *PublicComment) UnsetDisplayLabel()` + +UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +### GetRating + +`func (o *PublicComment) GetRating() float64` + +GetRating returns the Rating field if non-nil, zero value otherwise. + +### GetRatingOk + +`func (o *PublicComment) GetRatingOk() (*float64, bool)` + +GetRatingOk returns a tuple with the Rating field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRating + +`func (o *PublicComment) SetRating(v float64)` + +SetRating sets Rating field to given value. + +### HasRating + +`func (o *PublicComment) HasRating() bool` + +HasRating returns a boolean if a field has been set. + +### SetRatingNil + +`func (o *PublicComment) SetRatingNil(b bool)` + + SetRatingNil sets the value for Rating to be an explicit nil + +### UnsetRating +`func (o *PublicComment) UnsetRating()` + +UnsetRating ensures that no value is present for Rating, not even an explicit nil ### GetBadges `func (o *PublicComment) GetBadges() []CommentUserBadgeInfo` @@ -637,31 +658,16 @@ SetBadges sets Badges field to given value. HasBadges returns a boolean if a field has been set. -### GetFeedbackIds - -`func (o *PublicComment) GetFeedbackIds() []string` - -GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. - -### GetFeedbackIdsOk - -`func (o *PublicComment) GetFeedbackIdsOk() (*[]string, bool)` - -GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFeedbackIds - -`func (o *PublicComment) SetFeedbackIds(v []string)` - -SetFeedbackIds sets FeedbackIds field to given value. +### SetBadgesNil -### HasFeedbackIds +`func (o *PublicComment) SetBadgesNil(b bool)` -`func (o *PublicComment) HasFeedbackIds() bool` + SetBadgesNil sets the value for Badges to be an explicit nil -HasFeedbackIds returns a boolean if a field has been set. +### UnsetBadges +`func (o *PublicComment) UnsetBadges()` +UnsetBadges ensures that no value is present for Badges, not even an explicit nil ### GetViewCount `func (o *PublicComment) GetViewCount() int64` @@ -687,6 +693,151 @@ SetViewCount sets ViewCount field to given value. HasViewCount returns a boolean if a field has been set. +### SetViewCountNil + +`func (o *PublicComment) SetViewCountNil(b bool)` + + SetViewCountNil sets the value for ViewCount to be an explicit nil + +### UnsetViewCount +`func (o *PublicComment) UnsetViewCount()` + +UnsetViewCount ensures that no value is present for ViewCount, not even an explicit nil +### GetIsDeleted + +`func (o *PublicComment) GetIsDeleted() bool` + +GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. + +### GetIsDeletedOk + +`func (o *PublicComment) GetIsDeletedOk() (*bool, bool)` + +GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeleted + +`func (o *PublicComment) SetIsDeleted(v bool)` + +SetIsDeleted sets IsDeleted field to given value. + +### HasIsDeleted + +`func (o *PublicComment) HasIsDeleted() bool` + +HasIsDeleted returns a boolean if a field has been set. + +### GetIsDeletedUser + +`func (o *PublicComment) GetIsDeletedUser() bool` + +GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. + +### GetIsDeletedUserOk + +`func (o *PublicComment) GetIsDeletedUserOk() (*bool, bool)` + +GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeletedUser + +`func (o *PublicComment) SetIsDeletedUser(v bool)` + +SetIsDeletedUser sets IsDeletedUser field to given value. + +### HasIsDeletedUser + +`func (o *PublicComment) HasIsDeletedUser() bool` + +HasIsDeletedUser returns a boolean if a field has been set. + +### GetIsSpam + +`func (o *PublicComment) GetIsSpam() bool` + +GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. + +### GetIsSpamOk + +`func (o *PublicComment) GetIsSpamOk() (*bool, bool)` + +GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSpam + +`func (o *PublicComment) SetIsSpam(v bool)` + +SetIsSpam sets IsSpam field to given value. + +### HasIsSpam + +`func (o *PublicComment) HasIsSpam() bool` + +HasIsSpam returns a boolean if a field has been set. + +### GetAnonUserId + +`func (o *PublicComment) GetAnonUserId() string` + +GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. + +### GetAnonUserIdOk + +`func (o *PublicComment) GetAnonUserIdOk() (*string, bool)` + +GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnonUserId + +`func (o *PublicComment) SetAnonUserId(v string)` + +SetAnonUserId sets AnonUserId field to given value. + +### HasAnonUserId + +`func (o *PublicComment) HasAnonUserId() bool` + +HasAnonUserId returns a boolean if a field has been set. + +### SetAnonUserIdNil + +`func (o *PublicComment) SetAnonUserIdNil(b bool)` + + SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil + +### UnsetAnonUserId +`func (o *PublicComment) UnsetAnonUserId()` + +UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +### GetFeedbackIds + +`func (o *PublicComment) GetFeedbackIds() []string` + +GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. + +### GetFeedbackIdsOk + +`func (o *PublicComment) GetFeedbackIdsOk() (*[]string, bool)` + +GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeedbackIds + +`func (o *PublicComment) SetFeedbackIds(v []string)` + +SetFeedbackIds sets FeedbackIds field to given value. + +### HasFeedbackIds + +`func (o *PublicComment) HasFeedbackIds() bool` + +HasFeedbackIds returns a boolean if a field has been set. + ### GetRequiresVerification `func (o *PublicComment) GetRequiresVerification() bool` @@ -737,6 +888,31 @@ SetEditKey sets EditKey field to given value. HasEditKey returns a boolean if a field has been set. +### GetApproved + +`func (o *PublicComment) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *PublicComment) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *PublicComment) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + +### HasApproved + +`func (o *PublicComment) HasApproved() bool` + +HasApproved returns a boolean if a field has been set. + ### GetIsUnread `func (o *PublicComment) GetIsUnread() bool` diff --git a/client/docs/PickFCommentPublicCommentFieldsKeys.md b/client/docs/PublicCommentBase.md similarity index 50% rename from client/docs/PickFCommentPublicCommentFieldsKeys.md rename to client/docs/PublicCommentBase.md index 3c225a6..24d5a07 100644 --- a/client/docs/PickFCommentPublicCommentFieldsKeys.md +++ b/client/docs/PublicCommentBase.md @@ -1,732 +1,908 @@ -# PickFCommentPublicCommentFieldsKeys +# PublicCommentBase ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Date** | **time.Time** | | **Id** | **string** | | -**UserId** | Pointer to **string** | | [optional] -**AnonUserId** | Pointer to **string** | | [optional] +**UserId** | Pointer to **NullableString** | | [optional] **CommenterName** | **string** | | -**CommenterLink** | Pointer to **string** | | [optional] +**CommenterLink** | Pointer to **NullableString** | | [optional] **CommentHTML** | **string** | | -**ParentId** | Pointer to **string** | | [optional] -**Votes** | Pointer to **int32** | | [optional] -**VotesUp** | Pointer to **int32** | | [optional] -**VotesDown** | Pointer to **int32** | | [optional] +**ParentId** | Pointer to **NullableString** | | [optional] +**Date** | **NullableTime** | | +**Votes** | Pointer to **NullableInt32** | | [optional] +**VotesUp** | Pointer to **NullableInt32** | | [optional] +**VotesDown** | Pointer to **NullableInt32** | | [optional] **Verified** | **bool** | | -**AvatarSrc** | Pointer to **string** | | [optional] -**IsSpam** | Pointer to **bool** | | [optional] +**AvatarSrc** | Pointer to **NullableString** | | [optional] **HasImages** | Pointer to **bool** | | [optional] -**IsDeleted** | Pointer to **bool** | | [optional] -**IsDeletedUser** | Pointer to **bool** | | [optional] **IsByAdmin** | Pointer to **bool** | | [optional] **IsByModerator** | Pointer to **bool** | | [optional] -**IsPinned** | Pointer to **bool** | | [optional] -**IsLocked** | Pointer to **bool** | | [optional] -**Rating** | Pointer to **float64** | | [optional] -**DisplayLabel** | Pointer to **string** | | [optional] +**IsPinned** | Pointer to **NullableBool** | | [optional] +**IsLocked** | Pointer to **NullableBool** | | [optional] +**DisplayLabel** | Pointer to **NullableString** | | [optional] +**Rating** | Pointer to **NullableFloat64** | | [optional] **Badges** | Pointer to [**[]CommentUserBadgeInfo**](CommentUserBadgeInfo.md) | | [optional] +**ViewCount** | Pointer to **NullableInt64** | | [optional] +**IsDeleted** | Pointer to **bool** | | [optional] +**IsDeletedUser** | Pointer to **bool** | | [optional] +**IsSpam** | Pointer to **bool** | | [optional] +**AnonUserId** | Pointer to **NullableString** | | [optional] **FeedbackIds** | Pointer to **[]string** | | [optional] -**ViewCount** | Pointer to **int64** | | [optional] **RequiresVerification** | Pointer to **bool** | | [optional] **EditKey** | Pointer to **string** | | [optional] +**Approved** | Pointer to **bool** | | [optional] ## Methods -### NewPickFCommentPublicCommentFieldsKeys +### NewPublicCommentBase -`func NewPickFCommentPublicCommentFieldsKeys(date time.Time, id string, commenterName string, commentHTML string, verified bool, ) *PickFCommentPublicCommentFieldsKeys` +`func NewPublicCommentBase(id string, commenterName string, commentHTML string, date NullableTime, verified bool, ) *PublicCommentBase` -NewPickFCommentPublicCommentFieldsKeys instantiates a new PickFCommentPublicCommentFieldsKeys object +NewPublicCommentBase instantiates a new PublicCommentBase 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 -### NewPickFCommentPublicCommentFieldsKeysWithDefaults +### NewPublicCommentBaseWithDefaults -`func NewPickFCommentPublicCommentFieldsKeysWithDefaults() *PickFCommentPublicCommentFieldsKeys` +`func NewPublicCommentBaseWithDefaults() *PublicCommentBase` -NewPickFCommentPublicCommentFieldsKeysWithDefaults instantiates a new PickFCommentPublicCommentFieldsKeys object +NewPublicCommentBaseWithDefaults instantiates a new PublicCommentBase 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 -### GetDate - -`func (o *PickFCommentPublicCommentFieldsKeys) GetDate() time.Time` - -GetDate returns the Date field if non-nil, zero value otherwise. - -### GetDateOk - -`func (o *PickFCommentPublicCommentFieldsKeys) GetDateOk() (*time.Time, bool)` - -GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDate - -`func (o *PickFCommentPublicCommentFieldsKeys) SetDate(v time.Time)` - -SetDate sets Date field to given value. - - ### GetId -`func (o *PickFCommentPublicCommentFieldsKeys) GetId() string` +`func (o *PublicCommentBase) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetIdOk() (*string, bool)` +`func (o *PublicCommentBase) GetIdOk() (*string, 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 *PickFCommentPublicCommentFieldsKeys) SetId(v string)` +`func (o *PublicCommentBase) SetId(v string)` SetId sets Id field to given value. ### GetUserId -`func (o *PickFCommentPublicCommentFieldsKeys) GetUserId() string` +`func (o *PublicCommentBase) GetUserId() string` GetUserId returns the UserId field if non-nil, zero value otherwise. ### GetUserIdOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetUserIdOk() (*string, bool)` +`func (o *PublicCommentBase) GetUserIdOk() (*string, 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 *PickFCommentPublicCommentFieldsKeys) SetUserId(v string)` +`func (o *PublicCommentBase) SetUserId(v string)` SetUserId sets UserId field to given value. ### HasUserId -`func (o *PickFCommentPublicCommentFieldsKeys) HasUserId() bool` +`func (o *PublicCommentBase) HasUserId() bool` HasUserId returns a boolean if a field has been set. -### GetAnonUserId - -`func (o *PickFCommentPublicCommentFieldsKeys) GetAnonUserId() string` +### SetUserIdNil -GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. +`func (o *PublicCommentBase) SetUserIdNil(b bool)` -### GetAnonUserIdOk + SetUserIdNil sets the value for UserId to be an explicit nil -`func (o *PickFCommentPublicCommentFieldsKeys) GetAnonUserIdOk() (*string, bool)` - -GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAnonUserId - -`func (o *PickFCommentPublicCommentFieldsKeys) SetAnonUserId(v string)` - -SetAnonUserId sets AnonUserId field to given value. - -### HasAnonUserId - -`func (o *PickFCommentPublicCommentFieldsKeys) HasAnonUserId() bool` - -HasAnonUserId returns a boolean if a field has been set. +### UnsetUserId +`func (o *PublicCommentBase) UnsetUserId()` +UnsetUserId ensures that no value is present for UserId, not even an explicit nil ### GetCommenterName -`func (o *PickFCommentPublicCommentFieldsKeys) GetCommenterName() string` +`func (o *PublicCommentBase) GetCommenterName() string` GetCommenterName returns the CommenterName field if non-nil, zero value otherwise. ### GetCommenterNameOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetCommenterNameOk() (*string, bool)` +`func (o *PublicCommentBase) GetCommenterNameOk() (*string, bool)` GetCommenterNameOk returns a tuple with the CommenterName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCommenterName -`func (o *PickFCommentPublicCommentFieldsKeys) SetCommenterName(v string)` +`func (o *PublicCommentBase) SetCommenterName(v string)` SetCommenterName sets CommenterName field to given value. ### GetCommenterLink -`func (o *PickFCommentPublicCommentFieldsKeys) GetCommenterLink() string` +`func (o *PublicCommentBase) GetCommenterLink() string` GetCommenterLink returns the CommenterLink field if non-nil, zero value otherwise. ### GetCommenterLinkOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetCommenterLinkOk() (*string, bool)` +`func (o *PublicCommentBase) GetCommenterLinkOk() (*string, bool)` GetCommenterLinkOk returns a tuple with the CommenterLink field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCommenterLink -`func (o *PickFCommentPublicCommentFieldsKeys) SetCommenterLink(v string)` +`func (o *PublicCommentBase) SetCommenterLink(v string)` SetCommenterLink sets CommenterLink field to given value. ### HasCommenterLink -`func (o *PickFCommentPublicCommentFieldsKeys) HasCommenterLink() bool` +`func (o *PublicCommentBase) HasCommenterLink() bool` HasCommenterLink returns a boolean if a field has been set. +### SetCommenterLinkNil + +`func (o *PublicCommentBase) SetCommenterLinkNil(b bool)` + + SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil + +### UnsetCommenterLink +`func (o *PublicCommentBase) UnsetCommenterLink()` + +UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil ### GetCommentHTML -`func (o *PickFCommentPublicCommentFieldsKeys) GetCommentHTML() string` +`func (o *PublicCommentBase) GetCommentHTML() string` GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. ### GetCommentHTMLOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetCommentHTMLOk() (*string, bool)` +`func (o *PublicCommentBase) GetCommentHTMLOk() (*string, bool)` GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCommentHTML -`func (o *PickFCommentPublicCommentFieldsKeys) SetCommentHTML(v string)` +`func (o *PublicCommentBase) SetCommentHTML(v string)` SetCommentHTML sets CommentHTML field to given value. ### GetParentId -`func (o *PickFCommentPublicCommentFieldsKeys) GetParentId() string` +`func (o *PublicCommentBase) GetParentId() string` GetParentId returns the ParentId field if non-nil, zero value otherwise. ### GetParentIdOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetParentIdOk() (*string, bool)` +`func (o *PublicCommentBase) GetParentIdOk() (*string, bool)` GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetParentId -`func (o *PickFCommentPublicCommentFieldsKeys) SetParentId(v string)` +`func (o *PublicCommentBase) SetParentId(v string)` SetParentId sets ParentId field to given value. ### HasParentId -`func (o *PickFCommentPublicCommentFieldsKeys) HasParentId() bool` +`func (o *PublicCommentBase) HasParentId() bool` HasParentId returns a boolean if a field has been set. +### SetParentIdNil + +`func (o *PublicCommentBase) SetParentIdNil(b bool)` + + SetParentIdNil sets the value for ParentId to be an explicit nil + +### UnsetParentId +`func (o *PublicCommentBase) UnsetParentId()` + +UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +### GetDate + +`func (o *PublicCommentBase) GetDate() time.Time` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *PublicCommentBase) GetDateOk() (*time.Time, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *PublicCommentBase) SetDate(v time.Time)` + +SetDate sets Date field to given value. + + +### SetDateNil + +`func (o *PublicCommentBase) SetDateNil(b bool)` + + SetDateNil sets the value for Date to be an explicit nil + +### UnsetDate +`func (o *PublicCommentBase) UnsetDate()` + +UnsetDate ensures that no value is present for Date, not even an explicit nil ### GetVotes -`func (o *PickFCommentPublicCommentFieldsKeys) GetVotes() int32` +`func (o *PublicCommentBase) GetVotes() int32` GetVotes returns the Votes field if non-nil, zero value otherwise. ### GetVotesOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetVotesOk() (*int32, bool)` +`func (o *PublicCommentBase) GetVotesOk() (*int32, bool)` GetVotesOk returns a tuple with the Votes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVotes -`func (o *PickFCommentPublicCommentFieldsKeys) SetVotes(v int32)` +`func (o *PublicCommentBase) SetVotes(v int32)` SetVotes sets Votes field to given value. ### HasVotes -`func (o *PickFCommentPublicCommentFieldsKeys) HasVotes() bool` +`func (o *PublicCommentBase) HasVotes() bool` HasVotes returns a boolean if a field has been set. +### SetVotesNil + +`func (o *PublicCommentBase) SetVotesNil(b bool)` + + SetVotesNil sets the value for Votes to be an explicit nil + +### UnsetVotes +`func (o *PublicCommentBase) UnsetVotes()` + +UnsetVotes ensures that no value is present for Votes, not even an explicit nil ### GetVotesUp -`func (o *PickFCommentPublicCommentFieldsKeys) GetVotesUp() int32` +`func (o *PublicCommentBase) GetVotesUp() int32` GetVotesUp returns the VotesUp field if non-nil, zero value otherwise. ### GetVotesUpOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetVotesUpOk() (*int32, bool)` +`func (o *PublicCommentBase) GetVotesUpOk() (*int32, bool)` GetVotesUpOk returns a tuple with the VotesUp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVotesUp -`func (o *PickFCommentPublicCommentFieldsKeys) SetVotesUp(v int32)` +`func (o *PublicCommentBase) SetVotesUp(v int32)` SetVotesUp sets VotesUp field to given value. ### HasVotesUp -`func (o *PickFCommentPublicCommentFieldsKeys) HasVotesUp() bool` +`func (o *PublicCommentBase) HasVotesUp() bool` HasVotesUp returns a boolean if a field has been set. +### SetVotesUpNil + +`func (o *PublicCommentBase) SetVotesUpNil(b bool)` + + SetVotesUpNil sets the value for VotesUp to be an explicit nil + +### UnsetVotesUp +`func (o *PublicCommentBase) UnsetVotesUp()` + +UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil ### GetVotesDown -`func (o *PickFCommentPublicCommentFieldsKeys) GetVotesDown() int32` +`func (o *PublicCommentBase) GetVotesDown() int32` GetVotesDown returns the VotesDown field if non-nil, zero value otherwise. ### GetVotesDownOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetVotesDownOk() (*int32, bool)` +`func (o *PublicCommentBase) GetVotesDownOk() (*int32, bool)` GetVotesDownOk returns a tuple with the VotesDown field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVotesDown -`func (o *PickFCommentPublicCommentFieldsKeys) SetVotesDown(v int32)` +`func (o *PublicCommentBase) SetVotesDown(v int32)` SetVotesDown sets VotesDown field to given value. ### HasVotesDown -`func (o *PickFCommentPublicCommentFieldsKeys) HasVotesDown() bool` +`func (o *PublicCommentBase) HasVotesDown() bool` HasVotesDown returns a boolean if a field has been set. +### SetVotesDownNil + +`func (o *PublicCommentBase) SetVotesDownNil(b bool)` + + SetVotesDownNil sets the value for VotesDown to be an explicit nil + +### UnsetVotesDown +`func (o *PublicCommentBase) UnsetVotesDown()` + +UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil ### GetVerified -`func (o *PickFCommentPublicCommentFieldsKeys) GetVerified() bool` +`func (o *PublicCommentBase) GetVerified() bool` GetVerified returns the Verified field if non-nil, zero value otherwise. ### GetVerifiedOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetVerifiedOk() (*bool, bool)` +`func (o *PublicCommentBase) GetVerifiedOk() (*bool, bool)` GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVerified -`func (o *PickFCommentPublicCommentFieldsKeys) SetVerified(v bool)` +`func (o *PublicCommentBase) SetVerified(v bool)` SetVerified sets Verified field to given value. ### GetAvatarSrc -`func (o *PickFCommentPublicCommentFieldsKeys) GetAvatarSrc() string` +`func (o *PublicCommentBase) GetAvatarSrc() string` GetAvatarSrc returns the AvatarSrc field if non-nil, zero value otherwise. ### GetAvatarSrcOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetAvatarSrcOk() (*string, bool)` +`func (o *PublicCommentBase) GetAvatarSrcOk() (*string, bool)` GetAvatarSrcOk returns a tuple with the AvatarSrc field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAvatarSrc -`func (o *PickFCommentPublicCommentFieldsKeys) SetAvatarSrc(v string)` +`func (o *PublicCommentBase) SetAvatarSrc(v string)` SetAvatarSrc sets AvatarSrc field to given value. ### HasAvatarSrc -`func (o *PickFCommentPublicCommentFieldsKeys) HasAvatarSrc() bool` +`func (o *PublicCommentBase) HasAvatarSrc() bool` HasAvatarSrc returns a boolean if a field has been set. -### GetIsSpam +### SetAvatarSrcNil -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsSpam() bool` +`func (o *PublicCommentBase) SetAvatarSrcNil(b bool)` -GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. + SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil -### GetIsSpamOk - -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsSpamOk() (*bool, bool)` - -GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsSpam - -`func (o *PickFCommentPublicCommentFieldsKeys) SetIsSpam(v bool)` - -SetIsSpam sets IsSpam field to given value. - -### HasIsSpam - -`func (o *PickFCommentPublicCommentFieldsKeys) HasIsSpam() bool` - -HasIsSpam returns a boolean if a field has been set. +### UnsetAvatarSrc +`func (o *PublicCommentBase) UnsetAvatarSrc()` +UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil ### GetHasImages -`func (o *PickFCommentPublicCommentFieldsKeys) GetHasImages() bool` +`func (o *PublicCommentBase) GetHasImages() bool` GetHasImages returns the HasImages field if non-nil, zero value otherwise. ### GetHasImagesOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetHasImagesOk() (*bool, bool)` +`func (o *PublicCommentBase) GetHasImagesOk() (*bool, bool)` GetHasImagesOk returns a tuple with the HasImages field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetHasImages -`func (o *PickFCommentPublicCommentFieldsKeys) SetHasImages(v bool)` +`func (o *PublicCommentBase) SetHasImages(v bool)` SetHasImages sets HasImages field to given value. ### HasHasImages -`func (o *PickFCommentPublicCommentFieldsKeys) HasHasImages() bool` +`func (o *PublicCommentBase) HasHasImages() bool` HasHasImages returns a boolean if a field has been set. -### GetIsDeleted - -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsDeleted() bool` - -GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. - -### GetIsDeletedOk - -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsDeletedOk() (*bool, bool)` - -GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsDeleted - -`func (o *PickFCommentPublicCommentFieldsKeys) SetIsDeleted(v bool)` - -SetIsDeleted sets IsDeleted field to given value. - -### HasIsDeleted - -`func (o *PickFCommentPublicCommentFieldsKeys) HasIsDeleted() bool` - -HasIsDeleted returns a boolean if a field has been set. - -### GetIsDeletedUser - -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsDeletedUser() bool` - -GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. - -### GetIsDeletedUserOk - -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsDeletedUserOk() (*bool, bool)` - -GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsDeletedUser - -`func (o *PickFCommentPublicCommentFieldsKeys) SetIsDeletedUser(v bool)` - -SetIsDeletedUser sets IsDeletedUser field to given value. - -### HasIsDeletedUser - -`func (o *PickFCommentPublicCommentFieldsKeys) HasIsDeletedUser() bool` - -HasIsDeletedUser returns a boolean if a field has been set. - ### GetIsByAdmin -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsByAdmin() bool` +`func (o *PublicCommentBase) GetIsByAdmin() bool` GetIsByAdmin returns the IsByAdmin field if non-nil, zero value otherwise. ### GetIsByAdminOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsByAdminOk() (*bool, bool)` +`func (o *PublicCommentBase) GetIsByAdminOk() (*bool, bool)` GetIsByAdminOk returns a tuple with the IsByAdmin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIsByAdmin -`func (o *PickFCommentPublicCommentFieldsKeys) SetIsByAdmin(v bool)` +`func (o *PublicCommentBase) SetIsByAdmin(v bool)` SetIsByAdmin sets IsByAdmin field to given value. ### HasIsByAdmin -`func (o *PickFCommentPublicCommentFieldsKeys) HasIsByAdmin() bool` +`func (o *PublicCommentBase) HasIsByAdmin() bool` HasIsByAdmin returns a boolean if a field has been set. ### GetIsByModerator -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsByModerator() bool` +`func (o *PublicCommentBase) GetIsByModerator() bool` GetIsByModerator returns the IsByModerator field if non-nil, zero value otherwise. ### GetIsByModeratorOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsByModeratorOk() (*bool, bool)` +`func (o *PublicCommentBase) GetIsByModeratorOk() (*bool, bool)` GetIsByModeratorOk returns a tuple with the IsByModerator field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIsByModerator -`func (o *PickFCommentPublicCommentFieldsKeys) SetIsByModerator(v bool)` +`func (o *PublicCommentBase) SetIsByModerator(v bool)` SetIsByModerator sets IsByModerator field to given value. ### HasIsByModerator -`func (o *PickFCommentPublicCommentFieldsKeys) HasIsByModerator() bool` +`func (o *PublicCommentBase) HasIsByModerator() bool` HasIsByModerator returns a boolean if a field has been set. ### GetIsPinned -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsPinned() bool` +`func (o *PublicCommentBase) GetIsPinned() bool` GetIsPinned returns the IsPinned field if non-nil, zero value otherwise. ### GetIsPinnedOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsPinnedOk() (*bool, bool)` +`func (o *PublicCommentBase) GetIsPinnedOk() (*bool, bool)` GetIsPinnedOk returns a tuple with the IsPinned field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIsPinned -`func (o *PickFCommentPublicCommentFieldsKeys) SetIsPinned(v bool)` +`func (o *PublicCommentBase) SetIsPinned(v bool)` SetIsPinned sets IsPinned field to given value. ### HasIsPinned -`func (o *PickFCommentPublicCommentFieldsKeys) HasIsPinned() bool` +`func (o *PublicCommentBase) HasIsPinned() bool` HasIsPinned returns a boolean if a field has been set. +### SetIsPinnedNil + +`func (o *PublicCommentBase) SetIsPinnedNil(b bool)` + + SetIsPinnedNil sets the value for IsPinned to be an explicit nil + +### UnsetIsPinned +`func (o *PublicCommentBase) UnsetIsPinned()` + +UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil ### GetIsLocked -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsLocked() bool` +`func (o *PublicCommentBase) GetIsLocked() bool` GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. ### GetIsLockedOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetIsLockedOk() (*bool, bool)` +`func (o *PublicCommentBase) GetIsLockedOk() (*bool, bool)` GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIsLocked -`func (o *PickFCommentPublicCommentFieldsKeys) SetIsLocked(v bool)` +`func (o *PublicCommentBase) SetIsLocked(v bool)` SetIsLocked sets IsLocked field to given value. ### HasIsLocked -`func (o *PickFCommentPublicCommentFieldsKeys) HasIsLocked() bool` +`func (o *PublicCommentBase) HasIsLocked() bool` HasIsLocked returns a boolean if a field has been set. -### GetRating +### SetIsLockedNil -`func (o *PickFCommentPublicCommentFieldsKeys) GetRating() float64` +`func (o *PublicCommentBase) SetIsLockedNil(b bool)` -GetRating returns the Rating field if non-nil, zero value otherwise. + SetIsLockedNil sets the value for IsLocked to be an explicit nil -### GetRatingOk +### UnsetIsLocked +`func (o *PublicCommentBase) UnsetIsLocked()` -`func (o *PickFCommentPublicCommentFieldsKeys) GetRatingOk() (*float64, bool)` +UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +### GetDisplayLabel -GetRatingOk returns a tuple with the Rating field if it's non-nil, zero value otherwise +`func (o *PublicCommentBase) GetDisplayLabel() string` + +GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. + +### GetDisplayLabelOk + +`func (o *PublicCommentBase) GetDisplayLabelOk() (*string, bool)` + +GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetRating +### SetDisplayLabel -`func (o *PickFCommentPublicCommentFieldsKeys) SetRating(v float64)` +`func (o *PublicCommentBase) SetDisplayLabel(v string)` -SetRating sets Rating field to given value. +SetDisplayLabel sets DisplayLabel field to given value. -### HasRating +### HasDisplayLabel -`func (o *PickFCommentPublicCommentFieldsKeys) HasRating() bool` +`func (o *PublicCommentBase) HasDisplayLabel() bool` -HasRating returns a boolean if a field has been set. +HasDisplayLabel returns a boolean if a field has been set. -### GetDisplayLabel +### SetDisplayLabelNil -`func (o *PickFCommentPublicCommentFieldsKeys) GetDisplayLabel() string` +`func (o *PublicCommentBase) SetDisplayLabelNil(b bool)` -GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. + SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil -### GetDisplayLabelOk +### UnsetDisplayLabel +`func (o *PublicCommentBase) UnsetDisplayLabel()` + +UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +### GetRating -`func (o *PickFCommentPublicCommentFieldsKeys) GetDisplayLabelOk() (*string, bool)` +`func (o *PublicCommentBase) GetRating() float64` -GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise +GetRating returns the Rating field if non-nil, zero value otherwise. + +### GetRatingOk + +`func (o *PublicCommentBase) GetRatingOk() (*float64, bool)` + +GetRatingOk returns a tuple with the Rating field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisplayLabel +### SetRating -`func (o *PickFCommentPublicCommentFieldsKeys) SetDisplayLabel(v string)` +`func (o *PublicCommentBase) SetRating(v float64)` -SetDisplayLabel sets DisplayLabel field to given value. +SetRating sets Rating field to given value. -### HasDisplayLabel +### HasRating -`func (o *PickFCommentPublicCommentFieldsKeys) HasDisplayLabel() bool` +`func (o *PublicCommentBase) HasRating() bool` -HasDisplayLabel returns a boolean if a field has been set. +HasRating returns a boolean if a field has been set. + +### SetRatingNil + +`func (o *PublicCommentBase) SetRatingNil(b bool)` + SetRatingNil sets the value for Rating to be an explicit nil + +### UnsetRating +`func (o *PublicCommentBase) UnsetRating()` + +UnsetRating ensures that no value is present for Rating, not even an explicit nil ### GetBadges -`func (o *PickFCommentPublicCommentFieldsKeys) GetBadges() []CommentUserBadgeInfo` +`func (o *PublicCommentBase) GetBadges() []CommentUserBadgeInfo` GetBadges returns the Badges field if non-nil, zero value otherwise. ### GetBadgesOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` +`func (o *PublicCommentBase) GetBadgesOk() (*[]CommentUserBadgeInfo, bool)` GetBadgesOk returns a tuple with the Badges field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetBadges -`func (o *PickFCommentPublicCommentFieldsKeys) SetBadges(v []CommentUserBadgeInfo)` +`func (o *PublicCommentBase) SetBadges(v []CommentUserBadgeInfo)` SetBadges sets Badges field to given value. ### HasBadges -`func (o *PickFCommentPublicCommentFieldsKeys) HasBadges() bool` +`func (o *PublicCommentBase) HasBadges() bool` HasBadges returns a boolean if a field has been set. -### GetFeedbackIds +### SetBadgesNil -`func (o *PickFCommentPublicCommentFieldsKeys) GetFeedbackIds() []string` +`func (o *PublicCommentBase) SetBadgesNil(b bool)` -GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. + SetBadgesNil sets the value for Badges to be an explicit nil -### GetFeedbackIdsOk +### UnsetBadges +`func (o *PublicCommentBase) UnsetBadges()` -`func (o *PickFCommentPublicCommentFieldsKeys) GetFeedbackIdsOk() (*[]string, bool)` +UnsetBadges ensures that no value is present for Badges, not even an explicit nil +### GetViewCount -GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise +`func (o *PublicCommentBase) GetViewCount() int64` + +GetViewCount returns the ViewCount field if non-nil, zero value otherwise. + +### GetViewCountOk + +`func (o *PublicCommentBase) GetViewCountOk() (*int64, bool)` + +GetViewCountOk returns a tuple with the ViewCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFeedbackIds +### SetViewCount -`func (o *PickFCommentPublicCommentFieldsKeys) SetFeedbackIds(v []string)` +`func (o *PublicCommentBase) SetViewCount(v int64)` -SetFeedbackIds sets FeedbackIds field to given value. +SetViewCount sets ViewCount field to given value. -### HasFeedbackIds +### HasViewCount -`func (o *PickFCommentPublicCommentFieldsKeys) HasFeedbackIds() bool` +`func (o *PublicCommentBase) HasViewCount() bool` -HasFeedbackIds returns a boolean if a field has been set. +HasViewCount returns a boolean if a field has been set. -### GetViewCount +### SetViewCountNil -`func (o *PickFCommentPublicCommentFieldsKeys) GetViewCount() int64` +`func (o *PublicCommentBase) SetViewCountNil(b bool)` -GetViewCount returns the ViewCount field if non-nil, zero value otherwise. + SetViewCountNil sets the value for ViewCount to be an explicit nil -### GetViewCountOk +### UnsetViewCount +`func (o *PublicCommentBase) UnsetViewCount()` -`func (o *PickFCommentPublicCommentFieldsKeys) GetViewCountOk() (*int64, bool)` +UnsetViewCount ensures that no value is present for ViewCount, not even an explicit nil +### GetIsDeleted -GetViewCountOk returns a tuple with the ViewCount field if it's non-nil, zero value otherwise +`func (o *PublicCommentBase) GetIsDeleted() bool` + +GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. + +### GetIsDeletedOk + +`func (o *PublicCommentBase) GetIsDeletedOk() (*bool, bool)` + +GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetViewCount +### SetIsDeleted -`func (o *PickFCommentPublicCommentFieldsKeys) SetViewCount(v int64)` +`func (o *PublicCommentBase) SetIsDeleted(v bool)` -SetViewCount sets ViewCount field to given value. +SetIsDeleted sets IsDeleted field to given value. -### HasViewCount +### HasIsDeleted -`func (o *PickFCommentPublicCommentFieldsKeys) HasViewCount() bool` +`func (o *PublicCommentBase) HasIsDeleted() bool` -HasViewCount returns a boolean if a field has been set. +HasIsDeleted returns a boolean if a field has been set. + +### GetIsDeletedUser + +`func (o *PublicCommentBase) GetIsDeletedUser() bool` + +GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. + +### GetIsDeletedUserOk + +`func (o *PublicCommentBase) GetIsDeletedUserOk() (*bool, bool)` + +GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeletedUser + +`func (o *PublicCommentBase) SetIsDeletedUser(v bool)` + +SetIsDeletedUser sets IsDeletedUser field to given value. + +### HasIsDeletedUser + +`func (o *PublicCommentBase) HasIsDeletedUser() bool` + +HasIsDeletedUser returns a boolean if a field has been set. + +### GetIsSpam + +`func (o *PublicCommentBase) GetIsSpam() bool` + +GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. + +### GetIsSpamOk + +`func (o *PublicCommentBase) GetIsSpamOk() (*bool, bool)` + +GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSpam + +`func (o *PublicCommentBase) SetIsSpam(v bool)` + +SetIsSpam sets IsSpam field to given value. + +### HasIsSpam + +`func (o *PublicCommentBase) HasIsSpam() bool` + +HasIsSpam returns a boolean if a field has been set. + +### GetAnonUserId + +`func (o *PublicCommentBase) GetAnonUserId() string` + +GetAnonUserId returns the AnonUserId field if non-nil, zero value otherwise. + +### GetAnonUserIdOk + +`func (o *PublicCommentBase) GetAnonUserIdOk() (*string, bool)` + +GetAnonUserIdOk returns a tuple with the AnonUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnonUserId + +`func (o *PublicCommentBase) SetAnonUserId(v string)` + +SetAnonUserId sets AnonUserId field to given value. + +### HasAnonUserId + +`func (o *PublicCommentBase) HasAnonUserId() bool` + +HasAnonUserId returns a boolean if a field has been set. + +### SetAnonUserIdNil + +`func (o *PublicCommentBase) SetAnonUserIdNil(b bool)` + + SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil + +### UnsetAnonUserId +`func (o *PublicCommentBase) UnsetAnonUserId()` + +UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +### GetFeedbackIds + +`func (o *PublicCommentBase) GetFeedbackIds() []string` + +GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. + +### GetFeedbackIdsOk + +`func (o *PublicCommentBase) GetFeedbackIdsOk() (*[]string, bool)` + +GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeedbackIds + +`func (o *PublicCommentBase) SetFeedbackIds(v []string)` + +SetFeedbackIds sets FeedbackIds field to given value. + +### HasFeedbackIds + +`func (o *PublicCommentBase) HasFeedbackIds() bool` + +HasFeedbackIds returns a boolean if a field has been set. ### GetRequiresVerification -`func (o *PickFCommentPublicCommentFieldsKeys) GetRequiresVerification() bool` +`func (o *PublicCommentBase) GetRequiresVerification() bool` GetRequiresVerification returns the RequiresVerification field if non-nil, zero value otherwise. ### GetRequiresVerificationOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetRequiresVerificationOk() (*bool, bool)` +`func (o *PublicCommentBase) GetRequiresVerificationOk() (*bool, bool)` GetRequiresVerificationOk returns a tuple with the RequiresVerification field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRequiresVerification -`func (o *PickFCommentPublicCommentFieldsKeys) SetRequiresVerification(v bool)` +`func (o *PublicCommentBase) SetRequiresVerification(v bool)` SetRequiresVerification sets RequiresVerification field to given value. ### HasRequiresVerification -`func (o *PickFCommentPublicCommentFieldsKeys) HasRequiresVerification() bool` +`func (o *PublicCommentBase) HasRequiresVerification() bool` HasRequiresVerification returns a boolean if a field has been set. ### GetEditKey -`func (o *PickFCommentPublicCommentFieldsKeys) GetEditKey() string` +`func (o *PublicCommentBase) GetEditKey() string` GetEditKey returns the EditKey field if non-nil, zero value otherwise. ### GetEditKeyOk -`func (o *PickFCommentPublicCommentFieldsKeys) GetEditKeyOk() (*string, bool)` +`func (o *PublicCommentBase) GetEditKeyOk() (*string, bool)` GetEditKeyOk returns a tuple with the EditKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEditKey -`func (o *PickFCommentPublicCommentFieldsKeys) SetEditKey(v string)` +`func (o *PublicCommentBase) SetEditKey(v string)` SetEditKey sets EditKey field to given value. ### HasEditKey -`func (o *PickFCommentPublicCommentFieldsKeys) HasEditKey() bool` +`func (o *PublicCommentBase) HasEditKey() bool` HasEditKey returns a boolean if a field has been set. +### GetApproved + +`func (o *PublicCommentBase) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *PublicCommentBase) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *PublicCommentBase) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + +### HasApproved + +`func (o *PublicCommentBase) HasApproved() bool` + +HasApproved returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/PublicFeedPostsResponse.md b/client/docs/PublicFeedPostsResponse.md index 1c2b5c9..e0ddac2 100644 --- a/client/docs/PublicFeedPostsResponse.md +++ b/client/docs/PublicFeedPostsResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **FeedPosts** | [**[]FeedPost**](FeedPost.md) | | **User** | Pointer to [**NullableUserSessionInfo**](UserSessionInfo.md) | | [optional] **UrlIdWS** | Pointer to **string** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewPublicFeedPostsResponse -`func NewPublicFeedPostsResponse(status ImportedAPIStatusSUCCESS, feedPosts []FeedPost, ) *PublicFeedPostsResponse` +`func NewPublicFeedPostsResponse(status APIStatus, feedPosts []FeedPost, ) *PublicFeedPostsResponse` NewPublicFeedPostsResponse instantiates a new PublicFeedPostsResponse object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *PublicFeedPostsResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *PublicFeedPostsResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PublicFeedPostsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *PublicFeedPostsResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PublicFeedPostsResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *PublicFeedPostsResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/ReactFeedPostPublic200Response.md b/client/docs/ReactFeedPostPublic200Response.md index c620583..7b3b98b 100644 --- a/client/docs/ReactFeedPostPublic200Response.md +++ b/client/docs/ReactFeedPostPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **ReactType** | **string** | | **IsUndo** | **bool** | | **Reason** | **string** | | @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewReactFeedPostPublic200Response -`func NewReactFeedPostPublic200Response(status ImportedAPIStatusFAILED, reactType string, isUndo bool, reason string, code string, ) *ReactFeedPostPublic200Response` +`func NewReactFeedPostPublic200Response(status APIStatus, reactType string, isUndo bool, reason string, code string, ) *ReactFeedPostPublic200Response` NewReactFeedPostPublic200Response instantiates a new ReactFeedPostPublic200Response object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *ReactFeedPostPublic200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *ReactFeedPostPublic200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *ReactFeedPostPublic200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *ReactFeedPostPublic200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *ReactFeedPostPublic200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *ReactFeedPostPublic200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/RepeatCommentCheckIgnoredReason.md b/client/docs/RepeatCommentCheckIgnoredReason.md new file mode 100644 index 0000000..c8bbd39 --- /dev/null +++ b/client/docs/RepeatCommentCheckIgnoredReason.md @@ -0,0 +1,23 @@ +# RepeatCommentCheckIgnoredReason + +## Enum + + +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) + +* `_3` (value: `3`) + +* `_4` (value: `4`) + +* `_5` (value: `5`) + +* `_6` (value: `6`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ImportedAPIStatusFAILED.md b/client/docs/RepeatCommentHandlingAction.md similarity index 65% rename from client/docs/ImportedAPIStatusFAILED.md rename to client/docs/RepeatCommentHandlingAction.md index aa522b3..733a228 100644 --- a/client/docs/ImportedAPIStatusFAILED.md +++ b/client/docs/RepeatCommentHandlingAction.md @@ -1,9 +1,13 @@ -# ImportedAPIStatusFAILED +# RepeatCommentHandlingAction ## Enum -* `FAILED` (value: `"failed"`) +* `_0` (value: `0`) + +* `_1` (value: `1`) + +* `_2` (value: `2`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ResetUserNotifications200Response.md b/client/docs/ResetUserNotifications200Response.md index 0e8b3f0..f338ae4 100644 --- a/client/docs/ResetUserNotifications200Response.md +++ b/client/docs/ResetUserNotifications200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Code** | **string** | | **Reason** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewResetUserNotifications200Response -`func NewResetUserNotifications200Response(status ImportedAPIStatusFAILED, code string, reason string, ) *ResetUserNotifications200Response` +`func NewResetUserNotifications200Response(status APIStatus, code string, reason string, ) *ResetUserNotifications200Response` NewResetUserNotifications200Response instantiates a new ResetUserNotifications200Response object This constructor will assign default values to properties that have it defined, @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *ResetUserNotifications200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *ResetUserNotifications200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *ResetUserNotifications200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *ResetUserNotifications200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *ResetUserNotifications200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *ResetUserNotifications200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/ResetUserNotificationsResponse.md b/client/docs/ResetUserNotificationsResponse.md index 98d2d38..cb51a7b 100644 --- a/client/docs/ResetUserNotificationsResponse.md +++ b/client/docs/ResetUserNotificationsResponse.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Code** | Pointer to **string** | | [optional] ## Methods ### NewResetUserNotificationsResponse -`func NewResetUserNotificationsResponse(status ImportedAPIStatusSUCCESS, ) *ResetUserNotificationsResponse` +`func NewResetUserNotificationsResponse(status APIStatus, ) *ResetUserNotificationsResponse` NewResetUserNotificationsResponse instantiates a new ResetUserNotificationsResponse object This constructor will assign default values to properties that have it defined, @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *ResetUserNotificationsResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *ResetUserNotificationsResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *ResetUserNotificationsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *ResetUserNotificationsResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *ResetUserNotificationsResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *ResetUserNotificationsResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/SaveComment200Response.md b/client/docs/SaveComment200Response.md index 1898a95..30e0d76 100644 --- a/client/docs/SaveComment200Response.md +++ b/client/docs/SaveComment200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Comment** | [**FComment**](FComment.md) | | **User** | [**NullableUserSessionInfo**](UserSessionInfo.md) | | **ModuleData** | Pointer to **map[string]map[string]interface{}** | Construct a type with a set of properties K of type T | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewSaveComment200Response -`func NewSaveComment200Response(status ImportedAPIStatusFAILED, comment FComment, user NullableUserSessionInfo, reason string, code string, ) *SaveComment200Response` +`func NewSaveComment200Response(status APIStatus, comment FComment, user NullableUserSessionInfo, reason string, code string, ) *SaveComment200Response` NewSaveComment200Response instantiates a new SaveComment200Response object This constructor will assign default values to properties that have it defined, @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *SaveComment200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *SaveComment200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *SaveComment200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *SaveComment200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *SaveComment200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *SaveComment200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/SaveCommentResponse.md b/client/docs/SaveCommentResponse.md index a2ffbfa..449edd6 100644 --- a/client/docs/SaveCommentResponse.md +++ b/client/docs/SaveCommentResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Comment** | [**FComment**](FComment.md) | | **User** | [**NullableUserSessionInfo**](UserSessionInfo.md) | | **ModuleData** | Pointer to **map[string]interface{}** | Construct a type with a set of properties K of type T | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewSaveCommentResponse -`func NewSaveCommentResponse(status ImportedAPIStatusSUCCESS, comment FComment, user NullableUserSessionInfo, ) *SaveCommentResponse` +`func NewSaveCommentResponse(status APIStatus, comment FComment, user NullableUserSessionInfo, ) *SaveCommentResponse` NewSaveCommentResponse instantiates a new SaveCommentResponse object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *SaveCommentResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *SaveCommentResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *SaveCommentResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *SaveCommentResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *SaveCommentResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *SaveCommentResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/SaveCommentResponseOptimized.md b/client/docs/SaveCommentResponseOptimized.md index c696f59..8af823c 100644 --- a/client/docs/SaveCommentResponseOptimized.md +++ b/client/docs/SaveCommentResponseOptimized.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Comment** | [**PublicComment**](PublicComment.md) | | **User** | [**NullableUserSessionInfo**](UserSessionInfo.md) | | **ModuleData** | Pointer to **map[string]interface{}** | Construct a type with a set of properties K of type T | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewSaveCommentResponseOptimized -`func NewSaveCommentResponseOptimized(status ImportedAPIStatusSUCCESS, comment PublicComment, user NullableUserSessionInfo, ) *SaveCommentResponseOptimized` +`func NewSaveCommentResponseOptimized(status APIStatus, comment PublicComment, user NullableUserSessionInfo, ) *SaveCommentResponseOptimized` NewSaveCommentResponseOptimized instantiates a new SaveCommentResponseOptimized object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *SaveCommentResponseOptimized) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *SaveCommentResponseOptimized) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *SaveCommentResponseOptimized) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *SaveCommentResponseOptimized) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *SaveCommentResponseOptimized) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *SaveCommentResponseOptimized) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/SaveCommentsResponseWithPresence.md b/client/docs/SaveCommentsResponseWithPresence.md index 21952e7..0148ab0 100644 --- a/client/docs/SaveCommentsResponseWithPresence.md +++ b/client/docs/SaveCommentsResponseWithPresence.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Comment** | [**PublicComment**](PublicComment.md) | | **User** | [**NullableUserSessionInfo**](UserSessionInfo.md) | | **ModuleData** | Pointer to **map[string]map[string]interface{}** | Construct a type with a set of properties K of type T | [optional] @@ -14,7 +14,7 @@ Name | Type | Description | Notes ### NewSaveCommentsResponseWithPresence -`func NewSaveCommentsResponseWithPresence(status ImportedAPIStatusSUCCESS, comment PublicComment, user NullableUserSessionInfo, ) *SaveCommentsResponseWithPresence` +`func NewSaveCommentsResponseWithPresence(status APIStatus, comment PublicComment, user NullableUserSessionInfo, ) *SaveCommentsResponseWithPresence` NewSaveCommentsResponseWithPresence instantiates a new SaveCommentsResponseWithPresence object This constructor will assign default values to properties that have it defined, @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *SaveCommentsResponseWithPresence) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *SaveCommentsResponseWithPresence) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *SaveCommentsResponseWithPresence) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *SaveCommentsResponseWithPresence) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *SaveCommentsResponseWithPresence) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *SaveCommentsResponseWithPresence) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/SearchUsers200Response.md b/client/docs/SearchUsers200Response.md index cebb5f1..0e7f540 100644 --- a/client/docs/SearchUsers200Response.md +++ b/client/docs/SearchUsers200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Users** | [**[]UserSearchResult**](UserSearchResult.md) | | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewSearchUsers200Response -`func NewSearchUsers200Response(status ImportedAPIStatusFAILED, users []UserSearchResult, reason string, code string, ) *SearchUsers200Response` +`func NewSearchUsers200Response(status APIStatus, users []UserSearchResult, reason string, code string, ) *SearchUsers200Response` NewSearchUsers200Response instantiates a new SearchUsers200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *SearchUsers200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *SearchUsers200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *SearchUsers200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *SearchUsers200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *SearchUsers200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *SearchUsers200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/SearchUsersResponse.md b/client/docs/SearchUsersResponse.md index a369ed0..e1fe1c2 100644 --- a/client/docs/SearchUsersResponse.md +++ b/client/docs/SearchUsersResponse.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Users** | [**[]UserSearchResult**](UserSearchResult.md) | | ## Methods ### NewSearchUsersResponse -`func NewSearchUsersResponse(status ImportedAPIStatusSUCCESS, users []UserSearchResult, ) *SearchUsersResponse` +`func NewSearchUsersResponse(status APIStatus, users []UserSearchResult, ) *SearchUsersResponse` NewSearchUsersResponse instantiates a new SearchUsersResponse object This constructor will assign default values to properties that have it defined, @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *SearchUsersResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *SearchUsersResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *SearchUsersResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *SearchUsersResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *SearchUsersResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *SearchUsersResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/SetCommentText200Response.md b/client/docs/SetCommentText200Response.md index 79584a3..c5c6a2e 100644 --- a/client/docs/SetCommentText200Response.md +++ b/client/docs/SetCommentText200Response.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Comment** | [**PickFCommentApprovedOrCommentHTML**](PickFCommentApprovedOrCommentHTML.md) | | -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewSetCommentText200Response -`func NewSetCommentText200Response(comment PickFCommentApprovedOrCommentHTML, status ImportedAPIStatusFAILED, reason string, code string, ) *SetCommentText200Response` +`func NewSetCommentText200Response(comment SetCommentTextResult, status APIStatus, reason string, code string, ) *SetCommentText200Response` NewSetCommentText200Response instantiates a new SetCommentText200Response object This constructor will assign default values to properties that have it defined, @@ -35,40 +35,40 @@ but it doesn't guarantee that properties required by API are set ### GetComment -`func (o *SetCommentText200Response) GetComment() PickFCommentApprovedOrCommentHTML` +`func (o *SetCommentText200Response) GetComment() SetCommentTextResult` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *SetCommentText200Response) GetCommentOk() (*PickFCommentApprovedOrCommentHTML, bool)` +`func (o *SetCommentText200Response) GetCommentOk() (*SetCommentTextResult, bool)` GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetComment -`func (o *SetCommentText200Response) SetComment(v PickFCommentApprovedOrCommentHTML)` +`func (o *SetCommentText200Response) SetComment(v SetCommentTextResult)` SetComment sets Comment field to given value. ### GetStatus -`func (o *SetCommentText200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *SetCommentText200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *SetCommentText200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *SetCommentText200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *SetCommentText200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *SetCommentText200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/PickFCommentApprovedOrCommentHTML.md b/client/docs/SetCommentTextResult.md similarity index 58% rename from client/docs/PickFCommentApprovedOrCommentHTML.md rename to client/docs/SetCommentTextResult.md index fcceaf1..b38a8fe 100644 --- a/client/docs/PickFCommentApprovedOrCommentHTML.md +++ b/client/docs/SetCommentTextResult.md @@ -1,69 +1,69 @@ -# PickFCommentApprovedOrCommentHTML +# SetCommentTextResult ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CommentHTML** | **string** | | **Approved** | **bool** | | +**CommentHTML** | **string** | | ## Methods -### NewPickFCommentApprovedOrCommentHTML +### NewSetCommentTextResult -`func NewPickFCommentApprovedOrCommentHTML(commentHTML string, approved bool, ) *PickFCommentApprovedOrCommentHTML` +`func NewSetCommentTextResult(approved bool, commentHTML string, ) *SetCommentTextResult` -NewPickFCommentApprovedOrCommentHTML instantiates a new PickFCommentApprovedOrCommentHTML object +NewSetCommentTextResult instantiates a new SetCommentTextResult 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 -### NewPickFCommentApprovedOrCommentHTMLWithDefaults +### NewSetCommentTextResultWithDefaults -`func NewPickFCommentApprovedOrCommentHTMLWithDefaults() *PickFCommentApprovedOrCommentHTML` +`func NewSetCommentTextResultWithDefaults() *SetCommentTextResult` -NewPickFCommentApprovedOrCommentHTMLWithDefaults instantiates a new PickFCommentApprovedOrCommentHTML object +NewSetCommentTextResultWithDefaults instantiates a new SetCommentTextResult 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 -### GetCommentHTML +### GetApproved -`func (o *PickFCommentApprovedOrCommentHTML) GetCommentHTML() string` +`func (o *SetCommentTextResult) GetApproved() bool` -GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. +GetApproved returns the Approved field if non-nil, zero value otherwise. -### GetCommentHTMLOk +### GetApprovedOk -`func (o *PickFCommentApprovedOrCommentHTML) GetCommentHTMLOk() (*string, bool)` +`func (o *SetCommentTextResult) GetApprovedOk() (*bool, bool)` -GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCommentHTML +### SetApproved -`func (o *PickFCommentApprovedOrCommentHTML) SetCommentHTML(v string)` +`func (o *SetCommentTextResult) SetApproved(v bool)` -SetCommentHTML sets CommentHTML field to given value. +SetApproved sets Approved field to given value. -### GetApproved +### GetCommentHTML -`func (o *PickFCommentApprovedOrCommentHTML) GetApproved() bool` +`func (o *SetCommentTextResult) GetCommentHTML() string` -GetApproved returns the Approved field if non-nil, zero value otherwise. +GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. -### GetApprovedOk +### GetCommentHTMLOk -`func (o *PickFCommentApprovedOrCommentHTML) GetApprovedOk() (*bool, bool)` +`func (o *SetCommentTextResult) GetCommentHTMLOk() (*string, bool)` -GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetApproved +### SetCommentHTML -`func (o *PickFCommentApprovedOrCommentHTML) SetApproved(v bool)` +`func (o *SetCommentTextResult) SetCommentHTML(v string)` -SetApproved sets Approved field to given value. +SetCommentHTML sets CommentHTML field to given value. diff --git a/client/docs/UnBlockCommentPublic200Response.md b/client/docs/UnBlockCommentPublic200Response.md index 86a2ef3..e429b9a 100644 --- a/client/docs/UnBlockCommentPublic200Response.md +++ b/client/docs/UnBlockCommentPublic200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **CommentStatuses** | **map[string]bool** | Construct a type with a set of properties K of type T | **Reason** | **string** | | **Code** | **string** | | @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewUnBlockCommentPublic200Response -`func NewUnBlockCommentPublic200Response(status ImportedAPIStatusFAILED, commentStatuses map[string]bool, reason string, code string, ) *UnBlockCommentPublic200Response` +`func NewUnBlockCommentPublic200Response(status APIStatus, commentStatuses map[string]bool, reason string, code string, ) *UnBlockCommentPublic200Response` NewUnBlockCommentPublic200Response instantiates a new UnBlockCommentPublic200Response object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *UnBlockCommentPublic200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *UnBlockCommentPublic200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *UnBlockCommentPublic200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *UnBlockCommentPublic200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *UnBlockCommentPublic200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *UnBlockCommentPublic200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/UnblockSuccess.md b/client/docs/UnblockSuccess.md index a7ea269..4b67954 100644 --- a/client/docs/UnblockSuccess.md +++ b/client/docs/UnblockSuccess.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **CommentStatuses** | **map[string]bool** | Construct a type with a set of properties K of type T | ## Methods ### NewUnblockSuccess -`func NewUnblockSuccess(status ImportedAPIStatusSUCCESS, commentStatuses map[string]bool, ) *UnblockSuccess` +`func NewUnblockSuccess(status APIStatus, commentStatuses map[string]bool, ) *UnblockSuccess` NewUnblockSuccess instantiates a new UnblockSuccess object This constructor will assign default values to properties that have it defined, @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *UnblockSuccess) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *UnblockSuccess) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *UnblockSuccess) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *UnblockSuccess) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *UnblockSuccess) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *UnblockSuccess) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/UpdatableCommentParams.md b/client/docs/UpdatableCommentParams.md new file mode 100644 index 0000000..24a7512 --- /dev/null +++ b/client/docs/UpdatableCommentParams.md @@ -0,0 +1,1254 @@ +# UpdatableCommentParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UrlId** | Pointer to **string** | | [optional] +**UrlIdRaw** | Pointer to **string** | | [optional] +**Url** | Pointer to **string** | | [optional] +**PageTitle** | Pointer to **NullableString** | | [optional] +**UserId** | Pointer to **NullableString** | | [optional] +**CommenterEmail** | Pointer to **NullableString** | | [optional] +**CommenterName** | Pointer to **string** | | [optional] +**CommenterLink** | Pointer to **NullableString** | | [optional] +**Comment** | Pointer to **string** | | [optional] +**CommentHTML** | Pointer to **string** | | [optional] +**ParentId** | Pointer to **NullableString** | | [optional] +**Date** | Pointer to **NullableFloat64** | | [optional] +**LocalDateString** | Pointer to **NullableString** | | [optional] +**LocalDateHours** | Pointer to **NullableInt32** | | [optional] +**Votes** | Pointer to **NullableInt32** | | [optional] +**VotesUp** | Pointer to **NullableInt32** | | [optional] +**VotesDown** | Pointer to **NullableInt32** | | [optional] +**ExpireAt** | Pointer to **NullableTime** | | [optional] +**Verified** | Pointer to **bool** | | [optional] +**VerifiedDate** | Pointer to **NullableTime** | | [optional] +**NotificationSentForParent** | Pointer to **bool** | | [optional] +**NotificationSentForParentTenant** | Pointer to **bool** | | [optional] +**Reviewed** | Pointer to **bool** | | [optional] +**ExternalId** | Pointer to **string** | | [optional] +**ExternalParentId** | Pointer to **NullableString** | | [optional] +**AvatarSrc** | Pointer to **NullableString** | | [optional] +**IsSpam** | Pointer to **bool** | | [optional] +**Approved** | Pointer to **bool** | | [optional] +**IsDeleted** | Pointer to **bool** | | [optional] +**IsDeletedUser** | Pointer to **bool** | | [optional] +**IsByAdmin** | Pointer to **bool** | | [optional] +**IsByModerator** | Pointer to **bool** | | [optional] +**IsPinned** | Pointer to **NullableBool** | | [optional] +**IsLocked** | Pointer to **NullableBool** | | [optional] +**FlagCount** | Pointer to **NullableInt32** | | [optional] +**DisplayLabel** | Pointer to **NullableString** | | [optional] +**Meta** | Pointer to [**NullableFCommentMeta**](FCommentMeta.md) | | [optional] +**ModerationGroupIds** | Pointer to **[]string** | | [optional] +**FeedbackIds** | Pointer to **[]string** | | [optional] + +## Methods + +### NewUpdatableCommentParams + +`func NewUpdatableCommentParams() *UpdatableCommentParams` + +NewUpdatableCommentParams instantiates a new UpdatableCommentParams 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 + +### NewUpdatableCommentParamsWithDefaults + +`func NewUpdatableCommentParamsWithDefaults() *UpdatableCommentParams` + +NewUpdatableCommentParamsWithDefaults instantiates a new UpdatableCommentParams 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 + +### GetUrlId + +`func (o *UpdatableCommentParams) GetUrlId() string` + +GetUrlId returns the UrlId field if non-nil, zero value otherwise. + +### GetUrlIdOk + +`func (o *UpdatableCommentParams) GetUrlIdOk() (*string, bool)` + +GetUrlIdOk returns a tuple with the UrlId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlId + +`func (o *UpdatableCommentParams) SetUrlId(v string)` + +SetUrlId sets UrlId field to given value. + +### HasUrlId + +`func (o *UpdatableCommentParams) HasUrlId() bool` + +HasUrlId returns a boolean if a field has been set. + +### GetUrlIdRaw + +`func (o *UpdatableCommentParams) GetUrlIdRaw() string` + +GetUrlIdRaw returns the UrlIdRaw field if non-nil, zero value otherwise. + +### GetUrlIdRawOk + +`func (o *UpdatableCommentParams) GetUrlIdRawOk() (*string, bool)` + +GetUrlIdRawOk returns a tuple with the UrlIdRaw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlIdRaw + +`func (o *UpdatableCommentParams) SetUrlIdRaw(v string)` + +SetUrlIdRaw sets UrlIdRaw field to given value. + +### HasUrlIdRaw + +`func (o *UpdatableCommentParams) HasUrlIdRaw() bool` + +HasUrlIdRaw returns a boolean if a field has been set. + +### GetUrl + +`func (o *UpdatableCommentParams) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *UpdatableCommentParams) 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 *UpdatableCommentParams) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *UpdatableCommentParams) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetPageTitle + +`func (o *UpdatableCommentParams) GetPageTitle() string` + +GetPageTitle returns the PageTitle field if non-nil, zero value otherwise. + +### GetPageTitleOk + +`func (o *UpdatableCommentParams) GetPageTitleOk() (*string, bool)` + +GetPageTitleOk returns a tuple with the PageTitle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageTitle + +`func (o *UpdatableCommentParams) SetPageTitle(v string)` + +SetPageTitle sets PageTitle field to given value. + +### HasPageTitle + +`func (o *UpdatableCommentParams) HasPageTitle() bool` + +HasPageTitle returns a boolean if a field has been set. + +### SetPageTitleNil + +`func (o *UpdatableCommentParams) SetPageTitleNil(b bool)` + + SetPageTitleNil sets the value for PageTitle to be an explicit nil + +### UnsetPageTitle +`func (o *UpdatableCommentParams) UnsetPageTitle()` + +UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +### GetUserId + +`func (o *UpdatableCommentParams) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *UpdatableCommentParams) GetUserIdOk() (*string, 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 *UpdatableCommentParams) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *UpdatableCommentParams) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *UpdatableCommentParams) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *UpdatableCommentParams) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, not even an explicit nil +### GetCommenterEmail + +`func (o *UpdatableCommentParams) GetCommenterEmail() string` + +GetCommenterEmail returns the CommenterEmail field if non-nil, zero value otherwise. + +### GetCommenterEmailOk + +`func (o *UpdatableCommentParams) GetCommenterEmailOk() (*string, bool)` + +GetCommenterEmailOk returns a tuple with the CommenterEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommenterEmail + +`func (o *UpdatableCommentParams) SetCommenterEmail(v string)` + +SetCommenterEmail sets CommenterEmail field to given value. + +### HasCommenterEmail + +`func (o *UpdatableCommentParams) HasCommenterEmail() bool` + +HasCommenterEmail returns a boolean if a field has been set. + +### SetCommenterEmailNil + +`func (o *UpdatableCommentParams) SetCommenterEmailNil(b bool)` + + SetCommenterEmailNil sets the value for CommenterEmail to be an explicit nil + +### UnsetCommenterEmail +`func (o *UpdatableCommentParams) UnsetCommenterEmail()` + +UnsetCommenterEmail ensures that no value is present for CommenterEmail, not even an explicit nil +### GetCommenterName + +`func (o *UpdatableCommentParams) GetCommenterName() string` + +GetCommenterName returns the CommenterName field if non-nil, zero value otherwise. + +### GetCommenterNameOk + +`func (o *UpdatableCommentParams) GetCommenterNameOk() (*string, bool)` + +GetCommenterNameOk returns a tuple with the CommenterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommenterName + +`func (o *UpdatableCommentParams) SetCommenterName(v string)` + +SetCommenterName sets CommenterName field to given value. + +### HasCommenterName + +`func (o *UpdatableCommentParams) HasCommenterName() bool` + +HasCommenterName returns a boolean if a field has been set. + +### GetCommenterLink + +`func (o *UpdatableCommentParams) GetCommenterLink() string` + +GetCommenterLink returns the CommenterLink field if non-nil, zero value otherwise. + +### GetCommenterLinkOk + +`func (o *UpdatableCommentParams) GetCommenterLinkOk() (*string, bool)` + +GetCommenterLinkOk returns a tuple with the CommenterLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommenterLink + +`func (o *UpdatableCommentParams) SetCommenterLink(v string)` + +SetCommenterLink sets CommenterLink field to given value. + +### HasCommenterLink + +`func (o *UpdatableCommentParams) HasCommenterLink() bool` + +HasCommenterLink returns a boolean if a field has been set. + +### SetCommenterLinkNil + +`func (o *UpdatableCommentParams) SetCommenterLinkNil(b bool)` + + SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil + +### UnsetCommenterLink +`func (o *UpdatableCommentParams) UnsetCommenterLink()` + +UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +### GetComment + +`func (o *UpdatableCommentParams) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *UpdatableCommentParams) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *UpdatableCommentParams) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *UpdatableCommentParams) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetCommentHTML + +`func (o *UpdatableCommentParams) GetCommentHTML() string` + +GetCommentHTML returns the CommentHTML field if non-nil, zero value otherwise. + +### GetCommentHTMLOk + +`func (o *UpdatableCommentParams) GetCommentHTMLOk() (*string, bool)` + +GetCommentHTMLOk returns a tuple with the CommentHTML field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentHTML + +`func (o *UpdatableCommentParams) SetCommentHTML(v string)` + +SetCommentHTML sets CommentHTML field to given value. + +### HasCommentHTML + +`func (o *UpdatableCommentParams) HasCommentHTML() bool` + +HasCommentHTML returns a boolean if a field has been set. + +### GetParentId + +`func (o *UpdatableCommentParams) GetParentId() string` + +GetParentId returns the ParentId field if non-nil, zero value otherwise. + +### GetParentIdOk + +`func (o *UpdatableCommentParams) GetParentIdOk() (*string, bool)` + +GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentId + +`func (o *UpdatableCommentParams) SetParentId(v string)` + +SetParentId sets ParentId field to given value. + +### HasParentId + +`func (o *UpdatableCommentParams) HasParentId() bool` + +HasParentId returns a boolean if a field has been set. + +### SetParentIdNil + +`func (o *UpdatableCommentParams) SetParentIdNil(b bool)` + + SetParentIdNil sets the value for ParentId to be an explicit nil + +### UnsetParentId +`func (o *UpdatableCommentParams) UnsetParentId()` + +UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +### GetDate + +`func (o *UpdatableCommentParams) GetDate() float64` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *UpdatableCommentParams) GetDateOk() (*float64, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *UpdatableCommentParams) SetDate(v float64)` + +SetDate sets Date field to given value. + +### HasDate + +`func (o *UpdatableCommentParams) HasDate() bool` + +HasDate returns a boolean if a field has been set. + +### SetDateNil + +`func (o *UpdatableCommentParams) SetDateNil(b bool)` + + SetDateNil sets the value for Date to be an explicit nil + +### UnsetDate +`func (o *UpdatableCommentParams) UnsetDate()` + +UnsetDate ensures that no value is present for Date, not even an explicit nil +### GetLocalDateString + +`func (o *UpdatableCommentParams) GetLocalDateString() string` + +GetLocalDateString returns the LocalDateString field if non-nil, zero value otherwise. + +### GetLocalDateStringOk + +`func (o *UpdatableCommentParams) GetLocalDateStringOk() (*string, bool)` + +GetLocalDateStringOk returns a tuple with the LocalDateString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalDateString + +`func (o *UpdatableCommentParams) SetLocalDateString(v string)` + +SetLocalDateString sets LocalDateString field to given value. + +### HasLocalDateString + +`func (o *UpdatableCommentParams) HasLocalDateString() bool` + +HasLocalDateString returns a boolean if a field has been set. + +### SetLocalDateStringNil + +`func (o *UpdatableCommentParams) SetLocalDateStringNil(b bool)` + + SetLocalDateStringNil sets the value for LocalDateString to be an explicit nil + +### UnsetLocalDateString +`func (o *UpdatableCommentParams) UnsetLocalDateString()` + +UnsetLocalDateString ensures that no value is present for LocalDateString, not even an explicit nil +### GetLocalDateHours + +`func (o *UpdatableCommentParams) GetLocalDateHours() int32` + +GetLocalDateHours returns the LocalDateHours field if non-nil, zero value otherwise. + +### GetLocalDateHoursOk + +`func (o *UpdatableCommentParams) GetLocalDateHoursOk() (*int32, bool)` + +GetLocalDateHoursOk returns a tuple with the LocalDateHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalDateHours + +`func (o *UpdatableCommentParams) SetLocalDateHours(v int32)` + +SetLocalDateHours sets LocalDateHours field to given value. + +### HasLocalDateHours + +`func (o *UpdatableCommentParams) HasLocalDateHours() bool` + +HasLocalDateHours returns a boolean if a field has been set. + +### SetLocalDateHoursNil + +`func (o *UpdatableCommentParams) SetLocalDateHoursNil(b bool)` + + SetLocalDateHoursNil sets the value for LocalDateHours to be an explicit nil + +### UnsetLocalDateHours +`func (o *UpdatableCommentParams) UnsetLocalDateHours()` + +UnsetLocalDateHours ensures that no value is present for LocalDateHours, not even an explicit nil +### GetVotes + +`func (o *UpdatableCommentParams) GetVotes() int32` + +GetVotes returns the Votes field if non-nil, zero value otherwise. + +### GetVotesOk + +`func (o *UpdatableCommentParams) GetVotesOk() (*int32, bool)` + +GetVotesOk returns a tuple with the Votes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotes + +`func (o *UpdatableCommentParams) SetVotes(v int32)` + +SetVotes sets Votes field to given value. + +### HasVotes + +`func (o *UpdatableCommentParams) HasVotes() bool` + +HasVotes returns a boolean if a field has been set. + +### SetVotesNil + +`func (o *UpdatableCommentParams) SetVotesNil(b bool)` + + SetVotesNil sets the value for Votes to be an explicit nil + +### UnsetVotes +`func (o *UpdatableCommentParams) UnsetVotes()` + +UnsetVotes ensures that no value is present for Votes, not even an explicit nil +### GetVotesUp + +`func (o *UpdatableCommentParams) GetVotesUp() int32` + +GetVotesUp returns the VotesUp field if non-nil, zero value otherwise. + +### GetVotesUpOk + +`func (o *UpdatableCommentParams) GetVotesUpOk() (*int32, bool)` + +GetVotesUpOk returns a tuple with the VotesUp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesUp + +`func (o *UpdatableCommentParams) SetVotesUp(v int32)` + +SetVotesUp sets VotesUp field to given value. + +### HasVotesUp + +`func (o *UpdatableCommentParams) HasVotesUp() bool` + +HasVotesUp returns a boolean if a field has been set. + +### SetVotesUpNil + +`func (o *UpdatableCommentParams) SetVotesUpNil(b bool)` + + SetVotesUpNil sets the value for VotesUp to be an explicit nil + +### UnsetVotesUp +`func (o *UpdatableCommentParams) UnsetVotesUp()` + +UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil +### GetVotesDown + +`func (o *UpdatableCommentParams) GetVotesDown() int32` + +GetVotesDown returns the VotesDown field if non-nil, zero value otherwise. + +### GetVotesDownOk + +`func (o *UpdatableCommentParams) GetVotesDownOk() (*int32, bool)` + +GetVotesDownOk returns a tuple with the VotesDown field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotesDown + +`func (o *UpdatableCommentParams) SetVotesDown(v int32)` + +SetVotesDown sets VotesDown field to given value. + +### HasVotesDown + +`func (o *UpdatableCommentParams) HasVotesDown() bool` + +HasVotesDown returns a boolean if a field has been set. + +### SetVotesDownNil + +`func (o *UpdatableCommentParams) SetVotesDownNil(b bool)` + + SetVotesDownNil sets the value for VotesDown to be an explicit nil + +### UnsetVotesDown +`func (o *UpdatableCommentParams) UnsetVotesDown()` + +UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +### GetExpireAt + +`func (o *UpdatableCommentParams) GetExpireAt() time.Time` + +GetExpireAt returns the ExpireAt field if non-nil, zero value otherwise. + +### GetExpireAtOk + +`func (o *UpdatableCommentParams) GetExpireAtOk() (*time.Time, bool)` + +GetExpireAtOk returns a tuple with the ExpireAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpireAt + +`func (o *UpdatableCommentParams) SetExpireAt(v time.Time)` + +SetExpireAt sets ExpireAt field to given value. + +### HasExpireAt + +`func (o *UpdatableCommentParams) HasExpireAt() bool` + +HasExpireAt returns a boolean if a field has been set. + +### SetExpireAtNil + +`func (o *UpdatableCommentParams) SetExpireAtNil(b bool)` + + SetExpireAtNil sets the value for ExpireAt to be an explicit nil + +### UnsetExpireAt +`func (o *UpdatableCommentParams) UnsetExpireAt()` + +UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +### GetVerified + +`func (o *UpdatableCommentParams) GetVerified() bool` + +GetVerified returns the Verified field if non-nil, zero value otherwise. + +### GetVerifiedOk + +`func (o *UpdatableCommentParams) GetVerifiedOk() (*bool, bool)` + +GetVerifiedOk returns a tuple with the Verified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerified + +`func (o *UpdatableCommentParams) SetVerified(v bool)` + +SetVerified sets Verified field to given value. + +### HasVerified + +`func (o *UpdatableCommentParams) HasVerified() bool` + +HasVerified returns a boolean if a field has been set. + +### GetVerifiedDate + +`func (o *UpdatableCommentParams) GetVerifiedDate() time.Time` + +GetVerifiedDate returns the VerifiedDate field if non-nil, zero value otherwise. + +### GetVerifiedDateOk + +`func (o *UpdatableCommentParams) GetVerifiedDateOk() (*time.Time, bool)` + +GetVerifiedDateOk returns a tuple with the VerifiedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifiedDate + +`func (o *UpdatableCommentParams) SetVerifiedDate(v time.Time)` + +SetVerifiedDate sets VerifiedDate field to given value. + +### HasVerifiedDate + +`func (o *UpdatableCommentParams) HasVerifiedDate() bool` + +HasVerifiedDate returns a boolean if a field has been set. + +### SetVerifiedDateNil + +`func (o *UpdatableCommentParams) SetVerifiedDateNil(b bool)` + + SetVerifiedDateNil sets the value for VerifiedDate to be an explicit nil + +### UnsetVerifiedDate +`func (o *UpdatableCommentParams) UnsetVerifiedDate()` + +UnsetVerifiedDate ensures that no value is present for VerifiedDate, not even an explicit nil +### GetNotificationSentForParent + +`func (o *UpdatableCommentParams) GetNotificationSentForParent() bool` + +GetNotificationSentForParent returns the NotificationSentForParent field if non-nil, zero value otherwise. + +### GetNotificationSentForParentOk + +`func (o *UpdatableCommentParams) GetNotificationSentForParentOk() (*bool, bool)` + +GetNotificationSentForParentOk returns a tuple with the NotificationSentForParent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationSentForParent + +`func (o *UpdatableCommentParams) SetNotificationSentForParent(v bool)` + +SetNotificationSentForParent sets NotificationSentForParent field to given value. + +### HasNotificationSentForParent + +`func (o *UpdatableCommentParams) HasNotificationSentForParent() bool` + +HasNotificationSentForParent returns a boolean if a field has been set. + +### GetNotificationSentForParentTenant + +`func (o *UpdatableCommentParams) GetNotificationSentForParentTenant() bool` + +GetNotificationSentForParentTenant returns the NotificationSentForParentTenant field if non-nil, zero value otherwise. + +### GetNotificationSentForParentTenantOk + +`func (o *UpdatableCommentParams) GetNotificationSentForParentTenantOk() (*bool, bool)` + +GetNotificationSentForParentTenantOk returns a tuple with the NotificationSentForParentTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationSentForParentTenant + +`func (o *UpdatableCommentParams) SetNotificationSentForParentTenant(v bool)` + +SetNotificationSentForParentTenant sets NotificationSentForParentTenant field to given value. + +### HasNotificationSentForParentTenant + +`func (o *UpdatableCommentParams) HasNotificationSentForParentTenant() bool` + +HasNotificationSentForParentTenant returns a boolean if a field has been set. + +### GetReviewed + +`func (o *UpdatableCommentParams) GetReviewed() bool` + +GetReviewed returns the Reviewed field if non-nil, zero value otherwise. + +### GetReviewedOk + +`func (o *UpdatableCommentParams) GetReviewedOk() (*bool, bool)` + +GetReviewedOk returns a tuple with the Reviewed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReviewed + +`func (o *UpdatableCommentParams) SetReviewed(v bool)` + +SetReviewed sets Reviewed field to given value. + +### HasReviewed + +`func (o *UpdatableCommentParams) HasReviewed() bool` + +HasReviewed returns a boolean if a field has been set. + +### GetExternalId + +`func (o *UpdatableCommentParams) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *UpdatableCommentParams) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *UpdatableCommentParams) SetExternalId(v string)` + +SetExternalId sets ExternalId field to given value. + +### HasExternalId + +`func (o *UpdatableCommentParams) HasExternalId() bool` + +HasExternalId returns a boolean if a field has been set. + +### GetExternalParentId + +`func (o *UpdatableCommentParams) GetExternalParentId() string` + +GetExternalParentId returns the ExternalParentId field if non-nil, zero value otherwise. + +### GetExternalParentIdOk + +`func (o *UpdatableCommentParams) GetExternalParentIdOk() (*string, bool)` + +GetExternalParentIdOk returns a tuple with the ExternalParentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalParentId + +`func (o *UpdatableCommentParams) SetExternalParentId(v string)` + +SetExternalParentId sets ExternalParentId field to given value. + +### HasExternalParentId + +`func (o *UpdatableCommentParams) HasExternalParentId() bool` + +HasExternalParentId returns a boolean if a field has been set. + +### SetExternalParentIdNil + +`func (o *UpdatableCommentParams) SetExternalParentIdNil(b bool)` + + SetExternalParentIdNil sets the value for ExternalParentId to be an explicit nil + +### UnsetExternalParentId +`func (o *UpdatableCommentParams) UnsetExternalParentId()` + +UnsetExternalParentId ensures that no value is present for ExternalParentId, not even an explicit nil +### GetAvatarSrc + +`func (o *UpdatableCommentParams) GetAvatarSrc() string` + +GetAvatarSrc returns the AvatarSrc field if non-nil, zero value otherwise. + +### GetAvatarSrcOk + +`func (o *UpdatableCommentParams) GetAvatarSrcOk() (*string, bool)` + +GetAvatarSrcOk returns a tuple with the AvatarSrc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatarSrc + +`func (o *UpdatableCommentParams) SetAvatarSrc(v string)` + +SetAvatarSrc sets AvatarSrc field to given value. + +### HasAvatarSrc + +`func (o *UpdatableCommentParams) HasAvatarSrc() bool` + +HasAvatarSrc returns a boolean if a field has been set. + +### SetAvatarSrcNil + +`func (o *UpdatableCommentParams) SetAvatarSrcNil(b bool)` + + SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil + +### UnsetAvatarSrc +`func (o *UpdatableCommentParams) UnsetAvatarSrc()` + +UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +### GetIsSpam + +`func (o *UpdatableCommentParams) GetIsSpam() bool` + +GetIsSpam returns the IsSpam field if non-nil, zero value otherwise. + +### GetIsSpamOk + +`func (o *UpdatableCommentParams) GetIsSpamOk() (*bool, bool)` + +GetIsSpamOk returns a tuple with the IsSpam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSpam + +`func (o *UpdatableCommentParams) SetIsSpam(v bool)` + +SetIsSpam sets IsSpam field to given value. + +### HasIsSpam + +`func (o *UpdatableCommentParams) HasIsSpam() bool` + +HasIsSpam returns a boolean if a field has been set. + +### GetApproved + +`func (o *UpdatableCommentParams) GetApproved() bool` + +GetApproved returns the Approved field if non-nil, zero value otherwise. + +### GetApprovedOk + +`func (o *UpdatableCommentParams) GetApprovedOk() (*bool, bool)` + +GetApprovedOk returns a tuple with the Approved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApproved + +`func (o *UpdatableCommentParams) SetApproved(v bool)` + +SetApproved sets Approved field to given value. + +### HasApproved + +`func (o *UpdatableCommentParams) HasApproved() bool` + +HasApproved returns a boolean if a field has been set. + +### GetIsDeleted + +`func (o *UpdatableCommentParams) GetIsDeleted() bool` + +GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise. + +### GetIsDeletedOk + +`func (o *UpdatableCommentParams) GetIsDeletedOk() (*bool, bool)` + +GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeleted + +`func (o *UpdatableCommentParams) SetIsDeleted(v bool)` + +SetIsDeleted sets IsDeleted field to given value. + +### HasIsDeleted + +`func (o *UpdatableCommentParams) HasIsDeleted() bool` + +HasIsDeleted returns a boolean if a field has been set. + +### GetIsDeletedUser + +`func (o *UpdatableCommentParams) GetIsDeletedUser() bool` + +GetIsDeletedUser returns the IsDeletedUser field if non-nil, zero value otherwise. + +### GetIsDeletedUserOk + +`func (o *UpdatableCommentParams) GetIsDeletedUserOk() (*bool, bool)` + +GetIsDeletedUserOk returns a tuple with the IsDeletedUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeletedUser + +`func (o *UpdatableCommentParams) SetIsDeletedUser(v bool)` + +SetIsDeletedUser sets IsDeletedUser field to given value. + +### HasIsDeletedUser + +`func (o *UpdatableCommentParams) HasIsDeletedUser() bool` + +HasIsDeletedUser returns a boolean if a field has been set. + +### GetIsByAdmin + +`func (o *UpdatableCommentParams) GetIsByAdmin() bool` + +GetIsByAdmin returns the IsByAdmin field if non-nil, zero value otherwise. + +### GetIsByAdminOk + +`func (o *UpdatableCommentParams) GetIsByAdminOk() (*bool, bool)` + +GetIsByAdminOk returns a tuple with the IsByAdmin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsByAdmin + +`func (o *UpdatableCommentParams) SetIsByAdmin(v bool)` + +SetIsByAdmin sets IsByAdmin field to given value. + +### HasIsByAdmin + +`func (o *UpdatableCommentParams) HasIsByAdmin() bool` + +HasIsByAdmin returns a boolean if a field has been set. + +### GetIsByModerator + +`func (o *UpdatableCommentParams) GetIsByModerator() bool` + +GetIsByModerator returns the IsByModerator field if non-nil, zero value otherwise. + +### GetIsByModeratorOk + +`func (o *UpdatableCommentParams) GetIsByModeratorOk() (*bool, bool)` + +GetIsByModeratorOk returns a tuple with the IsByModerator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsByModerator + +`func (o *UpdatableCommentParams) SetIsByModerator(v bool)` + +SetIsByModerator sets IsByModerator field to given value. + +### HasIsByModerator + +`func (o *UpdatableCommentParams) HasIsByModerator() bool` + +HasIsByModerator returns a boolean if a field has been set. + +### GetIsPinned + +`func (o *UpdatableCommentParams) GetIsPinned() bool` + +GetIsPinned returns the IsPinned field if non-nil, zero value otherwise. + +### GetIsPinnedOk + +`func (o *UpdatableCommentParams) GetIsPinnedOk() (*bool, bool)` + +GetIsPinnedOk returns a tuple with the IsPinned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPinned + +`func (o *UpdatableCommentParams) SetIsPinned(v bool)` + +SetIsPinned sets IsPinned field to given value. + +### HasIsPinned + +`func (o *UpdatableCommentParams) HasIsPinned() bool` + +HasIsPinned returns a boolean if a field has been set. + +### SetIsPinnedNil + +`func (o *UpdatableCommentParams) SetIsPinnedNil(b bool)` + + SetIsPinnedNil sets the value for IsPinned to be an explicit nil + +### UnsetIsPinned +`func (o *UpdatableCommentParams) UnsetIsPinned()` + +UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +### GetIsLocked + +`func (o *UpdatableCommentParams) GetIsLocked() bool` + +GetIsLocked returns the IsLocked field if non-nil, zero value otherwise. + +### GetIsLockedOk + +`func (o *UpdatableCommentParams) GetIsLockedOk() (*bool, bool)` + +GetIsLockedOk returns a tuple with the IsLocked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsLocked + +`func (o *UpdatableCommentParams) SetIsLocked(v bool)` + +SetIsLocked sets IsLocked field to given value. + +### HasIsLocked + +`func (o *UpdatableCommentParams) HasIsLocked() bool` + +HasIsLocked returns a boolean if a field has been set. + +### SetIsLockedNil + +`func (o *UpdatableCommentParams) SetIsLockedNil(b bool)` + + SetIsLockedNil sets the value for IsLocked to be an explicit nil + +### UnsetIsLocked +`func (o *UpdatableCommentParams) UnsetIsLocked()` + +UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +### GetFlagCount + +`func (o *UpdatableCommentParams) GetFlagCount() int32` + +GetFlagCount returns the FlagCount field if non-nil, zero value otherwise. + +### GetFlagCountOk + +`func (o *UpdatableCommentParams) GetFlagCountOk() (*int32, bool)` + +GetFlagCountOk returns a tuple with the FlagCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlagCount + +`func (o *UpdatableCommentParams) SetFlagCount(v int32)` + +SetFlagCount sets FlagCount field to given value. + +### HasFlagCount + +`func (o *UpdatableCommentParams) HasFlagCount() bool` + +HasFlagCount returns a boolean if a field has been set. + +### SetFlagCountNil + +`func (o *UpdatableCommentParams) SetFlagCountNil(b bool)` + + SetFlagCountNil sets the value for FlagCount to be an explicit nil + +### UnsetFlagCount +`func (o *UpdatableCommentParams) UnsetFlagCount()` + +UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil +### GetDisplayLabel + +`func (o *UpdatableCommentParams) GetDisplayLabel() string` + +GetDisplayLabel returns the DisplayLabel field if non-nil, zero value otherwise. + +### GetDisplayLabelOk + +`func (o *UpdatableCommentParams) GetDisplayLabelOk() (*string, bool)` + +GetDisplayLabelOk returns a tuple with the DisplayLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayLabel + +`func (o *UpdatableCommentParams) SetDisplayLabel(v string)` + +SetDisplayLabel sets DisplayLabel field to given value. + +### HasDisplayLabel + +`func (o *UpdatableCommentParams) HasDisplayLabel() bool` + +HasDisplayLabel returns a boolean if a field has been set. + +### SetDisplayLabelNil + +`func (o *UpdatableCommentParams) SetDisplayLabelNil(b bool)` + + SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil + +### UnsetDisplayLabel +`func (o *UpdatableCommentParams) UnsetDisplayLabel()` + +UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +### GetMeta + +`func (o *UpdatableCommentParams) GetMeta() FCommentMeta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *UpdatableCommentParams) GetMetaOk() (*FCommentMeta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *UpdatableCommentParams) SetMeta(v FCommentMeta)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *UpdatableCommentParams) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### SetMetaNil + +`func (o *UpdatableCommentParams) SetMetaNil(b bool)` + + SetMetaNil sets the value for Meta to be an explicit nil + +### UnsetMeta +`func (o *UpdatableCommentParams) UnsetMeta()` + +UnsetMeta ensures that no value is present for Meta, not even an explicit nil +### GetModerationGroupIds + +`func (o *UpdatableCommentParams) GetModerationGroupIds() []string` + +GetModerationGroupIds returns the ModerationGroupIds field if non-nil, zero value otherwise. + +### GetModerationGroupIdsOk + +`func (o *UpdatableCommentParams) GetModerationGroupIdsOk() (*[]string, bool)` + +GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModerationGroupIds + +`func (o *UpdatableCommentParams) SetModerationGroupIds(v []string)` + +SetModerationGroupIds sets ModerationGroupIds field to given value. + +### HasModerationGroupIds + +`func (o *UpdatableCommentParams) HasModerationGroupIds() bool` + +HasModerationGroupIds returns a boolean if a field has been set. + +### SetModerationGroupIdsNil + +`func (o *UpdatableCommentParams) SetModerationGroupIdsNil(b bool)` + + SetModerationGroupIdsNil sets the value for ModerationGroupIds to be an explicit nil + +### UnsetModerationGroupIds +`func (o *UpdatableCommentParams) UnsetModerationGroupIds()` + +UnsetModerationGroupIds ensures that no value is present for ModerationGroupIds, not even an explicit nil +### GetFeedbackIds + +`func (o *UpdatableCommentParams) GetFeedbackIds() []string` + +GetFeedbackIds returns the FeedbackIds field if non-nil, zero value otherwise. + +### GetFeedbackIdsOk + +`func (o *UpdatableCommentParams) GetFeedbackIdsOk() (*[]string, bool)` + +GetFeedbackIdsOk returns a tuple with the FeedbackIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeedbackIds + +`func (o *UpdatableCommentParams) SetFeedbackIds(v []string)` + +SetFeedbackIds sets FeedbackIds field to given value. + +### HasFeedbackIds + +`func (o *UpdatableCommentParams) HasFeedbackIds() bool` + +HasFeedbackIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/UpdateUserBadge200Response.md b/client/docs/UpdateUserBadge200Response.md index 2444c5f..7930956 100644 --- a/client/docs/UpdateUserBadge200Response.md +++ b/client/docs/UpdateUserBadge200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **Reason** | **string** | | **Code** | **string** | | **SecondaryCode** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewUpdateUserBadge200Response -`func NewUpdateUserBadge200Response(status ImportedAPIStatusFAILED, reason string, code string, ) *UpdateUserBadge200Response` +`func NewUpdateUserBadge200Response(status APIStatus, reason string, code string, ) *UpdateUserBadge200Response` NewUpdateUserBadge200Response instantiates a new UpdateUserBadge200Response object This constructor will assign default values to properties that have it defined, @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *UpdateUserBadge200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *UpdateUserBadge200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *UpdateUserBadge200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *UpdateUserBadge200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *UpdateUserBadge200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *UpdateUserBadge200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/UpdateUserNotificationStatus200Response.md b/client/docs/UpdateUserNotificationStatus200Response.md index 1d77d6a..7d94c87 100644 --- a/client/docs/UpdateUserNotificationStatus200Response.md +++ b/client/docs/UpdateUserNotificationStatus200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **MatchedCount** | **int64** | | **ModifiedCount** | **int64** | | **Note** | **string** | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewUpdateUserNotificationStatus200Response -`func NewUpdateUserNotificationStatus200Response(status ImportedAPIStatusFAILED, matchedCount int64, modifiedCount int64, note string, reason string, code string, ) *UpdateUserNotificationStatus200Response` +`func NewUpdateUserNotificationStatus200Response(status APIStatus, matchedCount int64, modifiedCount int64, note string, reason string, code string, ) *UpdateUserNotificationStatus200Response` NewUpdateUserNotificationStatus200Response instantiates a new UpdateUserNotificationStatus200Response object This constructor will assign default values to properties that have it defined, @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *UpdateUserNotificationStatus200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *UpdateUserNotificationStatus200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *UpdateUserNotificationStatus200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *UpdateUserNotificationStatus200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *UpdateUserNotificationStatus200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *UpdateUserNotificationStatus200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/UserNotificationWriteResponse.md b/client/docs/UserNotificationWriteResponse.md index a8516b3..61a62df 100644 --- a/client/docs/UserNotificationWriteResponse.md +++ b/client/docs/UserNotificationWriteResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusSUCCESS**](ImportedAPIStatusSUCCESS.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **MatchedCount** | **int64** | | **ModifiedCount** | **int64** | | @@ -12,7 +12,7 @@ Name | Type | Description | Notes ### NewUserNotificationWriteResponse -`func NewUserNotificationWriteResponse(status ImportedAPIStatusSUCCESS, matchedCount int64, modifiedCount int64, ) *UserNotificationWriteResponse` +`func NewUserNotificationWriteResponse(status APIStatus, matchedCount int64, modifiedCount int64, ) *UserNotificationWriteResponse` NewUserNotificationWriteResponse instantiates a new UserNotificationWriteResponse object This constructor will assign default values to properties that have it defined, @@ -29,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *UserNotificationWriteResponse) GetStatus() ImportedAPIStatusSUCCESS` +`func (o *UserNotificationWriteResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *UserNotificationWriteResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool)` +`func (o *UserNotificationWriteResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *UserNotificationWriteResponse) SetStatus(v ImportedAPIStatusSUCCESS)` +`func (o *UserNotificationWriteResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/VoteComment200Response.md b/client/docs/VoteComment200Response.md index 5939cf4..84f2cbf 100644 --- a/client/docs/VoteComment200Response.md +++ b/client/docs/VoteComment200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**ImportedAPIStatusFAILED**](ImportedAPIStatusFAILED.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **VoteId** | Pointer to **string** | | [optional] **IsVerified** | Pointer to **bool** | | [optional] **User** | Pointer to [**VoteResponseUser**](VoteResponseUser.md) | | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewVoteComment200Response -`func NewVoteComment200Response(status ImportedAPIStatusFAILED, reason string, code string, ) *VoteComment200Response` +`func NewVoteComment200Response(status APIStatus, reason string, code string, ) *VoteComment200Response` NewVoteComment200Response instantiates a new VoteComment200Response object This constructor will assign default values to properties that have it defined, @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *VoteComment200Response) GetStatus() ImportedAPIStatusFAILED` +`func (o *VoteComment200Response) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VoteComment200Response) GetStatusOk() (*ImportedAPIStatusFAILED, bool)` +`func (o *VoteComment200Response) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *VoteComment200Response) SetStatus(v ImportedAPIStatusFAILED)` +`func (o *VoteComment200Response) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/VoteDeleteResponse.md b/client/docs/VoteDeleteResponse.md index a905990..e0f80af 100644 --- a/client/docs/VoteDeleteResponse.md +++ b/client/docs/VoteDeleteResponse.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | [**VoteDeleteResponseStatus**](VoteDeleteResponseStatus.md) | | +**Status** | [**APIStatus**](APIStatus.md) | | **WasPendingVote** | Pointer to **bool** | | [optional] ## Methods ### NewVoteDeleteResponse -`func NewVoteDeleteResponse(status VoteDeleteResponseStatus, ) *VoteDeleteResponse` +`func NewVoteDeleteResponse(status APIStatus, ) *VoteDeleteResponse` NewVoteDeleteResponse instantiates a new VoteDeleteResponse object This constructor will assign default values to properties that have it defined, @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetStatus -`func (o *VoteDeleteResponse) GetStatus() VoteDeleteResponseStatus` +`func (o *VoteDeleteResponse) GetStatus() APIStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VoteDeleteResponse) GetStatusOk() (*VoteDeleteResponseStatus, bool)` +`func (o *VoteDeleteResponse) GetStatusOk() (*APIStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *VoteDeleteResponse) SetStatus(v VoteDeleteResponseStatus)` +`func (o *VoteDeleteResponse) SetStatus(v APIStatus)` SetStatus sets Status field to given value. diff --git a/client/docs/VoteDeleteResponseStatus.md b/client/docs/VoteDeleteResponseStatus.md deleted file mode 100644 index 9b611d1..0000000 --- a/client/docs/VoteDeleteResponseStatus.md +++ /dev/null @@ -1,30 +0,0 @@ -# VoteDeleteResponseStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Methods - -### NewVoteDeleteResponseStatus - -`func NewVoteDeleteResponseStatus() *VoteDeleteResponseStatus` - -NewVoteDeleteResponseStatus instantiates a new VoteDeleteResponseStatus 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 - -### NewVoteDeleteResponseStatusWithDefaults - -`func NewVoteDeleteResponseStatusWithDefaults() *VoteDeleteResponseStatus` - -NewVoteDeleteResponseStatusWithDefaults instantiates a new VoteDeleteResponseStatus 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 - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/model_pick_tenant_audit_log_tenant_audit_log_keys_.go b/client/model_api_audit_log.go similarity index 59% rename from client/model_pick_tenant_audit_log_tenant_audit_log_keys_.go rename to client/model_api_audit_log.go index 957099d..6892956 100644 --- a/client/model_pick_tenant_audit_log_tenant_audit_log_keys_.go +++ b/client/model_api_audit_log.go @@ -17,19 +17,19 @@ import ( "fmt" ) -// checks if the PickTenantAuditLogTenantAuditLogKeys type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PickTenantAuditLogTenantAuditLogKeys{} +// checks if the APIAuditLog type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIAuditLog{} -// PickTenantAuditLogTenantAuditLogKeys From T, pick a set of properties whose keys are in the union K -type PickTenantAuditLogTenantAuditLogKeys struct { +// APIAuditLog struct for APIAuditLog +type APIAuditLog struct { Id string `json:"_id"` - Url *string `json:"url,omitempty"` UserId *string `json:"userId,omitempty"` Username *string `json:"username,omitempty"` ResourceName string `json:"resourceName"` CrudType string `json:"crudType"` From *string `json:"from,omitempty"` - Ip *string `json:"ip,omitempty"` + Url NullableString `json:"url,omitempty"` + Ip NullableString `json:"ip,omitempty"` When *time.Time `json:"when,omitempty"` Description *string `json:"description,omitempty"` ServerStartDate *time.Time `json:"serverStartDate,omitempty"` @@ -37,30 +37,30 @@ type PickTenantAuditLogTenantAuditLogKeys struct { ObjectDetails map[string]interface{} `json:"objectDetails,omitempty"` } -type _PickTenantAuditLogTenantAuditLogKeys PickTenantAuditLogTenantAuditLogKeys +type _APIAuditLog APIAuditLog -// NewPickTenantAuditLogTenantAuditLogKeys instantiates a new PickTenantAuditLogTenantAuditLogKeys object +// NewAPIAuditLog instantiates a new APIAuditLog 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 NewPickTenantAuditLogTenantAuditLogKeys(id string, resourceName string, crudType string) *PickTenantAuditLogTenantAuditLogKeys { - this := PickTenantAuditLogTenantAuditLogKeys{} +func NewAPIAuditLog(id string, resourceName string, crudType string) *APIAuditLog { + this := APIAuditLog{} this.Id = id this.ResourceName = resourceName this.CrudType = crudType return &this } -// NewPickTenantAuditLogTenantAuditLogKeysWithDefaults instantiates a new PickTenantAuditLogTenantAuditLogKeys object +// NewAPIAuditLogWithDefaults instantiates a new APIAuditLog 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 NewPickTenantAuditLogTenantAuditLogKeysWithDefaults() *PickTenantAuditLogTenantAuditLogKeys { - this := PickTenantAuditLogTenantAuditLogKeys{} +func NewAPIAuditLogWithDefaults() *APIAuditLog { + this := APIAuditLog{} return &this } // GetId returns the Id field value -func (o *PickTenantAuditLogTenantAuditLogKeys) GetId() string { +func (o *APIAuditLog) GetId() string { if o == nil { var ret string return ret @@ -71,7 +71,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetId() string { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetIdOk() (*string, bool) { +func (o *APIAuditLog) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -79,44 +79,12 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetIdOk() (*string, bool) { } // SetId sets field value -func (o *PickTenantAuditLogTenantAuditLogKeys) SetId(v string) { +func (o *APIAuditLog) SetId(v string) { o.Id = v } -// GetUrl returns the Url field value if set, zero value otherwise. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetUrl() string { - if o == nil || IsNil(o.Url) { - var ret string - return ret - } - return *o.Url -} - -// GetUrlOk returns a tuple with the Url field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetUrlOk() (*string, bool) { - if o == nil || IsNil(o.Url) { - return nil, false - } - return o.Url, true -} - -// HasUrl returns a boolean if a field has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) HasUrl() bool { - if o != nil && !IsNil(o.Url) { - return true - } - - return false -} - -// SetUrl gets a reference to the given string and assigns it to the Url field. -func (o *PickTenantAuditLogTenantAuditLogKeys) SetUrl(v string) { - o.Url = &v -} - // GetUserId returns the UserId field value if set, zero value otherwise. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetUserId() string { +func (o *APIAuditLog) GetUserId() string { if o == nil || IsNil(o.UserId) { var ret string return ret @@ -126,7 +94,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetUserId() string { // GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetUserIdOk() (*string, bool) { +func (o *APIAuditLog) GetUserIdOk() (*string, bool) { if o == nil || IsNil(o.UserId) { return nil, false } @@ -134,7 +102,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetUserIdOk() (*string, bool) { } // HasUserId returns a boolean if a field has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) HasUserId() bool { +func (o *APIAuditLog) HasUserId() bool { if o != nil && !IsNil(o.UserId) { return true } @@ -143,12 +111,12 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) HasUserId() bool { } // SetUserId gets a reference to the given string and assigns it to the UserId field. -func (o *PickTenantAuditLogTenantAuditLogKeys) SetUserId(v string) { +func (o *APIAuditLog) SetUserId(v string) { o.UserId = &v } // GetUsername returns the Username field value if set, zero value otherwise. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetUsername() string { +func (o *APIAuditLog) GetUsername() string { if o == nil || IsNil(o.Username) { var ret string return ret @@ -158,7 +126,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetUsername() string { // GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetUsernameOk() (*string, bool) { +func (o *APIAuditLog) GetUsernameOk() (*string, bool) { if o == nil || IsNil(o.Username) { return nil, false } @@ -166,7 +134,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetUsernameOk() (*string, bool) { } // HasUsername returns a boolean if a field has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) HasUsername() bool { +func (o *APIAuditLog) HasUsername() bool { if o != nil && !IsNil(o.Username) { return true } @@ -175,12 +143,12 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) HasUsername() bool { } // SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *PickTenantAuditLogTenantAuditLogKeys) SetUsername(v string) { +func (o *APIAuditLog) SetUsername(v string) { o.Username = &v } // GetResourceName returns the ResourceName field value -func (o *PickTenantAuditLogTenantAuditLogKeys) GetResourceName() string { +func (o *APIAuditLog) GetResourceName() string { if o == nil { var ret string return ret @@ -191,7 +159,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetResourceName() string { // GetResourceNameOk returns a tuple with the ResourceName field value // and a boolean to check if the value has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetResourceNameOk() (*string, bool) { +func (o *APIAuditLog) GetResourceNameOk() (*string, bool) { if o == nil { return nil, false } @@ -199,12 +167,12 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetResourceNameOk() (*string, boo } // SetResourceName sets field value -func (o *PickTenantAuditLogTenantAuditLogKeys) SetResourceName(v string) { +func (o *APIAuditLog) SetResourceName(v string) { o.ResourceName = v } // GetCrudType returns the CrudType field value -func (o *PickTenantAuditLogTenantAuditLogKeys) GetCrudType() string { +func (o *APIAuditLog) GetCrudType() string { if o == nil { var ret string return ret @@ -215,7 +183,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetCrudType() string { // GetCrudTypeOk returns a tuple with the CrudType field value // and a boolean to check if the value has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetCrudTypeOk() (*string, bool) { +func (o *APIAuditLog) GetCrudTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -223,12 +191,12 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetCrudTypeOk() (*string, bool) { } // SetCrudType sets field value -func (o *PickTenantAuditLogTenantAuditLogKeys) SetCrudType(v string) { +func (o *APIAuditLog) SetCrudType(v string) { o.CrudType = v } // GetFrom returns the From field value if set, zero value otherwise. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetFrom() string { +func (o *APIAuditLog) GetFrom() string { if o == nil || IsNil(o.From) { var ret string return ret @@ -238,7 +206,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetFrom() string { // GetFromOk returns a tuple with the From field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetFromOk() (*string, bool) { +func (o *APIAuditLog) GetFromOk() (*string, bool) { if o == nil || IsNil(o.From) { return nil, false } @@ -246,7 +214,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetFromOk() (*string, bool) { } // HasFrom returns a boolean if a field has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) HasFrom() bool { +func (o *APIAuditLog) HasFrom() bool { if o != nil && !IsNil(o.From) { return true } @@ -255,44 +223,96 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) HasFrom() bool { } // SetFrom gets a reference to the given string and assigns it to the From field. -func (o *PickTenantAuditLogTenantAuditLogKeys) SetFrom(v string) { +func (o *APIAuditLog) SetFrom(v string) { o.From = &v } -// GetIp returns the Ip field value if set, zero value otherwise. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetIp() string { - if o == nil || IsNil(o.Ip) { +// GetUrl returns the Url field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIAuditLog) GetUrl() string { + if o == nil || IsNil(o.Url.Get()) { + var ret string + return ret + } + return *o.Url.Get() +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIAuditLog) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Url.Get(), o.Url.IsSet() +} + +// HasUrl returns a boolean if a field has been set. +func (o *APIAuditLog) HasUrl() bool { + if o != nil && o.Url.IsSet() { + return true + } + + return false +} + +// SetUrl gets a reference to the given NullableString and assigns it to the Url field. +func (o *APIAuditLog) SetUrl(v string) { + o.Url.Set(&v) +} +// SetUrlNil sets the value for Url to be an explicit nil +func (o *APIAuditLog) SetUrlNil() { + o.Url.Set(nil) +} + +// UnsetUrl ensures that no value is present for Url, not even an explicit nil +func (o *APIAuditLog) UnsetUrl() { + o.Url.Unset() +} + +// GetIp returns the Ip field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIAuditLog) GetIp() string { + if o == nil || IsNil(o.Ip.Get()) { var ret string return ret } - return *o.Ip + return *o.Ip.Get() } // GetIpOk returns a tuple with the Ip field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetIpOk() (*string, bool) { - if o == nil || IsNil(o.Ip) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIAuditLog) GetIpOk() (*string, bool) { + if o == nil { return nil, false } - return o.Ip, true + return o.Ip.Get(), o.Ip.IsSet() } // HasIp returns a boolean if a field has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) HasIp() bool { - if o != nil && !IsNil(o.Ip) { +func (o *APIAuditLog) HasIp() bool { + if o != nil && o.Ip.IsSet() { return true } return false } -// SetIp gets a reference to the given string and assigns it to the Ip field. -func (o *PickTenantAuditLogTenantAuditLogKeys) SetIp(v string) { - o.Ip = &v +// SetIp gets a reference to the given NullableString and assigns it to the Ip field. +func (o *APIAuditLog) SetIp(v string) { + o.Ip.Set(&v) +} +// SetIpNil sets the value for Ip to be an explicit nil +func (o *APIAuditLog) SetIpNil() { + o.Ip.Set(nil) +} + +// UnsetIp ensures that no value is present for Ip, not even an explicit nil +func (o *APIAuditLog) UnsetIp() { + o.Ip.Unset() } // GetWhen returns the When field value if set, zero value otherwise. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetWhen() time.Time { +func (o *APIAuditLog) GetWhen() time.Time { if o == nil || IsNil(o.When) { var ret time.Time return ret @@ -302,7 +322,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetWhen() time.Time { // GetWhenOk returns a tuple with the When field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetWhenOk() (*time.Time, bool) { +func (o *APIAuditLog) GetWhenOk() (*time.Time, bool) { if o == nil || IsNil(o.When) { return nil, false } @@ -310,7 +330,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetWhenOk() (*time.Time, bool) { } // HasWhen returns a boolean if a field has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) HasWhen() bool { +func (o *APIAuditLog) HasWhen() bool { if o != nil && !IsNil(o.When) { return true } @@ -319,12 +339,12 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) HasWhen() bool { } // SetWhen gets a reference to the given time.Time and assigns it to the When field. -func (o *PickTenantAuditLogTenantAuditLogKeys) SetWhen(v time.Time) { +func (o *APIAuditLog) SetWhen(v time.Time) { o.When = &v } // GetDescription returns the Description field value if set, zero value otherwise. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetDescription() string { +func (o *APIAuditLog) GetDescription() string { if o == nil || IsNil(o.Description) { var ret string return ret @@ -334,7 +354,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetDescription() string { // 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 *PickTenantAuditLogTenantAuditLogKeys) GetDescriptionOk() (*string, bool) { +func (o *APIAuditLog) GetDescriptionOk() (*string, bool) { if o == nil || IsNil(o.Description) { return nil, false } @@ -342,7 +362,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetDescriptionOk() (*string, bool } // HasDescription returns a boolean if a field has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) HasDescription() bool { +func (o *APIAuditLog) HasDescription() bool { if o != nil && !IsNil(o.Description) { return true } @@ -351,12 +371,12 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) HasDescription() bool { } // SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *PickTenantAuditLogTenantAuditLogKeys) SetDescription(v string) { +func (o *APIAuditLog) SetDescription(v string) { o.Description = &v } // GetServerStartDate returns the ServerStartDate field value if set, zero value otherwise. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetServerStartDate() time.Time { +func (o *APIAuditLog) GetServerStartDate() time.Time { if o == nil || IsNil(o.ServerStartDate) { var ret time.Time return ret @@ -366,7 +386,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetServerStartDate() time.Time { // GetServerStartDateOk returns a tuple with the ServerStartDate field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetServerStartDateOk() (*time.Time, bool) { +func (o *APIAuditLog) GetServerStartDateOk() (*time.Time, bool) { if o == nil || IsNil(o.ServerStartDate) { return nil, false } @@ -374,7 +394,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetServerStartDateOk() (*time.Tim } // HasServerStartDate returns a boolean if a field has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) HasServerStartDate() bool { +func (o *APIAuditLog) HasServerStartDate() bool { if o != nil && !IsNil(o.ServerStartDate) { return true } @@ -383,13 +403,13 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) HasServerStartDate() bool { } // SetServerStartDate gets a reference to the given time.Time and assigns it to the ServerStartDate field. -func (o *PickTenantAuditLogTenantAuditLogKeys) SetServerStartDate(v time.Time) { +func (o *APIAuditLog) SetServerStartDate(v time.Time) { o.ServerStartDate = &v } -// GetObjectDetails returns the ObjectDetails field value if set, zero value otherwise. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetObjectDetails() map[string]interface{} { - if o == nil || IsNil(o.ObjectDetails) { +// GetObjectDetails returns the ObjectDetails field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIAuditLog) GetObjectDetails() map[string]interface{} { + if o == nil { var ret map[string]interface{} return ret } @@ -398,7 +418,8 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetObjectDetails() map[string]int // GetObjectDetailsOk returns a tuple with the ObjectDetails field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) GetObjectDetailsOk() (map[string]interface{}, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIAuditLog) GetObjectDetailsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.ObjectDetails) { return map[string]interface{}{}, false } @@ -406,7 +427,7 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) GetObjectDetailsOk() (map[string] } // HasObjectDetails returns a boolean if a field has been set. -func (o *PickTenantAuditLogTenantAuditLogKeys) HasObjectDetails() bool { +func (o *APIAuditLog) HasObjectDetails() bool { if o != nil && !IsNil(o.ObjectDetails) { return true } @@ -415,11 +436,11 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) HasObjectDetails() bool { } // SetObjectDetails gets a reference to the given map[string]interface{} and assigns it to the ObjectDetails field. -func (o *PickTenantAuditLogTenantAuditLogKeys) SetObjectDetails(v map[string]interface{}) { +func (o *APIAuditLog) SetObjectDetails(v map[string]interface{}) { o.ObjectDetails = v } -func (o PickTenantAuditLogTenantAuditLogKeys) MarshalJSON() ([]byte, error) { +func (o APIAuditLog) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -427,12 +448,9 @@ func (o PickTenantAuditLogTenantAuditLogKeys) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o PickTenantAuditLogTenantAuditLogKeys) ToMap() (map[string]interface{}, error) { +func (o APIAuditLog) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["_id"] = o.Id - if !IsNil(o.Url) { - toSerialize["url"] = o.Url - } if !IsNil(o.UserId) { toSerialize["userId"] = o.UserId } @@ -444,8 +462,11 @@ func (o PickTenantAuditLogTenantAuditLogKeys) ToMap() (map[string]interface{}, e if !IsNil(o.From) { toSerialize["from"] = o.From } - if !IsNil(o.Ip) { - toSerialize["ip"] = o.Ip + if o.Url.IsSet() { + toSerialize["url"] = o.Url.Get() + } + if o.Ip.IsSet() { + toSerialize["ip"] = o.Ip.Get() } if !IsNil(o.When) { toSerialize["when"] = o.When @@ -456,13 +477,13 @@ func (o PickTenantAuditLogTenantAuditLogKeys) ToMap() (map[string]interface{}, e if !IsNil(o.ServerStartDate) { toSerialize["serverStartDate"] = o.ServerStartDate } - if !IsNil(o.ObjectDetails) { + if o.ObjectDetails != nil { toSerialize["objectDetails"] = o.ObjectDetails } return toSerialize, nil } -func (o *PickTenantAuditLogTenantAuditLogKeys) UnmarshalJSON(data []byte) (err error) { +func (o *APIAuditLog) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -486,53 +507,53 @@ func (o *PickTenantAuditLogTenantAuditLogKeys) UnmarshalJSON(data []byte) (err e } } - varPickTenantAuditLogTenantAuditLogKeys := _PickTenantAuditLogTenantAuditLogKeys{} + varAPIAuditLog := _APIAuditLog{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varPickTenantAuditLogTenantAuditLogKeys) + err = decoder.Decode(&varAPIAuditLog) if err != nil { return err } - *o = PickTenantAuditLogTenantAuditLogKeys(varPickTenantAuditLogTenantAuditLogKeys) + *o = APIAuditLog(varAPIAuditLog) return err } -type NullablePickTenantAuditLogTenantAuditLogKeys struct { - value *PickTenantAuditLogTenantAuditLogKeys +type NullableAPIAuditLog struct { + value *APIAuditLog isSet bool } -func (v NullablePickTenantAuditLogTenantAuditLogKeys) Get() *PickTenantAuditLogTenantAuditLogKeys { +func (v NullableAPIAuditLog) Get() *APIAuditLog { return v.value } -func (v *NullablePickTenantAuditLogTenantAuditLogKeys) Set(val *PickTenantAuditLogTenantAuditLogKeys) { +func (v *NullableAPIAuditLog) Set(val *APIAuditLog) { v.value = val v.isSet = true } -func (v NullablePickTenantAuditLogTenantAuditLogKeys) IsSet() bool { +func (v NullableAPIAuditLog) IsSet() bool { return v.isSet } -func (v *NullablePickTenantAuditLogTenantAuditLogKeys) Unset() { +func (v *NullableAPIAuditLog) Unset() { v.value = nil v.isSet = false } -func NewNullablePickTenantAuditLogTenantAuditLogKeys(val *PickTenantAuditLogTenantAuditLogKeys) *NullablePickTenantAuditLogTenantAuditLogKeys { - return &NullablePickTenantAuditLogTenantAuditLogKeys{value: val, isSet: true} +func NewNullableAPIAuditLog(val *APIAuditLog) *NullableAPIAuditLog { + return &NullableAPIAuditLog{value: val, isSet: true} } -func (v NullablePickTenantAuditLogTenantAuditLogKeys) MarshalJSON() ([]byte, error) { +func (v NullableAPIAuditLog) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePickTenantAuditLogTenantAuditLogKeys) UnmarshalJSON(src []byte) error { +func (v *NullableAPIAuditLog) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_pick_f_comment_api_comment_fields_keys_.go b/client/model_api_comment.go similarity index 50% rename from client/model_pick_f_comment_api_comment_fields_keys_.go rename to client/model_api_comment.go index 732c33a..c35cbcd 100644 --- a/client/model_pick_f_comment_api_comment_fields_keys_.go +++ b/client/model_api_comment.go @@ -17,122 +17,98 @@ import ( "fmt" ) -// checks if the PickFCommentAPICommentFieldsKeys type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PickFCommentAPICommentFieldsKeys{} +// checks if the APIComment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APIComment{} -// PickFCommentAPICommentFieldsKeys From T, pick a set of properties whose keys are in the union K -type PickFCommentAPICommentFieldsKeys struct { - Date time.Time `json:"date"` +// APIComment struct for APIComment +type APIComment struct { Id string `json:"_id"` - TenantId string `json:"tenantId"` - UrlId string `json:"urlId"` - UrlIdRaw *string `json:"urlIdRaw,omitempty"` - Url string `json:"url"` - PageTitle *string `json:"pageTitle,omitempty"` - UserId *string `json:"userId,omitempty"` - AnonUserId *string `json:"anonUserId,omitempty"` - CommenterEmail *string `json:"commenterEmail,omitempty"` - CommenterName string `json:"commenterName"` - CommenterLink *string `json:"commenterLink,omitempty"` + AiDeterminedSpam *bool `json:"aiDeterminedSpam,omitempty"` + AnonUserId NullableString `json:"anonUserId,omitempty"` + Approved bool `json:"approved"` + AvatarSrc NullableString `json:"avatarSrc,omitempty"` + Badges []CommentUserBadgeInfo `json:"badges,omitempty"` Comment string `json:"comment"` CommentHTML string `json:"commentHTML"` - ParentId *string `json:"parentId,omitempty"` - LocalDateString *string `json:"localDateString,omitempty"` - LocalDateHours *int32 `json:"localDateHours,omitempty"` - Votes *int32 `json:"votes,omitempty"` - VotesUp *int32 `json:"votesUp,omitempty"` - VotesDown *int32 `json:"votesDown,omitempty"` - ExpireAt *time.Time `json:"expireAt,omitempty"` - Verified bool `json:"verified"` - VerifiedDate *time.Time `json:"verifiedDate,omitempty"` - NotificationSentForParent *bool `json:"notificationSentForParent,omitempty"` - NotificationSentForParentTenant *bool `json:"notificationSentForParentTenant,omitempty"` - Reviewed *bool `json:"reviewed,omitempty"` + CommenterEmail NullableString `json:"commenterEmail,omitempty"` + CommenterLink NullableString `json:"commenterLink,omitempty"` + CommenterName string `json:"commenterName"` + Date NullableFloat64 `json:"date"` + DisplayLabel NullableString `json:"displayLabel,omitempty"` + Domain NullableString `json:"domain,omitempty"` ExternalId *string `json:"externalId,omitempty"` - ExternalParentId *string `json:"externalParentId,omitempty"` - AvatarSrc *string `json:"avatarSrc,omitempty"` - IsSpam *bool `json:"isSpam,omitempty"` - AiDeterminedSpam *bool `json:"aiDeterminedSpam,omitempty"` + ExternalParentId NullableString `json:"externalParentId,omitempty"` + ExpireAt NullableTime `json:"expireAt,omitempty"` + FeedbackIds []string `json:"feedbackIds,omitempty"` + FlagCount NullableInt32 `json:"flagCount,omitempty"` + FromProductId *int32 `json:"fromProductId,omitempty"` + HasCode *bool `json:"hasCode,omitempty"` HasImages *bool `json:"hasImages,omitempty"` HasLinks *bool `json:"hasLinks,omitempty"` - HasCode *bool `json:"hasCode,omitempty"` - Approved bool `json:"approved"` - Locale string `json:"locale"` - IsDeleted *bool `json:"isDeleted,omitempty"` - IsDeletedUser *bool `json:"isDeletedUser,omitempty"` + HashTags []CommentUserHashTagInfo `json:"hashTags,omitempty"` IsByAdmin *bool `json:"isByAdmin,omitempty"` IsByModerator *bool `json:"isByModerator,omitempty"` - IsPinned *bool `json:"isPinned,omitempty"` - IsLocked *bool `json:"isLocked,omitempty"` - FlagCount *int32 `json:"flagCount,omitempty"` - Rating *float64 `json:"rating,omitempty"` - DisplayLabel *string `json:"displayLabel,omitempty"` - FromProductId *int32 `json:"fromProductId,omitempty"` - Meta *PickFCommentAPICommentFieldsKeysMeta `json:"meta,omitempty"` + IsDeleted *bool `json:"isDeleted,omitempty"` + IsDeletedUser *bool `json:"isDeletedUser,omitempty"` + IsPinned NullableBool `json:"isPinned,omitempty"` + IsLocked NullableBool `json:"isLocked,omitempty"` + IsSpam *bool `json:"isSpam,omitempty"` + LocalDateHours NullableInt32 `json:"localDateHours,omitempty"` + LocalDateString NullableString `json:"localDateString,omitempty"` + Locale NullableString `json:"locale"` Mentions []CommentUserMentionInfo `json:"mentions,omitempty"` - HashTags []CommentUserHashTagInfo `json:"hashTags,omitempty"` - Badges []CommentUserBadgeInfo `json:"badges,omitempty"` - Domain *string `json:"domain,omitempty"` + Meta NullableFCommentMeta `json:"meta,omitempty"` ModerationGroupIds []string `json:"moderationGroupIds,omitempty"` - FeedbackIds []string `json:"feedbackIds,omitempty"` + NotificationSentForParent *bool `json:"notificationSentForParent,omitempty"` + NotificationSentForParentTenant *bool `json:"notificationSentForParentTenant,omitempty"` + PageTitle NullableString `json:"pageTitle,omitempty"` + ParentId NullableString `json:"parentId,omitempty"` + Rating NullableFloat64 `json:"rating,omitempty"` + Reviewed *bool `json:"reviewed,omitempty"` + TenantId string `json:"tenantId"` + Url string `json:"url"` + UrlId string `json:"urlId"` + UrlIdRaw *string `json:"urlIdRaw,omitempty"` + UserId NullableString `json:"userId,omitempty"` + Verified bool `json:"verified"` + VerifiedDate NullableTime `json:"verifiedDate,omitempty"` + Votes NullableInt32 `json:"votes,omitempty"` + VotesDown NullableInt32 `json:"votesDown,omitempty"` + VotesUp NullableInt32 `json:"votesUp,omitempty"` } -type _PickFCommentAPICommentFieldsKeys PickFCommentAPICommentFieldsKeys +type _APIComment APIComment -// NewPickFCommentAPICommentFieldsKeys instantiates a new PickFCommentAPICommentFieldsKeys object +// NewAPIComment instantiates a new APIComment 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 NewPickFCommentAPICommentFieldsKeys(date time.Time, id string, tenantId string, urlId string, url string, commenterName string, comment string, commentHTML string, verified bool, approved bool, locale string) *PickFCommentAPICommentFieldsKeys { - this := PickFCommentAPICommentFieldsKeys{} - this.Date = date +func NewAPIComment(id string, approved bool, comment string, commentHTML string, commenterName string, date NullableFloat64, locale NullableString, tenantId string, url string, urlId string, verified bool) *APIComment { + this := APIComment{} this.Id = id - this.TenantId = tenantId - this.UrlId = urlId - this.Url = url - this.CommenterName = commenterName + this.Approved = approved this.Comment = comment this.CommentHTML = commentHTML - this.Verified = verified - this.Approved = approved + this.CommenterName = commenterName + this.Date = date this.Locale = locale + this.TenantId = tenantId + this.Url = url + this.UrlId = urlId + this.Verified = verified return &this } -// NewPickFCommentAPICommentFieldsKeysWithDefaults instantiates a new PickFCommentAPICommentFieldsKeys object +// NewAPICommentWithDefaults instantiates a new APIComment 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 NewPickFCommentAPICommentFieldsKeysWithDefaults() *PickFCommentAPICommentFieldsKeys { - this := PickFCommentAPICommentFieldsKeys{} +func NewAPICommentWithDefaults() *APIComment { + this := APIComment{} return &this } -// GetDate returns the Date field value -func (o *PickFCommentAPICommentFieldsKeys) GetDate() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.Date -} - -// GetDateOk returns a tuple with the Date field value -// and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetDateOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.Date, true -} - -// SetDate sets field value -func (o *PickFCommentAPICommentFieldsKeys) SetDate(v time.Time) { - o.Date = v -} - // GetId returns the Id field value -func (o *PickFCommentAPICommentFieldsKeys) GetId() string { +func (o *APIComment) GetId() string { if o == nil { var ret string return ret @@ -143,7 +119,7 @@ func (o *PickFCommentAPICommentFieldsKeys) GetId() string { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetIdOk() (*string, bool) { +func (o *APIComment) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -151,1571 +127,1821 @@ func (o *PickFCommentAPICommentFieldsKeys) GetIdOk() (*string, bool) { } // SetId sets field value -func (o *PickFCommentAPICommentFieldsKeys) SetId(v string) { +func (o *APIComment) SetId(v string) { o.Id = v } -// GetTenantId returns the TenantId field value -func (o *PickFCommentAPICommentFieldsKeys) GetTenantId() string { - if o == nil { - var ret string +// GetAiDeterminedSpam returns the AiDeterminedSpam field value if set, zero value otherwise. +func (o *APIComment) GetAiDeterminedSpam() bool { + if o == nil || IsNil(o.AiDeterminedSpam) { + var ret bool return ret } - - return o.TenantId + return *o.AiDeterminedSpam } -// GetTenantIdOk returns a tuple with the TenantId field value +// GetAiDeterminedSpamOk returns a tuple with the AiDeterminedSpam field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetTenantIdOk() (*string, bool) { - if o == nil { +func (o *APIComment) GetAiDeterminedSpamOk() (*bool, bool) { + if o == nil || IsNil(o.AiDeterminedSpam) { return nil, false } - return &o.TenantId, true -} - -// SetTenantId sets field value -func (o *PickFCommentAPICommentFieldsKeys) SetTenantId(v string) { - o.TenantId = v + return o.AiDeterminedSpam, true } -// GetUrlId returns the UrlId field value -func (o *PickFCommentAPICommentFieldsKeys) GetUrlId() string { - if o == nil { - var ret string - return ret +// HasAiDeterminedSpam returns a boolean if a field has been set. +func (o *APIComment) HasAiDeterminedSpam() bool { + if o != nil && !IsNil(o.AiDeterminedSpam) { + return true } - return o.UrlId -} - -// GetUrlIdOk returns a tuple with the UrlId field value -// and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetUrlIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.UrlId, true + return false } -// SetUrlId sets field value -func (o *PickFCommentAPICommentFieldsKeys) SetUrlId(v string) { - o.UrlId = v +// SetAiDeterminedSpam gets a reference to the given bool and assigns it to the AiDeterminedSpam field. +func (o *APIComment) SetAiDeterminedSpam(v bool) { + o.AiDeterminedSpam = &v } -// GetUrlIdRaw returns the UrlIdRaw field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetUrlIdRaw() string { - if o == nil || IsNil(o.UrlIdRaw) { +// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetAnonUserId() string { + if o == nil || IsNil(o.AnonUserId.Get()) { var ret string return ret } - return *o.UrlIdRaw + return *o.AnonUserId.Get() } -// GetUrlIdRawOk returns a tuple with the UrlIdRaw field value if set, nil otherwise +// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetUrlIdRawOk() (*string, bool) { - if o == nil || IsNil(o.UrlIdRaw) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetAnonUserIdOk() (*string, bool) { + if o == nil { return nil, false } - return o.UrlIdRaw, true + return o.AnonUserId.Get(), o.AnonUserId.IsSet() } -// HasUrlIdRaw returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasUrlIdRaw() bool { - if o != nil && !IsNil(o.UrlIdRaw) { +// HasAnonUserId returns a boolean if a field has been set. +func (o *APIComment) HasAnonUserId() bool { + if o != nil && o.AnonUserId.IsSet() { return true } return false } -// SetUrlIdRaw gets a reference to the given string and assigns it to the UrlIdRaw field. -func (o *PickFCommentAPICommentFieldsKeys) SetUrlIdRaw(v string) { - o.UrlIdRaw = &v +// SetAnonUserId gets a reference to the given NullableString and assigns it to the AnonUserId field. +func (o *APIComment) SetAnonUserId(v string) { + o.AnonUserId.Set(&v) +} +// SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil +func (o *APIComment) SetAnonUserIdNil() { + o.AnonUserId.Set(nil) } -// GetUrl returns the Url field value -func (o *PickFCommentAPICommentFieldsKeys) GetUrl() string { +// UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +func (o *APIComment) UnsetAnonUserId() { + o.AnonUserId.Unset() +} + +// GetApproved returns the Approved field value +func (o *APIComment) GetApproved() bool { if o == nil { - var ret string + var ret bool return ret } - return o.Url + return o.Approved } -// GetUrlOk returns a tuple with the Url field value +// GetApprovedOk returns a tuple with the Approved field value // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetUrlOk() (*string, bool) { +func (o *APIComment) GetApprovedOk() (*bool, bool) { if o == nil { return nil, false } - return &o.Url, true + return &o.Approved, true } -// SetUrl sets field value -func (o *PickFCommentAPICommentFieldsKeys) SetUrl(v string) { - o.Url = v +// SetApproved sets field value +func (o *APIComment) SetApproved(v bool) { + o.Approved = v } -// GetPageTitle returns the PageTitle field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetPageTitle() string { - if o == nil || IsNil(o.PageTitle) { +// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetAvatarSrc() string { + if o == nil || IsNil(o.AvatarSrc.Get()) { var ret string return ret } - return *o.PageTitle + return *o.AvatarSrc.Get() } -// GetPageTitleOk returns a tuple with the PageTitle field value if set, nil otherwise +// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetPageTitleOk() (*string, bool) { - if o == nil || IsNil(o.PageTitle) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetAvatarSrcOk() (*string, bool) { + if o == nil { return nil, false } - return o.PageTitle, true + return o.AvatarSrc.Get(), o.AvatarSrc.IsSet() } -// HasPageTitle returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasPageTitle() bool { - if o != nil && !IsNil(o.PageTitle) { +// HasAvatarSrc returns a boolean if a field has been set. +func (o *APIComment) HasAvatarSrc() bool { + if o != nil && o.AvatarSrc.IsSet() { return true } return false } -// SetPageTitle gets a reference to the given string and assigns it to the PageTitle field. -func (o *PickFCommentAPICommentFieldsKeys) SetPageTitle(v string) { - o.PageTitle = &v +// SetAvatarSrc gets a reference to the given NullableString and assigns it to the AvatarSrc field. +func (o *APIComment) SetAvatarSrc(v string) { + o.AvatarSrc.Set(&v) +} +// SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil +func (o *APIComment) SetAvatarSrcNil() { + o.AvatarSrc.Set(nil) } -// GetUserId returns the UserId field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetUserId() string { - if o == nil || IsNil(o.UserId) { - var ret string +// UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +func (o *APIComment) UnsetAvatarSrc() { + o.AvatarSrc.Unset() +} + +// GetBadges returns the Badges field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetBadges() []CommentUserBadgeInfo { + if o == nil { + var ret []CommentUserBadgeInfo return ret } - return *o.UserId + return o.Badges } -// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetUserIdOk() (*string, bool) { - if o == nil || IsNil(o.UserId) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { + if o == nil || IsNil(o.Badges) { return nil, false } - return o.UserId, true + return o.Badges, true } -// HasUserId returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasUserId() bool { - if o != nil && !IsNil(o.UserId) { +// HasBadges returns a boolean if a field has been set. +func (o *APIComment) HasBadges() bool { + if o != nil && !IsNil(o.Badges) { return true } return false } -// SetUserId gets a reference to the given string and assigns it to the UserId field. -func (o *PickFCommentAPICommentFieldsKeys) SetUserId(v string) { - o.UserId = &v +// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. +func (o *APIComment) SetBadges(v []CommentUserBadgeInfo) { + o.Badges = v } -// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetAnonUserId() string { - if o == nil || IsNil(o.AnonUserId) { +// GetComment returns the Comment field value +func (o *APIComment) GetComment() string { + if o == nil { var ret string return ret } - return *o.AnonUserId + + return o.Comment } -// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise +// GetCommentOk returns a tuple with the Comment field value // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetAnonUserIdOk() (*string, bool) { - if o == nil || IsNil(o.AnonUserId) { +func (o *APIComment) GetCommentOk() (*string, bool) { + if o == nil { return nil, false } - return o.AnonUserId, true + return &o.Comment, true } -// HasAnonUserId returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasAnonUserId() bool { - if o != nil && !IsNil(o.AnonUserId) { - return true +// SetComment sets field value +func (o *APIComment) SetComment(v string) { + o.Comment = v +} + +// GetCommentHTML returns the CommentHTML field value +func (o *APIComment) GetCommentHTML() string { + if o == nil { + var ret string + return ret } - return false + return o.CommentHTML +} + +// GetCommentHTMLOk returns a tuple with the CommentHTML field value +// and a boolean to check if the value has been set. +func (o *APIComment) GetCommentHTMLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommentHTML, true } -// SetAnonUserId gets a reference to the given string and assigns it to the AnonUserId field. -func (o *PickFCommentAPICommentFieldsKeys) SetAnonUserId(v string) { - o.AnonUserId = &v +// SetCommentHTML sets field value +func (o *APIComment) SetCommentHTML(v string) { + o.CommentHTML = v } -// GetCommenterEmail returns the CommenterEmail field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetCommenterEmail() string { - if o == nil || IsNil(o.CommenterEmail) { +// GetCommenterEmail returns the CommenterEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetCommenterEmail() string { + if o == nil || IsNil(o.CommenterEmail.Get()) { var ret string return ret } - return *o.CommenterEmail + return *o.CommenterEmail.Get() } // GetCommenterEmailOk returns a tuple with the CommenterEmail field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetCommenterEmailOk() (*string, bool) { - if o == nil || IsNil(o.CommenterEmail) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetCommenterEmailOk() (*string, bool) { + if o == nil { return nil, false } - return o.CommenterEmail, true + return o.CommenterEmail.Get(), o.CommenterEmail.IsSet() } // HasCommenterEmail returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasCommenterEmail() bool { - if o != nil && !IsNil(o.CommenterEmail) { +func (o *APIComment) HasCommenterEmail() bool { + if o != nil && o.CommenterEmail.IsSet() { return true } return false } -// SetCommenterEmail gets a reference to the given string and assigns it to the CommenterEmail field. -func (o *PickFCommentAPICommentFieldsKeys) SetCommenterEmail(v string) { - o.CommenterEmail = &v +// SetCommenterEmail gets a reference to the given NullableString and assigns it to the CommenterEmail field. +func (o *APIComment) SetCommenterEmail(v string) { + o.CommenterEmail.Set(&v) } - -// GetCommenterName returns the CommenterName field value -func (o *PickFCommentAPICommentFieldsKeys) GetCommenterName() string { - if o == nil { - var ret string - return ret - } - - return o.CommenterName -} - -// GetCommenterNameOk returns a tuple with the CommenterName field value -// and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetCommenterNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommenterName, true +// SetCommenterEmailNil sets the value for CommenterEmail to be an explicit nil +func (o *APIComment) SetCommenterEmailNil() { + o.CommenterEmail.Set(nil) } -// SetCommenterName sets field value -func (o *PickFCommentAPICommentFieldsKeys) SetCommenterName(v string) { - o.CommenterName = v +// UnsetCommenterEmail ensures that no value is present for CommenterEmail, not even an explicit nil +func (o *APIComment) UnsetCommenterEmail() { + o.CommenterEmail.Unset() } -// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetCommenterLink() string { - if o == nil || IsNil(o.CommenterLink) { +// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetCommenterLink() string { + if o == nil || IsNil(o.CommenterLink.Get()) { var ret string return ret } - return *o.CommenterLink + return *o.CommenterLink.Get() } // GetCommenterLinkOk returns a tuple with the CommenterLink field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetCommenterLinkOk() (*string, bool) { - if o == nil || IsNil(o.CommenterLink) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetCommenterLinkOk() (*string, bool) { + if o == nil { return nil, false } - return o.CommenterLink, true + return o.CommenterLink.Get(), o.CommenterLink.IsSet() } // HasCommenterLink returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasCommenterLink() bool { - if o != nil && !IsNil(o.CommenterLink) { +func (o *APIComment) HasCommenterLink() bool { + if o != nil && o.CommenterLink.IsSet() { return true } return false } -// SetCommenterLink gets a reference to the given string and assigns it to the CommenterLink field. -func (o *PickFCommentAPICommentFieldsKeys) SetCommenterLink(v string) { - o.CommenterLink = &v +// SetCommenterLink gets a reference to the given NullableString and assigns it to the CommenterLink field. +func (o *APIComment) SetCommenterLink(v string) { + o.CommenterLink.Set(&v) +} +// SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil +func (o *APIComment) SetCommenterLinkNil() { + o.CommenterLink.Set(nil) +} + +// UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +func (o *APIComment) UnsetCommenterLink() { + o.CommenterLink.Unset() } -// GetComment returns the Comment field value -func (o *PickFCommentAPICommentFieldsKeys) GetComment() string { +// GetCommenterName returns the CommenterName field value +func (o *APIComment) GetCommenterName() string { if o == nil { var ret string return ret } - return o.Comment + return o.CommenterName } -// GetCommentOk returns a tuple with the Comment field value +// GetCommenterNameOk returns a tuple with the CommenterName field value // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetCommentOk() (*string, bool) { +func (o *APIComment) GetCommenterNameOk() (*string, bool) { if o == nil { return nil, false } - return &o.Comment, true + return &o.CommenterName, true } -// SetComment sets field value -func (o *PickFCommentAPICommentFieldsKeys) SetComment(v string) { - o.Comment = v +// SetCommenterName sets field value +func (o *APIComment) SetCommenterName(v string) { + o.CommenterName = v } -// GetCommentHTML returns the CommentHTML field value -func (o *PickFCommentAPICommentFieldsKeys) GetCommentHTML() string { - if o == nil { - var ret string +// GetDate returns the Date field value +// If the value is explicit nil, the zero value for float64 will be returned +func (o *APIComment) GetDate() float64 { + if o == nil || o.Date.Get() == nil { + var ret float64 return ret } - return o.CommentHTML + return *o.Date.Get() } -// GetCommentHTMLOk returns a tuple with the CommentHTML field value +// GetDateOk returns a tuple with the Date field value // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetCommentHTMLOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetDateOk() (*float64, bool) { if o == nil { return nil, false } - return &o.CommentHTML, true + return o.Date.Get(), o.Date.IsSet() } -// SetCommentHTML sets field value -func (o *PickFCommentAPICommentFieldsKeys) SetCommentHTML(v string) { - o.CommentHTML = v +// SetDate sets field value +func (o *APIComment) SetDate(v float64) { + o.Date.Set(&v) } -// GetParentId returns the ParentId field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetParentId() string { - if o == nil || IsNil(o.ParentId) { +// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetDisplayLabel() string { + if o == nil || IsNil(o.DisplayLabel.Get()) { var ret string return ret } - return *o.ParentId + return *o.DisplayLabel.Get() } -// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise +// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetParentIdOk() (*string, bool) { - if o == nil || IsNil(o.ParentId) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetDisplayLabelOk() (*string, bool) { + if o == nil { return nil, false } - return o.ParentId, true + return o.DisplayLabel.Get(), o.DisplayLabel.IsSet() } -// HasParentId returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasParentId() bool { - if o != nil && !IsNil(o.ParentId) { +// HasDisplayLabel returns a boolean if a field has been set. +func (o *APIComment) HasDisplayLabel() bool { + if o != nil && o.DisplayLabel.IsSet() { return true } return false } -// SetParentId gets a reference to the given string and assigns it to the ParentId field. -func (o *PickFCommentAPICommentFieldsKeys) SetParentId(v string) { - o.ParentId = &v +// SetDisplayLabel gets a reference to the given NullableString and assigns it to the DisplayLabel field. +func (o *APIComment) SetDisplayLabel(v string) { + o.DisplayLabel.Set(&v) +} +// SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil +func (o *APIComment) SetDisplayLabelNil() { + o.DisplayLabel.Set(nil) +} + +// UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +func (o *APIComment) UnsetDisplayLabel() { + o.DisplayLabel.Unset() } -// GetLocalDateString returns the LocalDateString field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetLocalDateString() string { - if o == nil || IsNil(o.LocalDateString) { +// GetDomain returns the Domain field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetDomain() string { + if o == nil || IsNil(o.Domain.Get()) { var ret string return ret } - return *o.LocalDateString + return *o.Domain.Get() } -// GetLocalDateStringOk returns a tuple with the LocalDateString field value if set, nil otherwise +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetLocalDateStringOk() (*string, bool) { - if o == nil || IsNil(o.LocalDateString) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetDomainOk() (*string, bool) { + if o == nil { return nil, false } - return o.LocalDateString, true + return o.Domain.Get(), o.Domain.IsSet() } -// HasLocalDateString returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasLocalDateString() bool { - if o != nil && !IsNil(o.LocalDateString) { +// HasDomain returns a boolean if a field has been set. +func (o *APIComment) HasDomain() bool { + if o != nil && o.Domain.IsSet() { return true } return false } -// SetLocalDateString gets a reference to the given string and assigns it to the LocalDateString field. -func (o *PickFCommentAPICommentFieldsKeys) SetLocalDateString(v string) { - o.LocalDateString = &v +// SetDomain gets a reference to the given NullableString and assigns it to the Domain field. +func (o *APIComment) SetDomain(v string) { + o.Domain.Set(&v) +} +// SetDomainNil sets the value for Domain to be an explicit nil +func (o *APIComment) SetDomainNil() { + o.Domain.Set(nil) } -// GetLocalDateHours returns the LocalDateHours field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetLocalDateHours() int32 { - if o == nil || IsNil(o.LocalDateHours) { - var ret int32 - return ret - } - return *o.LocalDateHours +// UnsetDomain ensures that no value is present for Domain, not even an explicit nil +func (o *APIComment) UnsetDomain() { + o.Domain.Unset() } -// GetLocalDateHoursOk returns a tuple with the LocalDateHours field value if set, nil otherwise +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *APIComment) GetExternalId() string { + if o == nil || IsNil(o.ExternalId) { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetLocalDateHoursOk() (*int32, bool) { - if o == nil || IsNil(o.LocalDateHours) { +func (o *APIComment) GetExternalIdOk() (*string, bool) { + if o == nil || IsNil(o.ExternalId) { return nil, false } - return o.LocalDateHours, true + return o.ExternalId, true } -// HasLocalDateHours returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasLocalDateHours() bool { - if o != nil && !IsNil(o.LocalDateHours) { +// HasExternalId returns a boolean if a field has been set. +func (o *APIComment) HasExternalId() bool { + if o != nil && !IsNil(o.ExternalId) { return true } return false } -// SetLocalDateHours gets a reference to the given int32 and assigns it to the LocalDateHours field. -func (o *PickFCommentAPICommentFieldsKeys) SetLocalDateHours(v int32) { - o.LocalDateHours = &v +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *APIComment) SetExternalId(v string) { + o.ExternalId = &v } -// GetVotes returns the Votes field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetVotes() int32 { - if o == nil || IsNil(o.Votes) { - var ret int32 +// GetExternalParentId returns the ExternalParentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetExternalParentId() string { + if o == nil || IsNil(o.ExternalParentId.Get()) { + var ret string return ret } - return *o.Votes + return *o.ExternalParentId.Get() } -// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise +// GetExternalParentIdOk returns a tuple with the ExternalParentId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetVotesOk() (*int32, bool) { - if o == nil || IsNil(o.Votes) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetExternalParentIdOk() (*string, bool) { + if o == nil { return nil, false } - return o.Votes, true + return o.ExternalParentId.Get(), o.ExternalParentId.IsSet() } -// HasVotes returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasVotes() bool { - if o != nil && !IsNil(o.Votes) { +// HasExternalParentId returns a boolean if a field has been set. +func (o *APIComment) HasExternalParentId() bool { + if o != nil && o.ExternalParentId.IsSet() { return true } return false } -// SetVotes gets a reference to the given int32 and assigns it to the Votes field. -func (o *PickFCommentAPICommentFieldsKeys) SetVotes(v int32) { - o.Votes = &v +// SetExternalParentId gets a reference to the given NullableString and assigns it to the ExternalParentId field. +func (o *APIComment) SetExternalParentId(v string) { + o.ExternalParentId.Set(&v) +} +// SetExternalParentIdNil sets the value for ExternalParentId to be an explicit nil +func (o *APIComment) SetExternalParentIdNil() { + o.ExternalParentId.Set(nil) +} + +// UnsetExternalParentId ensures that no value is present for ExternalParentId, not even an explicit nil +func (o *APIComment) UnsetExternalParentId() { + o.ExternalParentId.Unset() } -// GetVotesUp returns the VotesUp field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetVotesUp() int32 { - if o == nil || IsNil(o.VotesUp) { - var ret int32 +// GetExpireAt returns the ExpireAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetExpireAt() time.Time { + if o == nil || IsNil(o.ExpireAt.Get()) { + var ret time.Time return ret } - return *o.VotesUp + return *o.ExpireAt.Get() } -// GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise +// GetExpireAtOk returns a tuple with the ExpireAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetVotesUpOk() (*int32, bool) { - if o == nil || IsNil(o.VotesUp) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetExpireAtOk() (*time.Time, bool) { + if o == nil { return nil, false } - return o.VotesUp, true + return o.ExpireAt.Get(), o.ExpireAt.IsSet() } -// HasVotesUp returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasVotesUp() bool { - if o != nil && !IsNil(o.VotesUp) { +// HasExpireAt returns a boolean if a field has been set. +func (o *APIComment) HasExpireAt() bool { + if o != nil && o.ExpireAt.IsSet() { return true } return false } -// SetVotesUp gets a reference to the given int32 and assigns it to the VotesUp field. -func (o *PickFCommentAPICommentFieldsKeys) SetVotesUp(v int32) { - o.VotesUp = &v +// SetExpireAt gets a reference to the given NullableTime and assigns it to the ExpireAt field. +func (o *APIComment) SetExpireAt(v time.Time) { + o.ExpireAt.Set(&v) +} +// SetExpireAtNil sets the value for ExpireAt to be an explicit nil +func (o *APIComment) SetExpireAtNil() { + o.ExpireAt.Set(nil) } -// GetVotesDown returns the VotesDown field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetVotesDown() int32 { - if o == nil || IsNil(o.VotesDown) { - var ret int32 +// UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +func (o *APIComment) UnsetExpireAt() { + o.ExpireAt.Unset() +} + +// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. +func (o *APIComment) GetFeedbackIds() []string { + if o == nil || IsNil(o.FeedbackIds) { + var ret []string return ret } - return *o.VotesDown + return o.FeedbackIds } -// GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise +// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetVotesDownOk() (*int32, bool) { - if o == nil || IsNil(o.VotesDown) { +func (o *APIComment) GetFeedbackIdsOk() ([]string, bool) { + if o == nil || IsNil(o.FeedbackIds) { return nil, false } - return o.VotesDown, true + return o.FeedbackIds, true } -// HasVotesDown returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasVotesDown() bool { - if o != nil && !IsNil(o.VotesDown) { +// HasFeedbackIds returns a boolean if a field has been set. +func (o *APIComment) HasFeedbackIds() bool { + if o != nil && !IsNil(o.FeedbackIds) { return true } return false } -// SetVotesDown gets a reference to the given int32 and assigns it to the VotesDown field. -func (o *PickFCommentAPICommentFieldsKeys) SetVotesDown(v int32) { - o.VotesDown = &v +// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. +func (o *APIComment) SetFeedbackIds(v []string) { + o.FeedbackIds = v } -// GetExpireAt returns the ExpireAt field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetExpireAt() time.Time { - if o == nil || IsNil(o.ExpireAt) { - var ret time.Time +// GetFlagCount returns the FlagCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetFlagCount() int32 { + if o == nil || IsNil(o.FlagCount.Get()) { + var ret int32 return ret } - return *o.ExpireAt + return *o.FlagCount.Get() } -// GetExpireAtOk returns a tuple with the ExpireAt field value if set, nil otherwise +// GetFlagCountOk returns a tuple with the FlagCount field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetExpireAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.ExpireAt) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetFlagCountOk() (*int32, bool) { + if o == nil { return nil, false } - return o.ExpireAt, true + return o.FlagCount.Get(), o.FlagCount.IsSet() } -// HasExpireAt returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasExpireAt() bool { - if o != nil && !IsNil(o.ExpireAt) { +// HasFlagCount returns a boolean if a field has been set. +func (o *APIComment) HasFlagCount() bool { + if o != nil && o.FlagCount.IsSet() { return true } return false } -// SetExpireAt gets a reference to the given time.Time and assigns it to the ExpireAt field. -func (o *PickFCommentAPICommentFieldsKeys) SetExpireAt(v time.Time) { - o.ExpireAt = &v -} - -// GetVerified returns the Verified field value -func (o *PickFCommentAPICommentFieldsKeys) GetVerified() bool { - if o == nil { - var ret bool - return ret - } - - return o.Verified +// SetFlagCount gets a reference to the given NullableInt32 and assigns it to the FlagCount field. +func (o *APIComment) SetFlagCount(v int32) { + o.FlagCount.Set(&v) } - -// GetVerifiedOk returns a tuple with the Verified field value -// and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetVerifiedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Verified, true +// SetFlagCountNil sets the value for FlagCount to be an explicit nil +func (o *APIComment) SetFlagCountNil() { + o.FlagCount.Set(nil) } -// SetVerified sets field value -func (o *PickFCommentAPICommentFieldsKeys) SetVerified(v bool) { - o.Verified = v +// UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil +func (o *APIComment) UnsetFlagCount() { + o.FlagCount.Unset() } -// GetVerifiedDate returns the VerifiedDate field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetVerifiedDate() time.Time { - if o == nil || IsNil(o.VerifiedDate) { - var ret time.Time +// GetFromProductId returns the FromProductId field value if set, zero value otherwise. +func (o *APIComment) GetFromProductId() int32 { + if o == nil || IsNil(o.FromProductId) { + var ret int32 return ret } - return *o.VerifiedDate + return *o.FromProductId } -// GetVerifiedDateOk returns a tuple with the VerifiedDate field value if set, nil otherwise +// GetFromProductIdOk returns a tuple with the FromProductId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetVerifiedDateOk() (*time.Time, bool) { - if o == nil || IsNil(o.VerifiedDate) { +func (o *APIComment) GetFromProductIdOk() (*int32, bool) { + if o == nil || IsNil(o.FromProductId) { return nil, false } - return o.VerifiedDate, true + return o.FromProductId, true } -// HasVerifiedDate returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasVerifiedDate() bool { - if o != nil && !IsNil(o.VerifiedDate) { +// HasFromProductId returns a boolean if a field has been set. +func (o *APIComment) HasFromProductId() bool { + if o != nil && !IsNil(o.FromProductId) { return true } return false } -// SetVerifiedDate gets a reference to the given time.Time and assigns it to the VerifiedDate field. -func (o *PickFCommentAPICommentFieldsKeys) SetVerifiedDate(v time.Time) { - o.VerifiedDate = &v +// SetFromProductId gets a reference to the given int32 and assigns it to the FromProductId field. +func (o *APIComment) SetFromProductId(v int32) { + o.FromProductId = &v } -// GetNotificationSentForParent returns the NotificationSentForParent field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetNotificationSentForParent() bool { - if o == nil || IsNil(o.NotificationSentForParent) { +// GetHasCode returns the HasCode field value if set, zero value otherwise. +func (o *APIComment) GetHasCode() bool { + if o == nil || IsNil(o.HasCode) { var ret bool return ret } - return *o.NotificationSentForParent + return *o.HasCode } -// GetNotificationSentForParentOk returns a tuple with the NotificationSentForParent field value if set, nil otherwise +// GetHasCodeOk returns a tuple with the HasCode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetNotificationSentForParentOk() (*bool, bool) { - if o == nil || IsNil(o.NotificationSentForParent) { +func (o *APIComment) GetHasCodeOk() (*bool, bool) { + if o == nil || IsNil(o.HasCode) { return nil, false } - return o.NotificationSentForParent, true + return o.HasCode, true } -// HasNotificationSentForParent returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasNotificationSentForParent() bool { - if o != nil && !IsNil(o.NotificationSentForParent) { +// HasHasCode returns a boolean if a field has been set. +func (o *APIComment) HasHasCode() bool { + if o != nil && !IsNil(o.HasCode) { return true } return false } -// SetNotificationSentForParent gets a reference to the given bool and assigns it to the NotificationSentForParent field. -func (o *PickFCommentAPICommentFieldsKeys) SetNotificationSentForParent(v bool) { - o.NotificationSentForParent = &v +// SetHasCode gets a reference to the given bool and assigns it to the HasCode field. +func (o *APIComment) SetHasCode(v bool) { + o.HasCode = &v } -// GetNotificationSentForParentTenant returns the NotificationSentForParentTenant field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetNotificationSentForParentTenant() bool { - if o == nil || IsNil(o.NotificationSentForParentTenant) { +// GetHasImages returns the HasImages field value if set, zero value otherwise. +func (o *APIComment) GetHasImages() bool { + if o == nil || IsNil(o.HasImages) { var ret bool return ret } - return *o.NotificationSentForParentTenant + return *o.HasImages } -// GetNotificationSentForParentTenantOk returns a tuple with the NotificationSentForParentTenant field value if set, nil otherwise +// GetHasImagesOk returns a tuple with the HasImages field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetNotificationSentForParentTenantOk() (*bool, bool) { - if o == nil || IsNil(o.NotificationSentForParentTenant) { +func (o *APIComment) GetHasImagesOk() (*bool, bool) { + if o == nil || IsNil(o.HasImages) { return nil, false } - return o.NotificationSentForParentTenant, true + return o.HasImages, true } -// HasNotificationSentForParentTenant returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasNotificationSentForParentTenant() bool { - if o != nil && !IsNil(o.NotificationSentForParentTenant) { +// HasHasImages returns a boolean if a field has been set. +func (o *APIComment) HasHasImages() bool { + if o != nil && !IsNil(o.HasImages) { return true } return false } -// SetNotificationSentForParentTenant gets a reference to the given bool and assigns it to the NotificationSentForParentTenant field. -func (o *PickFCommentAPICommentFieldsKeys) SetNotificationSentForParentTenant(v bool) { - o.NotificationSentForParentTenant = &v +// SetHasImages gets a reference to the given bool and assigns it to the HasImages field. +func (o *APIComment) SetHasImages(v bool) { + o.HasImages = &v } -// GetReviewed returns the Reviewed field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetReviewed() bool { - if o == nil || IsNil(o.Reviewed) { +// GetHasLinks returns the HasLinks field value if set, zero value otherwise. +func (o *APIComment) GetHasLinks() bool { + if o == nil || IsNil(o.HasLinks) { var ret bool return ret } - return *o.Reviewed + return *o.HasLinks } -// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise +// GetHasLinksOk returns a tuple with the HasLinks field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetReviewedOk() (*bool, bool) { - if o == nil || IsNil(o.Reviewed) { +func (o *APIComment) GetHasLinksOk() (*bool, bool) { + if o == nil || IsNil(o.HasLinks) { return nil, false } - return o.Reviewed, true + return o.HasLinks, true } -// HasReviewed returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasReviewed() bool { - if o != nil && !IsNil(o.Reviewed) { +// HasHasLinks returns a boolean if a field has been set. +func (o *APIComment) HasHasLinks() bool { + if o != nil && !IsNil(o.HasLinks) { return true } return false } -// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. -func (o *PickFCommentAPICommentFieldsKeys) SetReviewed(v bool) { - o.Reviewed = &v +// SetHasLinks gets a reference to the given bool and assigns it to the HasLinks field. +func (o *APIComment) SetHasLinks(v bool) { + o.HasLinks = &v } -// GetExternalId returns the ExternalId field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetExternalId() string { - if o == nil || IsNil(o.ExternalId) { - var ret string +// GetHashTags returns the HashTags field value if set, zero value otherwise. +func (o *APIComment) GetHashTags() []CommentUserHashTagInfo { + if o == nil || IsNil(o.HashTags) { + var ret []CommentUserHashTagInfo return ret } - return *o.ExternalId + return o.HashTags } -// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// GetHashTagsOk returns a tuple with the HashTags field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetExternalIdOk() (*string, bool) { - if o == nil || IsNil(o.ExternalId) { +func (o *APIComment) GetHashTagsOk() ([]CommentUserHashTagInfo, bool) { + if o == nil || IsNil(o.HashTags) { return nil, false } - return o.ExternalId, true + return o.HashTags, true } -// HasExternalId returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasExternalId() bool { - if o != nil && !IsNil(o.ExternalId) { +// HasHashTags returns a boolean if a field has been set. +func (o *APIComment) HasHashTags() bool { + if o != nil && !IsNil(o.HashTags) { return true } return false } -// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. -func (o *PickFCommentAPICommentFieldsKeys) SetExternalId(v string) { - o.ExternalId = &v +// SetHashTags gets a reference to the given []CommentUserHashTagInfo and assigns it to the HashTags field. +func (o *APIComment) SetHashTags(v []CommentUserHashTagInfo) { + o.HashTags = v } -// GetExternalParentId returns the ExternalParentId field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetExternalParentId() string { - if o == nil || IsNil(o.ExternalParentId) { - var ret string +// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. +func (o *APIComment) GetIsByAdmin() bool { + if o == nil || IsNil(o.IsByAdmin) { + var ret bool return ret } - return *o.ExternalParentId + return *o.IsByAdmin } -// GetExternalParentIdOk returns a tuple with the ExternalParentId field value if set, nil otherwise +// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetExternalParentIdOk() (*string, bool) { - if o == nil || IsNil(o.ExternalParentId) { +func (o *APIComment) GetIsByAdminOk() (*bool, bool) { + if o == nil || IsNil(o.IsByAdmin) { return nil, false } - return o.ExternalParentId, true + return o.IsByAdmin, true } -// HasExternalParentId returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasExternalParentId() bool { - if o != nil && !IsNil(o.ExternalParentId) { +// HasIsByAdmin returns a boolean if a field has been set. +func (o *APIComment) HasIsByAdmin() bool { + if o != nil && !IsNil(o.IsByAdmin) { return true } return false } -// SetExternalParentId gets a reference to the given string and assigns it to the ExternalParentId field. -func (o *PickFCommentAPICommentFieldsKeys) SetExternalParentId(v string) { - o.ExternalParentId = &v +// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. +func (o *APIComment) SetIsByAdmin(v bool) { + o.IsByAdmin = &v } -// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetAvatarSrc() string { - if o == nil || IsNil(o.AvatarSrc) { - var ret string +// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. +func (o *APIComment) GetIsByModerator() bool { + if o == nil || IsNil(o.IsByModerator) { + var ret bool return ret } - return *o.AvatarSrc + return *o.IsByModerator } -// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise +// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetAvatarSrcOk() (*string, bool) { - if o == nil || IsNil(o.AvatarSrc) { +func (o *APIComment) GetIsByModeratorOk() (*bool, bool) { + if o == nil || IsNil(o.IsByModerator) { return nil, false } - return o.AvatarSrc, true + return o.IsByModerator, true } -// HasAvatarSrc returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasAvatarSrc() bool { - if o != nil && !IsNil(o.AvatarSrc) { +// HasIsByModerator returns a boolean if a field has been set. +func (o *APIComment) HasIsByModerator() bool { + if o != nil && !IsNil(o.IsByModerator) { return true } return false } -// SetAvatarSrc gets a reference to the given string and assigns it to the AvatarSrc field. -func (o *PickFCommentAPICommentFieldsKeys) SetAvatarSrc(v string) { - o.AvatarSrc = &v +// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. +func (o *APIComment) SetIsByModerator(v bool) { + o.IsByModerator = &v } -// GetIsSpam returns the IsSpam field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetIsSpam() bool { - if o == nil || IsNil(o.IsSpam) { +// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. +func (o *APIComment) GetIsDeleted() bool { + if o == nil || IsNil(o.IsDeleted) { var ret bool return ret } - return *o.IsSpam + return *o.IsDeleted } -// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise +// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetIsSpamOk() (*bool, bool) { - if o == nil || IsNil(o.IsSpam) { +func (o *APIComment) GetIsDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeleted) { return nil, false } - return o.IsSpam, true + return o.IsDeleted, true } -// HasIsSpam returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasIsSpam() bool { - if o != nil && !IsNil(o.IsSpam) { +// HasIsDeleted returns a boolean if a field has been set. +func (o *APIComment) HasIsDeleted() bool { + if o != nil && !IsNil(o.IsDeleted) { return true } return false } -// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. -func (o *PickFCommentAPICommentFieldsKeys) SetIsSpam(v bool) { - o.IsSpam = &v +// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. +func (o *APIComment) SetIsDeleted(v bool) { + o.IsDeleted = &v } -// GetAiDeterminedSpam returns the AiDeterminedSpam field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetAiDeterminedSpam() bool { - if o == nil || IsNil(o.AiDeterminedSpam) { +// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. +func (o *APIComment) GetIsDeletedUser() bool { + if o == nil || IsNil(o.IsDeletedUser) { var ret bool return ret } - return *o.AiDeterminedSpam + return *o.IsDeletedUser } -// GetAiDeterminedSpamOk returns a tuple with the AiDeterminedSpam field value if set, nil otherwise +// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetAiDeterminedSpamOk() (*bool, bool) { - if o == nil || IsNil(o.AiDeterminedSpam) { +func (o *APIComment) GetIsDeletedUserOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeletedUser) { return nil, false } - return o.AiDeterminedSpam, true + return o.IsDeletedUser, true } -// HasAiDeterminedSpam returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasAiDeterminedSpam() bool { - if o != nil && !IsNil(o.AiDeterminedSpam) { +// HasIsDeletedUser returns a boolean if a field has been set. +func (o *APIComment) HasIsDeletedUser() bool { + if o != nil && !IsNil(o.IsDeletedUser) { return true } return false } -// SetAiDeterminedSpam gets a reference to the given bool and assigns it to the AiDeterminedSpam field. -func (o *PickFCommentAPICommentFieldsKeys) SetAiDeterminedSpam(v bool) { - o.AiDeterminedSpam = &v +// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. +func (o *APIComment) SetIsDeletedUser(v bool) { + o.IsDeletedUser = &v } -// GetHasImages returns the HasImages field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetHasImages() bool { - if o == nil || IsNil(o.HasImages) { +// GetIsPinned returns the IsPinned field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetIsPinned() bool { + if o == nil || IsNil(o.IsPinned.Get()) { var ret bool return ret } - return *o.HasImages + return *o.IsPinned.Get() } -// GetHasImagesOk returns a tuple with the HasImages field value if set, nil otherwise +// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetHasImagesOk() (*bool, bool) { - if o == nil || IsNil(o.HasImages) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetIsPinnedOk() (*bool, bool) { + if o == nil { return nil, false } - return o.HasImages, true + return o.IsPinned.Get(), o.IsPinned.IsSet() } -// HasHasImages returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasHasImages() bool { - if o != nil && !IsNil(o.HasImages) { +// HasIsPinned returns a boolean if a field has been set. +func (o *APIComment) HasIsPinned() bool { + if o != nil && o.IsPinned.IsSet() { return true } return false } -// SetHasImages gets a reference to the given bool and assigns it to the HasImages field. -func (o *PickFCommentAPICommentFieldsKeys) SetHasImages(v bool) { - o.HasImages = &v +// SetIsPinned gets a reference to the given NullableBool and assigns it to the IsPinned field. +func (o *APIComment) SetIsPinned(v bool) { + o.IsPinned.Set(&v) +} +// SetIsPinnedNil sets the value for IsPinned to be an explicit nil +func (o *APIComment) SetIsPinnedNil() { + o.IsPinned.Set(nil) } -// GetHasLinks returns the HasLinks field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetHasLinks() bool { - if o == nil || IsNil(o.HasLinks) { - var ret bool +// UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +func (o *APIComment) UnsetIsPinned() { + o.IsPinned.Unset() +} + +// GetIsLocked returns the IsLocked field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetIsLocked() bool { + if o == nil || IsNil(o.IsLocked.Get()) { + var ret bool return ret } - return *o.HasLinks + return *o.IsLocked.Get() } -// GetHasLinksOk returns a tuple with the HasLinks field value if set, nil otherwise +// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetHasLinksOk() (*bool, bool) { - if o == nil || IsNil(o.HasLinks) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetIsLockedOk() (*bool, bool) { + if o == nil { return nil, false } - return o.HasLinks, true + return o.IsLocked.Get(), o.IsLocked.IsSet() } -// HasHasLinks returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasHasLinks() bool { - if o != nil && !IsNil(o.HasLinks) { +// HasIsLocked returns a boolean if a field has been set. +func (o *APIComment) HasIsLocked() bool { + if o != nil && o.IsLocked.IsSet() { return true } return false } -// SetHasLinks gets a reference to the given bool and assigns it to the HasLinks field. -func (o *PickFCommentAPICommentFieldsKeys) SetHasLinks(v bool) { - o.HasLinks = &v +// SetIsLocked gets a reference to the given NullableBool and assigns it to the IsLocked field. +func (o *APIComment) SetIsLocked(v bool) { + o.IsLocked.Set(&v) +} +// SetIsLockedNil sets the value for IsLocked to be an explicit nil +func (o *APIComment) SetIsLockedNil() { + o.IsLocked.Set(nil) } -// GetHasCode returns the HasCode field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetHasCode() bool { - if o == nil || IsNil(o.HasCode) { +// UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +func (o *APIComment) UnsetIsLocked() { + o.IsLocked.Unset() +} + +// GetIsSpam returns the IsSpam field value if set, zero value otherwise. +func (o *APIComment) GetIsSpam() bool { + if o == nil || IsNil(o.IsSpam) { var ret bool return ret } - return *o.HasCode + return *o.IsSpam } -// GetHasCodeOk returns a tuple with the HasCode field value if set, nil otherwise +// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetHasCodeOk() (*bool, bool) { - if o == nil || IsNil(o.HasCode) { +func (o *APIComment) GetIsSpamOk() (*bool, bool) { + if o == nil || IsNil(o.IsSpam) { return nil, false } - return o.HasCode, true + return o.IsSpam, true } -// HasHasCode returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasHasCode() bool { - if o != nil && !IsNil(o.HasCode) { +// HasIsSpam returns a boolean if a field has been set. +func (o *APIComment) HasIsSpam() bool { + if o != nil && !IsNil(o.IsSpam) { return true } return false } -// SetHasCode gets a reference to the given bool and assigns it to the HasCode field. -func (o *PickFCommentAPICommentFieldsKeys) SetHasCode(v bool) { - o.HasCode = &v +// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. +func (o *APIComment) SetIsSpam(v bool) { + o.IsSpam = &v } -// GetApproved returns the Approved field value -func (o *PickFCommentAPICommentFieldsKeys) GetApproved() bool { - if o == nil { - var ret bool +// GetLocalDateHours returns the LocalDateHours field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetLocalDateHours() int32 { + if o == nil || IsNil(o.LocalDateHours.Get()) { + var ret int32 return ret } + return *o.LocalDateHours.Get() +} - return o.Approved +// GetLocalDateHoursOk returns a tuple with the LocalDateHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetLocalDateHoursOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.LocalDateHours.Get(), o.LocalDateHours.IsSet() } -// GetApprovedOk returns a tuple with the Approved field value +// HasLocalDateHours returns a boolean if a field has been set. +func (o *APIComment) HasLocalDateHours() bool { + if o != nil && o.LocalDateHours.IsSet() { + return true + } + + return false +} + +// SetLocalDateHours gets a reference to the given NullableInt32 and assigns it to the LocalDateHours field. +func (o *APIComment) SetLocalDateHours(v int32) { + o.LocalDateHours.Set(&v) +} +// SetLocalDateHoursNil sets the value for LocalDateHours to be an explicit nil +func (o *APIComment) SetLocalDateHoursNil() { + o.LocalDateHours.Set(nil) +} + +// UnsetLocalDateHours ensures that no value is present for LocalDateHours, not even an explicit nil +func (o *APIComment) UnsetLocalDateHours() { + o.LocalDateHours.Unset() +} + +// GetLocalDateString returns the LocalDateString field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetLocalDateString() string { + if o == nil || IsNil(o.LocalDateString.Get()) { + var ret string + return ret + } + return *o.LocalDateString.Get() +} + +// GetLocalDateStringOk returns a tuple with the LocalDateString field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetApprovedOk() (*bool, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetLocalDateStringOk() (*string, bool) { if o == nil { return nil, false } - return &o.Approved, true + return o.LocalDateString.Get(), o.LocalDateString.IsSet() } -// SetApproved sets field value -func (o *PickFCommentAPICommentFieldsKeys) SetApproved(v bool) { - o.Approved = v +// HasLocalDateString returns a boolean if a field has been set. +func (o *APIComment) HasLocalDateString() bool { + if o != nil && o.LocalDateString.IsSet() { + return true + } + + return false +} + +// SetLocalDateString gets a reference to the given NullableString and assigns it to the LocalDateString field. +func (o *APIComment) SetLocalDateString(v string) { + o.LocalDateString.Set(&v) +} +// SetLocalDateStringNil sets the value for LocalDateString to be an explicit nil +func (o *APIComment) SetLocalDateStringNil() { + o.LocalDateString.Set(nil) +} + +// UnsetLocalDateString ensures that no value is present for LocalDateString, not even an explicit nil +func (o *APIComment) UnsetLocalDateString() { + o.LocalDateString.Unset() } // GetLocale returns the Locale field value -func (o *PickFCommentAPICommentFieldsKeys) GetLocale() string { - if o == nil { +// If the value is explicit nil, the zero value for string will be returned +func (o *APIComment) GetLocale() string { + if o == nil || o.Locale.Get() == nil { var ret string return ret } - return o.Locale + return *o.Locale.Get() } // GetLocaleOk returns a tuple with the Locale field value // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetLocaleOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetLocaleOk() (*string, bool) { if o == nil { return nil, false } - return &o.Locale, true + return o.Locale.Get(), o.Locale.IsSet() } // SetLocale sets field value -func (o *PickFCommentAPICommentFieldsKeys) SetLocale(v string) { - o.Locale = v +func (o *APIComment) SetLocale(v string) { + o.Locale.Set(&v) } -// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetIsDeleted() bool { - if o == nil || IsNil(o.IsDeleted) { - var ret bool +// GetMentions returns the Mentions field value if set, zero value otherwise. +func (o *APIComment) GetMentions() []CommentUserMentionInfo { + if o == nil || IsNil(o.Mentions) { + var ret []CommentUserMentionInfo return ret } - return *o.IsDeleted + return o.Mentions } -// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise +// GetMentionsOk returns a tuple with the Mentions field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetIsDeletedOk() (*bool, bool) { - if o == nil || IsNil(o.IsDeleted) { +func (o *APIComment) GetMentionsOk() ([]CommentUserMentionInfo, bool) { + if o == nil || IsNil(o.Mentions) { return nil, false } - return o.IsDeleted, true + return o.Mentions, true } -// HasIsDeleted returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasIsDeleted() bool { - if o != nil && !IsNil(o.IsDeleted) { +// HasMentions returns a boolean if a field has been set. +func (o *APIComment) HasMentions() bool { + if o != nil && !IsNil(o.Mentions) { return true } return false } -// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. -func (o *PickFCommentAPICommentFieldsKeys) SetIsDeleted(v bool) { - o.IsDeleted = &v +// SetMentions gets a reference to the given []CommentUserMentionInfo and assigns it to the Mentions field. +func (o *APIComment) SetMentions(v []CommentUserMentionInfo) { + o.Mentions = v } -// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetIsDeletedUser() bool { - if o == nil || IsNil(o.IsDeletedUser) { - var ret bool +// GetMeta returns the Meta field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetMeta() FCommentMeta { + if o == nil || IsNil(o.Meta.Get()) { + var ret FCommentMeta return ret } - return *o.IsDeletedUser + return *o.Meta.Get() } -// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetIsDeletedUserOk() (*bool, bool) { - if o == nil || IsNil(o.IsDeletedUser) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetMetaOk() (*FCommentMeta, bool) { + if o == nil { return nil, false } - return o.IsDeletedUser, true + return o.Meta.Get(), o.Meta.IsSet() } -// HasIsDeletedUser returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasIsDeletedUser() bool { - if o != nil && !IsNil(o.IsDeletedUser) { +// HasMeta returns a boolean if a field has been set. +func (o *APIComment) HasMeta() bool { + if o != nil && o.Meta.IsSet() { return true } return false } -// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. -func (o *PickFCommentAPICommentFieldsKeys) SetIsDeletedUser(v bool) { - o.IsDeletedUser = &v +// SetMeta gets a reference to the given NullableFCommentMeta and assigns it to the Meta field. +func (o *APIComment) SetMeta(v FCommentMeta) { + o.Meta.Set(&v) +} +// SetMetaNil sets the value for Meta to be an explicit nil +func (o *APIComment) SetMetaNil() { + o.Meta.Set(nil) } -// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetIsByAdmin() bool { - if o == nil || IsNil(o.IsByAdmin) { - var ret bool +// UnsetMeta ensures that no value is present for Meta, not even an explicit nil +func (o *APIComment) UnsetMeta() { + o.Meta.Unset() +} + +// GetModerationGroupIds returns the ModerationGroupIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetModerationGroupIds() []string { + if o == nil { + var ret []string return ret } - return *o.IsByAdmin + return o.ModerationGroupIds } -// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise +// GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetIsByAdminOk() (*bool, bool) { - if o == nil || IsNil(o.IsByAdmin) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetModerationGroupIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ModerationGroupIds) { return nil, false } - return o.IsByAdmin, true + return o.ModerationGroupIds, true } -// HasIsByAdmin returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasIsByAdmin() bool { - if o != nil && !IsNil(o.IsByAdmin) { +// HasModerationGroupIds returns a boolean if a field has been set. +func (o *APIComment) HasModerationGroupIds() bool { + if o != nil && !IsNil(o.ModerationGroupIds) { return true } return false } -// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. -func (o *PickFCommentAPICommentFieldsKeys) SetIsByAdmin(v bool) { - o.IsByAdmin = &v +// SetModerationGroupIds gets a reference to the given []string and assigns it to the ModerationGroupIds field. +func (o *APIComment) SetModerationGroupIds(v []string) { + o.ModerationGroupIds = v } -// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetIsByModerator() bool { - if o == nil || IsNil(o.IsByModerator) { +// GetNotificationSentForParent returns the NotificationSentForParent field value if set, zero value otherwise. +func (o *APIComment) GetNotificationSentForParent() bool { + if o == nil || IsNil(o.NotificationSentForParent) { var ret bool return ret } - return *o.IsByModerator + return *o.NotificationSentForParent } -// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise +// GetNotificationSentForParentOk returns a tuple with the NotificationSentForParent field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetIsByModeratorOk() (*bool, bool) { - if o == nil || IsNil(o.IsByModerator) { +func (o *APIComment) GetNotificationSentForParentOk() (*bool, bool) { + if o == nil || IsNil(o.NotificationSentForParent) { return nil, false } - return o.IsByModerator, true + return o.NotificationSentForParent, true } -// HasIsByModerator returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasIsByModerator() bool { - if o != nil && !IsNil(o.IsByModerator) { +// HasNotificationSentForParent returns a boolean if a field has been set. +func (o *APIComment) HasNotificationSentForParent() bool { + if o != nil && !IsNil(o.NotificationSentForParent) { return true } return false } -// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. -func (o *PickFCommentAPICommentFieldsKeys) SetIsByModerator(v bool) { - o.IsByModerator = &v +// SetNotificationSentForParent gets a reference to the given bool and assigns it to the NotificationSentForParent field. +func (o *APIComment) SetNotificationSentForParent(v bool) { + o.NotificationSentForParent = &v } -// GetIsPinned returns the IsPinned field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetIsPinned() bool { - if o == nil || IsNil(o.IsPinned) { +// GetNotificationSentForParentTenant returns the NotificationSentForParentTenant field value if set, zero value otherwise. +func (o *APIComment) GetNotificationSentForParentTenant() bool { + if o == nil || IsNil(o.NotificationSentForParentTenant) { var ret bool return ret } - return *o.IsPinned + return *o.NotificationSentForParentTenant } -// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise +// GetNotificationSentForParentTenantOk returns a tuple with the NotificationSentForParentTenant field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetIsPinnedOk() (*bool, bool) { - if o == nil || IsNil(o.IsPinned) { +func (o *APIComment) GetNotificationSentForParentTenantOk() (*bool, bool) { + if o == nil || IsNil(o.NotificationSentForParentTenant) { return nil, false } - return o.IsPinned, true + return o.NotificationSentForParentTenant, true } -// HasIsPinned returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasIsPinned() bool { - if o != nil && !IsNil(o.IsPinned) { +// HasNotificationSentForParentTenant returns a boolean if a field has been set. +func (o *APIComment) HasNotificationSentForParentTenant() bool { + if o != nil && !IsNil(o.NotificationSentForParentTenant) { return true } return false } -// SetIsPinned gets a reference to the given bool and assigns it to the IsPinned field. -func (o *PickFCommentAPICommentFieldsKeys) SetIsPinned(v bool) { - o.IsPinned = &v +// SetNotificationSentForParentTenant gets a reference to the given bool and assigns it to the NotificationSentForParentTenant field. +func (o *APIComment) SetNotificationSentForParentTenant(v bool) { + o.NotificationSentForParentTenant = &v } -// GetIsLocked returns the IsLocked field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetIsLocked() bool { - if o == nil || IsNil(o.IsLocked) { - var ret bool +// GetPageTitle returns the PageTitle field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetPageTitle() string { + if o == nil || IsNil(o.PageTitle.Get()) { + var ret string return ret } - return *o.IsLocked + return *o.PageTitle.Get() } -// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise +// GetPageTitleOk returns a tuple with the PageTitle field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetIsLockedOk() (*bool, bool) { - if o == nil || IsNil(o.IsLocked) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetPageTitleOk() (*string, bool) { + if o == nil { return nil, false } - return o.IsLocked, true + return o.PageTitle.Get(), o.PageTitle.IsSet() } -// HasIsLocked returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasIsLocked() bool { - if o != nil && !IsNil(o.IsLocked) { +// HasPageTitle returns a boolean if a field has been set. +func (o *APIComment) HasPageTitle() bool { + if o != nil && o.PageTitle.IsSet() { return true } return false } -// SetIsLocked gets a reference to the given bool and assigns it to the IsLocked field. -func (o *PickFCommentAPICommentFieldsKeys) SetIsLocked(v bool) { - o.IsLocked = &v +// SetPageTitle gets a reference to the given NullableString and assigns it to the PageTitle field. +func (o *APIComment) SetPageTitle(v string) { + o.PageTitle.Set(&v) +} +// SetPageTitleNil sets the value for PageTitle to be an explicit nil +func (o *APIComment) SetPageTitleNil() { + o.PageTitle.Set(nil) } -// GetFlagCount returns the FlagCount field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetFlagCount() int32 { - if o == nil || IsNil(o.FlagCount) { - var ret int32 +// UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +func (o *APIComment) UnsetPageTitle() { + o.PageTitle.Unset() +} + +// GetParentId returns the ParentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetParentId() string { + if o == nil || IsNil(o.ParentId.Get()) { + var ret string return ret } - return *o.FlagCount + return *o.ParentId.Get() } -// GetFlagCountOk returns a tuple with the FlagCount field value if set, nil otherwise +// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetFlagCountOk() (*int32, bool) { - if o == nil || IsNil(o.FlagCount) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetParentIdOk() (*string, bool) { + if o == nil { return nil, false } - return o.FlagCount, true + return o.ParentId.Get(), o.ParentId.IsSet() } -// HasFlagCount returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasFlagCount() bool { - if o != nil && !IsNil(o.FlagCount) { +// HasParentId returns a boolean if a field has been set. +func (o *APIComment) HasParentId() bool { + if o != nil && o.ParentId.IsSet() { return true } return false } -// SetFlagCount gets a reference to the given int32 and assigns it to the FlagCount field. -func (o *PickFCommentAPICommentFieldsKeys) SetFlagCount(v int32) { - o.FlagCount = &v +// SetParentId gets a reference to the given NullableString and assigns it to the ParentId field. +func (o *APIComment) SetParentId(v string) { + o.ParentId.Set(&v) +} +// SetParentIdNil sets the value for ParentId to be an explicit nil +func (o *APIComment) SetParentIdNil() { + o.ParentId.Set(nil) +} + +// UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +func (o *APIComment) UnsetParentId() { + o.ParentId.Unset() } -// GetRating returns the Rating field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetRating() float64 { - if o == nil || IsNil(o.Rating) { +// GetRating returns the Rating field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetRating() float64 { + if o == nil || IsNil(o.Rating.Get()) { var ret float64 return ret } - return *o.Rating + return *o.Rating.Get() } // GetRatingOk returns a tuple with the Rating field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetRatingOk() (*float64, bool) { - if o == nil || IsNil(o.Rating) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetRatingOk() (*float64, bool) { + if o == nil { return nil, false } - return o.Rating, true + return o.Rating.Get(), o.Rating.IsSet() } // HasRating returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasRating() bool { - if o != nil && !IsNil(o.Rating) { +func (o *APIComment) HasRating() bool { + if o != nil && o.Rating.IsSet() { return true } return false } -// SetRating gets a reference to the given float64 and assigns it to the Rating field. -func (o *PickFCommentAPICommentFieldsKeys) SetRating(v float64) { - o.Rating = &v +// SetRating gets a reference to the given NullableFloat64 and assigns it to the Rating field. +func (o *APIComment) SetRating(v float64) { + o.Rating.Set(&v) +} +// SetRatingNil sets the value for Rating to be an explicit nil +func (o *APIComment) SetRatingNil() { + o.Rating.Set(nil) } -// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetDisplayLabel() string { - if o == nil || IsNil(o.DisplayLabel) { - var ret string +// UnsetRating ensures that no value is present for Rating, not even an explicit nil +func (o *APIComment) UnsetRating() { + o.Rating.Unset() +} + +// GetReviewed returns the Reviewed field value if set, zero value otherwise. +func (o *APIComment) GetReviewed() bool { + if o == nil || IsNil(o.Reviewed) { + var ret bool return ret } - return *o.DisplayLabel + return *o.Reviewed } -// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise +// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetDisplayLabelOk() (*string, bool) { - if o == nil || IsNil(o.DisplayLabel) { +func (o *APIComment) GetReviewedOk() (*bool, bool) { + if o == nil || IsNil(o.Reviewed) { return nil, false } - return o.DisplayLabel, true + return o.Reviewed, true } -// HasDisplayLabel returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasDisplayLabel() bool { - if o != nil && !IsNil(o.DisplayLabel) { +// HasReviewed returns a boolean if a field has been set. +func (o *APIComment) HasReviewed() bool { + if o != nil && !IsNil(o.Reviewed) { return true } return false } -// SetDisplayLabel gets a reference to the given string and assigns it to the DisplayLabel field. -func (o *PickFCommentAPICommentFieldsKeys) SetDisplayLabel(v string) { - o.DisplayLabel = &v +// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. +func (o *APIComment) SetReviewed(v bool) { + o.Reviewed = &v } -// GetFromProductId returns the FromProductId field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetFromProductId() int32 { - if o == nil || IsNil(o.FromProductId) { - var ret int32 +// GetTenantId returns the TenantId field value +func (o *APIComment) GetTenantId() string { + if o == nil { + var ret string return ret } - return *o.FromProductId + + return o.TenantId } -// GetFromProductIdOk returns a tuple with the FromProductId field value if set, nil otherwise +// GetTenantIdOk returns a tuple with the TenantId field value // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetFromProductIdOk() (*int32, bool) { - if o == nil || IsNil(o.FromProductId) { +func (o *APIComment) GetTenantIdOk() (*string, bool) { + if o == nil { return nil, false } - return o.FromProductId, true -} - -// HasFromProductId returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasFromProductId() bool { - if o != nil && !IsNil(o.FromProductId) { - return true - } - - return false + return &o.TenantId, true } -// SetFromProductId gets a reference to the given int32 and assigns it to the FromProductId field. -func (o *PickFCommentAPICommentFieldsKeys) SetFromProductId(v int32) { - o.FromProductId = &v +// SetTenantId sets field value +func (o *APIComment) SetTenantId(v string) { + o.TenantId = v } -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetMeta() PickFCommentAPICommentFieldsKeysMeta { - if o == nil || IsNil(o.Meta) { - var ret PickFCommentAPICommentFieldsKeysMeta +// GetUrl returns the Url field value +func (o *APIComment) GetUrl() string { + if o == nil { + var ret string return ret } - return *o.Meta + + return o.Url } -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetMetaOk() (*PickFCommentAPICommentFieldsKeysMeta, bool) { - if o == nil || IsNil(o.Meta) { +func (o *APIComment) GetUrlOk() (*string, bool) { + if o == nil { return nil, false } - return o.Meta, true + return &o.Url, true } -// HasMeta returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true +// SetUrl sets field value +func (o *APIComment) SetUrl(v string) { + o.Url = v +} + +// GetUrlId returns the UrlId field value +func (o *APIComment) GetUrlId() string { + if o == nil { + var ret string + return ret } - return false + return o.UrlId } -// SetMeta gets a reference to the given PickFCommentAPICommentFieldsKeysMeta and assigns it to the Meta field. -func (o *PickFCommentAPICommentFieldsKeys) SetMeta(v PickFCommentAPICommentFieldsKeysMeta) { - o.Meta = &v +// GetUrlIdOk returns a tuple with the UrlId field value +// and a boolean to check if the value has been set. +func (o *APIComment) GetUrlIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UrlId, true } -// GetMentions returns the Mentions field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetMentions() []CommentUserMentionInfo { - if o == nil || IsNil(o.Mentions) { - var ret []CommentUserMentionInfo +// SetUrlId sets field value +func (o *APIComment) SetUrlId(v string) { + o.UrlId = v +} + +// GetUrlIdRaw returns the UrlIdRaw field value if set, zero value otherwise. +func (o *APIComment) GetUrlIdRaw() string { + if o == nil || IsNil(o.UrlIdRaw) { + var ret string return ret } - return o.Mentions + return *o.UrlIdRaw } -// GetMentionsOk returns a tuple with the Mentions field value if set, nil otherwise +// GetUrlIdRawOk returns a tuple with the UrlIdRaw field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetMentionsOk() ([]CommentUserMentionInfo, bool) { - if o == nil || IsNil(o.Mentions) { +func (o *APIComment) GetUrlIdRawOk() (*string, bool) { + if o == nil || IsNil(o.UrlIdRaw) { return nil, false } - return o.Mentions, true + return o.UrlIdRaw, true } -// HasMentions returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasMentions() bool { - if o != nil && !IsNil(o.Mentions) { +// HasUrlIdRaw returns a boolean if a field has been set. +func (o *APIComment) HasUrlIdRaw() bool { + if o != nil && !IsNil(o.UrlIdRaw) { return true } return false } -// SetMentions gets a reference to the given []CommentUserMentionInfo and assigns it to the Mentions field. -func (o *PickFCommentAPICommentFieldsKeys) SetMentions(v []CommentUserMentionInfo) { - o.Mentions = v +// SetUrlIdRaw gets a reference to the given string and assigns it to the UrlIdRaw field. +func (o *APIComment) SetUrlIdRaw(v string) { + o.UrlIdRaw = &v } -// GetHashTags returns the HashTags field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetHashTags() []CommentUserHashTagInfo { - if o == nil || IsNil(o.HashTags) { - var ret []CommentUserHashTagInfo +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string return ret } - return o.HashTags + return *o.UserId.Get() } -// GetHashTagsOk returns a tuple with the HashTags field value if set, nil otherwise +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetHashTagsOk() ([]CommentUserHashTagInfo, bool) { - if o == nil || IsNil(o.HashTags) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetUserIdOk() (*string, bool) { + if o == nil { return nil, false } - return o.HashTags, true + return o.UserId.Get(), o.UserId.IsSet() } -// HasHashTags returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasHashTags() bool { - if o != nil && !IsNil(o.HashTags) { +// HasUserId returns a boolean if a field has been set. +func (o *APIComment) HasUserId() bool { + if o != nil && o.UserId.IsSet() { return true } return false } -// SetHashTags gets a reference to the given []CommentUserHashTagInfo and assigns it to the HashTags field. -func (o *PickFCommentAPICommentFieldsKeys) SetHashTags(v []CommentUserHashTagInfo) { - o.HashTags = v +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *APIComment) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *APIComment) SetUserIdNil() { + o.UserId.Set(nil) } -// GetBadges returns the Badges field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetBadges() []CommentUserBadgeInfo { - if o == nil || IsNil(o.Badges) { - var ret []CommentUserBadgeInfo +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *APIComment) UnsetUserId() { + o.UserId.Unset() +} + +// GetVerified returns the Verified field value +func (o *APIComment) GetVerified() bool { + if o == nil { + var ret bool return ret } - return o.Badges + + return o.Verified } -// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise +// GetVerifiedOk returns a tuple with the Verified field value // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { - if o == nil || IsNil(o.Badges) { +func (o *APIComment) GetVerifiedOk() (*bool, bool) { + if o == nil { return nil, false } - return o.Badges, true + return &o.Verified, true } -// HasBadges returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasBadges() bool { - if o != nil && !IsNil(o.Badges) { +// SetVerified sets field value +func (o *APIComment) SetVerified(v bool) { + o.Verified = v +} + +// GetVerifiedDate returns the VerifiedDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetVerifiedDate() time.Time { + if o == nil || IsNil(o.VerifiedDate.Get()) { + var ret time.Time + return ret + } + return *o.VerifiedDate.Get() +} + +// GetVerifiedDateOk returns a tuple with the VerifiedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetVerifiedDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.VerifiedDate.Get(), o.VerifiedDate.IsSet() +} + +// HasVerifiedDate returns a boolean if a field has been set. +func (o *APIComment) HasVerifiedDate() bool { + if o != nil && o.VerifiedDate.IsSet() { return true } return false } -// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. -func (o *PickFCommentAPICommentFieldsKeys) SetBadges(v []CommentUserBadgeInfo) { - o.Badges = v +// SetVerifiedDate gets a reference to the given NullableTime and assigns it to the VerifiedDate field. +func (o *APIComment) SetVerifiedDate(v time.Time) { + o.VerifiedDate.Set(&v) +} +// SetVerifiedDateNil sets the value for VerifiedDate to be an explicit nil +func (o *APIComment) SetVerifiedDateNil() { + o.VerifiedDate.Set(nil) } -// GetDomain returns the Domain field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetDomain() string { - if o == nil || IsNil(o.Domain) { - var ret string +// UnsetVerifiedDate ensures that no value is present for VerifiedDate, not even an explicit nil +func (o *APIComment) UnsetVerifiedDate() { + o.VerifiedDate.Unset() +} + +// GetVotes returns the Votes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetVotes() int32 { + if o == nil || IsNil(o.Votes.Get()) { + var ret int32 return ret } - return *o.Domain + return *o.Votes.Get() } -// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetDomainOk() (*string, bool) { - if o == nil || IsNil(o.Domain) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetVotesOk() (*int32, bool) { + if o == nil { return nil, false } - return o.Domain, true + return o.Votes.Get(), o.Votes.IsSet() } -// HasDomain returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasDomain() bool { - if o != nil && !IsNil(o.Domain) { +// HasVotes returns a boolean if a field has been set. +func (o *APIComment) HasVotes() bool { + if o != nil && o.Votes.IsSet() { return true } return false } -// SetDomain gets a reference to the given string and assigns it to the Domain field. -func (o *PickFCommentAPICommentFieldsKeys) SetDomain(v string) { - o.Domain = &v +// SetVotes gets a reference to the given NullableInt32 and assigns it to the Votes field. +func (o *APIComment) SetVotes(v int32) { + o.Votes.Set(&v) +} +// SetVotesNil sets the value for Votes to be an explicit nil +func (o *APIComment) SetVotesNil() { + o.Votes.Set(nil) } -// GetModerationGroupIds returns the ModerationGroupIds field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetModerationGroupIds() []string { - if o == nil || IsNil(o.ModerationGroupIds) { - var ret []string +// UnsetVotes ensures that no value is present for Votes, not even an explicit nil +func (o *APIComment) UnsetVotes() { + o.Votes.Unset() +} + +// GetVotesDown returns the VotesDown field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetVotesDown() int32 { + if o == nil || IsNil(o.VotesDown.Get()) { + var ret int32 return ret } - return o.ModerationGroupIds + return *o.VotesDown.Get() } -// GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field value if set, nil otherwise +// GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetModerationGroupIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ModerationGroupIds) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetVotesDownOk() (*int32, bool) { + if o == nil { return nil, false } - return o.ModerationGroupIds, true + return o.VotesDown.Get(), o.VotesDown.IsSet() } -// HasModerationGroupIds returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasModerationGroupIds() bool { - if o != nil && !IsNil(o.ModerationGroupIds) { +// HasVotesDown returns a boolean if a field has been set. +func (o *APIComment) HasVotesDown() bool { + if o != nil && o.VotesDown.IsSet() { return true } return false } -// SetModerationGroupIds gets a reference to the given []string and assigns it to the ModerationGroupIds field. -func (o *PickFCommentAPICommentFieldsKeys) SetModerationGroupIds(v []string) { - o.ModerationGroupIds = v +// SetVotesDown gets a reference to the given NullableInt32 and assigns it to the VotesDown field. +func (o *APIComment) SetVotesDown(v int32) { + o.VotesDown.Set(&v) +} +// SetVotesDownNil sets the value for VotesDown to be an explicit nil +func (o *APIComment) SetVotesDownNil() { + o.VotesDown.Set(nil) } -// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeys) GetFeedbackIds() []string { - if o == nil || IsNil(o.FeedbackIds) { - var ret []string +// UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +func (o *APIComment) UnsetVotesDown() { + o.VotesDown.Unset() +} + +// GetVotesUp returns the VotesUp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APIComment) GetVotesUp() int32 { + if o == nil || IsNil(o.VotesUp.Get()) { + var ret int32 return ret } - return o.FeedbackIds + return *o.VotesUp.Get() } -// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise +// GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeys) GetFeedbackIdsOk() ([]string, bool) { - if o == nil || IsNil(o.FeedbackIds) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APIComment) GetVotesUpOk() (*int32, bool) { + if o == nil { return nil, false } - return o.FeedbackIds, true + return o.VotesUp.Get(), o.VotesUp.IsSet() } -// HasFeedbackIds returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeys) HasFeedbackIds() bool { - if o != nil && !IsNil(o.FeedbackIds) { +// HasVotesUp returns a boolean if a field has been set. +func (o *APIComment) HasVotesUp() bool { + if o != nil && o.VotesUp.IsSet() { return true } return false } -// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. -func (o *PickFCommentAPICommentFieldsKeys) SetFeedbackIds(v []string) { - o.FeedbackIds = v +// SetVotesUp gets a reference to the given NullableInt32 and assigns it to the VotesUp field. +func (o *APIComment) SetVotesUp(v int32) { + o.VotesUp.Set(&v) +} +// SetVotesUpNil sets the value for VotesUp to be an explicit nil +func (o *APIComment) SetVotesUpNil() { + o.VotesUp.Set(nil) +} + +// UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil +func (o *APIComment) UnsetVotesUp() { + o.VotesUp.Unset() } -func (o PickFCommentAPICommentFieldsKeys) MarshalJSON() ([]byte, error) { +func (o APIComment) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -1723,82 +1949,58 @@ func (o PickFCommentAPICommentFieldsKeys) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o PickFCommentAPICommentFieldsKeys) ToMap() (map[string]interface{}, error) { +func (o APIComment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["date"] = o.Date toSerialize["_id"] = o.Id - toSerialize["tenantId"] = o.TenantId - toSerialize["urlId"] = o.UrlId - if !IsNil(o.UrlIdRaw) { - toSerialize["urlIdRaw"] = o.UrlIdRaw - } - toSerialize["url"] = o.Url - if !IsNil(o.PageTitle) { - toSerialize["pageTitle"] = o.PageTitle - } - if !IsNil(o.UserId) { - toSerialize["userId"] = o.UserId + if !IsNil(o.AiDeterminedSpam) { + toSerialize["aiDeterminedSpam"] = o.AiDeterminedSpam } - if !IsNil(o.AnonUserId) { - toSerialize["anonUserId"] = o.AnonUserId + if o.AnonUserId.IsSet() { + toSerialize["anonUserId"] = o.AnonUserId.Get() } - if !IsNil(o.CommenterEmail) { - toSerialize["commenterEmail"] = o.CommenterEmail + toSerialize["approved"] = o.Approved + if o.AvatarSrc.IsSet() { + toSerialize["avatarSrc"] = o.AvatarSrc.Get() } - toSerialize["commenterName"] = o.CommenterName - if !IsNil(o.CommenterLink) { - toSerialize["commenterLink"] = o.CommenterLink + if o.Badges != nil { + toSerialize["badges"] = o.Badges } toSerialize["comment"] = o.Comment toSerialize["commentHTML"] = o.CommentHTML - if !IsNil(o.ParentId) { - toSerialize["parentId"] = o.ParentId - } - if !IsNil(o.LocalDateString) { - toSerialize["localDateString"] = o.LocalDateString - } - if !IsNil(o.LocalDateHours) { - toSerialize["localDateHours"] = o.LocalDateHours - } - if !IsNil(o.Votes) { - toSerialize["votes"] = o.Votes - } - if !IsNil(o.VotesUp) { - toSerialize["votesUp"] = o.VotesUp + if o.CommenterEmail.IsSet() { + toSerialize["commenterEmail"] = o.CommenterEmail.Get() } - if !IsNil(o.VotesDown) { - toSerialize["votesDown"] = o.VotesDown + if o.CommenterLink.IsSet() { + toSerialize["commenterLink"] = o.CommenterLink.Get() } - if !IsNil(o.ExpireAt) { - toSerialize["expireAt"] = o.ExpireAt - } - toSerialize["verified"] = o.Verified - if !IsNil(o.VerifiedDate) { - toSerialize["verifiedDate"] = o.VerifiedDate - } - if !IsNil(o.NotificationSentForParent) { - toSerialize["notificationSentForParent"] = o.NotificationSentForParent - } - if !IsNil(o.NotificationSentForParentTenant) { - toSerialize["notificationSentForParentTenant"] = o.NotificationSentForParentTenant + toSerialize["commenterName"] = o.CommenterName + toSerialize["date"] = o.Date.Get() + if o.DisplayLabel.IsSet() { + toSerialize["displayLabel"] = o.DisplayLabel.Get() } - if !IsNil(o.Reviewed) { - toSerialize["reviewed"] = o.Reviewed + if o.Domain.IsSet() { + toSerialize["domain"] = o.Domain.Get() } if !IsNil(o.ExternalId) { toSerialize["externalId"] = o.ExternalId } - if !IsNil(o.ExternalParentId) { - toSerialize["externalParentId"] = o.ExternalParentId + if o.ExternalParentId.IsSet() { + toSerialize["externalParentId"] = o.ExternalParentId.Get() } - if !IsNil(o.AvatarSrc) { - toSerialize["avatarSrc"] = o.AvatarSrc + if o.ExpireAt.IsSet() { + toSerialize["expireAt"] = o.ExpireAt.Get() } - if !IsNil(o.IsSpam) { - toSerialize["isSpam"] = o.IsSpam + if !IsNil(o.FeedbackIds) { + toSerialize["feedbackIds"] = o.FeedbackIds } - if !IsNil(o.AiDeterminedSpam) { - toSerialize["aiDeterminedSpam"] = o.AiDeterminedSpam + if o.FlagCount.IsSet() { + toSerialize["flagCount"] = o.FlagCount.Get() + } + if !IsNil(o.FromProductId) { + toSerialize["fromProductId"] = o.FromProductId + } + if !IsNil(o.HasCode) { + toSerialize["hasCode"] = o.HasCode } if !IsNil(o.HasImages) { toSerialize["hasImages"] = o.HasImages @@ -1806,16 +2008,8 @@ func (o PickFCommentAPICommentFieldsKeys) ToMap() (map[string]interface{}, error if !IsNil(o.HasLinks) { toSerialize["hasLinks"] = o.HasLinks } - if !IsNil(o.HasCode) { - toSerialize["hasCode"] = o.HasCode - } - toSerialize["approved"] = o.Approved - toSerialize["locale"] = o.Locale - if !IsNil(o.IsDeleted) { - toSerialize["isDeleted"] = o.IsDeleted - } - if !IsNil(o.IsDeletedUser) { - toSerialize["isDeletedUser"] = o.IsDeletedUser + if !IsNil(o.HashTags) { + toSerialize["hashTags"] = o.HashTags } if !IsNil(o.IsByAdmin) { toSerialize["isByAdmin"] = o.IsByAdmin @@ -1823,64 +2017,96 @@ func (o PickFCommentAPICommentFieldsKeys) ToMap() (map[string]interface{}, error if !IsNil(o.IsByModerator) { toSerialize["isByModerator"] = o.IsByModerator } - if !IsNil(o.IsPinned) { - toSerialize["isPinned"] = o.IsPinned + if !IsNil(o.IsDeleted) { + toSerialize["isDeleted"] = o.IsDeleted } - if !IsNil(o.IsLocked) { - toSerialize["isLocked"] = o.IsLocked + if !IsNil(o.IsDeletedUser) { + toSerialize["isDeletedUser"] = o.IsDeletedUser } - if !IsNil(o.FlagCount) { - toSerialize["flagCount"] = o.FlagCount + if o.IsPinned.IsSet() { + toSerialize["isPinned"] = o.IsPinned.Get() } - if !IsNil(o.Rating) { - toSerialize["rating"] = o.Rating + if o.IsLocked.IsSet() { + toSerialize["isLocked"] = o.IsLocked.Get() } - if !IsNil(o.DisplayLabel) { - toSerialize["displayLabel"] = o.DisplayLabel + if !IsNil(o.IsSpam) { + toSerialize["isSpam"] = o.IsSpam } - if !IsNil(o.FromProductId) { - toSerialize["fromProductId"] = o.FromProductId + if o.LocalDateHours.IsSet() { + toSerialize["localDateHours"] = o.LocalDateHours.Get() } - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta + if o.LocalDateString.IsSet() { + toSerialize["localDateString"] = o.LocalDateString.Get() } + toSerialize["locale"] = o.Locale.Get() if !IsNil(o.Mentions) { toSerialize["mentions"] = o.Mentions } - if !IsNil(o.HashTags) { - toSerialize["hashTags"] = o.HashTags + if o.Meta.IsSet() { + toSerialize["meta"] = o.Meta.Get() } - if !IsNil(o.Badges) { - toSerialize["badges"] = o.Badges + if o.ModerationGroupIds != nil { + toSerialize["moderationGroupIds"] = o.ModerationGroupIds } - if !IsNil(o.Domain) { - toSerialize["domain"] = o.Domain + if !IsNil(o.NotificationSentForParent) { + toSerialize["notificationSentForParent"] = o.NotificationSentForParent } - if !IsNil(o.ModerationGroupIds) { - toSerialize["moderationGroupIds"] = o.ModerationGroupIds + if !IsNil(o.NotificationSentForParentTenant) { + toSerialize["notificationSentForParentTenant"] = o.NotificationSentForParentTenant } - if !IsNil(o.FeedbackIds) { - toSerialize["feedbackIds"] = o.FeedbackIds + if o.PageTitle.IsSet() { + toSerialize["pageTitle"] = o.PageTitle.Get() + } + if o.ParentId.IsSet() { + toSerialize["parentId"] = o.ParentId.Get() + } + if o.Rating.IsSet() { + toSerialize["rating"] = o.Rating.Get() + } + if !IsNil(o.Reviewed) { + toSerialize["reviewed"] = o.Reviewed + } + toSerialize["tenantId"] = o.TenantId + toSerialize["url"] = o.Url + toSerialize["urlId"] = o.UrlId + if !IsNil(o.UrlIdRaw) { + toSerialize["urlIdRaw"] = o.UrlIdRaw + } + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + toSerialize["verified"] = o.Verified + if o.VerifiedDate.IsSet() { + toSerialize["verifiedDate"] = o.VerifiedDate.Get() + } + if o.Votes.IsSet() { + toSerialize["votes"] = o.Votes.Get() + } + if o.VotesDown.IsSet() { + toSerialize["votesDown"] = o.VotesDown.Get() + } + if o.VotesUp.IsSet() { + toSerialize["votesUp"] = o.VotesUp.Get() } return toSerialize, nil } -func (o *PickFCommentAPICommentFieldsKeys) UnmarshalJSON(data []byte) (err error) { +func (o *APIComment) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "date", "_id", - "tenantId", - "urlId", - "url", - "commenterName", + "approved", "comment", "commentHTML", - "verified", - "approved", + "commenterName", + "date", "locale", + "tenantId", + "url", + "urlId", + "verified", } allProperties := make(map[string]interface{}) @@ -1897,53 +2123,53 @@ func (o *PickFCommentAPICommentFieldsKeys) UnmarshalJSON(data []byte) (err error } } - varPickFCommentAPICommentFieldsKeys := _PickFCommentAPICommentFieldsKeys{} + varAPIComment := _APIComment{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varPickFCommentAPICommentFieldsKeys) + err = decoder.Decode(&varAPIComment) if err != nil { return err } - *o = PickFCommentAPICommentFieldsKeys(varPickFCommentAPICommentFieldsKeys) + *o = APIComment(varAPIComment) return err } -type NullablePickFCommentAPICommentFieldsKeys struct { - value *PickFCommentAPICommentFieldsKeys +type NullableAPIComment struct { + value *APIComment isSet bool } -func (v NullablePickFCommentAPICommentFieldsKeys) Get() *PickFCommentAPICommentFieldsKeys { +func (v NullableAPIComment) Get() *APIComment { return v.value } -func (v *NullablePickFCommentAPICommentFieldsKeys) Set(val *PickFCommentAPICommentFieldsKeys) { +func (v *NullableAPIComment) Set(val *APIComment) { v.value = val v.isSet = true } -func (v NullablePickFCommentAPICommentFieldsKeys) IsSet() bool { +func (v NullableAPIComment) IsSet() bool { return v.isSet } -func (v *NullablePickFCommentAPICommentFieldsKeys) Unset() { +func (v *NullableAPIComment) Unset() { v.value = nil v.isSet = false } -func NewNullablePickFCommentAPICommentFieldsKeys(val *PickFCommentAPICommentFieldsKeys) *NullablePickFCommentAPICommentFieldsKeys { - return &NullablePickFCommentAPICommentFieldsKeys{value: val, isSet: true} +func NewNullableAPIComment(val *APIComment) *NullableAPIComment { + return &NullableAPIComment{value: val, isSet: true} } -func (v NullablePickFCommentAPICommentFieldsKeys) MarshalJSON() ([]byte, error) { +func (v NullableAPIComment) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePickFCommentAPICommentFieldsKeys) UnmarshalJSON(src []byte) error { +func (v *NullableAPIComment) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_api_comment_base.go b/client/model_api_comment_base.go new file mode 100644 index 0000000..8c92da8 --- /dev/null +++ b/client/model_api_comment_base.go @@ -0,0 +1,2177 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the APICommentBase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &APICommentBase{} + +// APICommentBase struct for APICommentBase +type APICommentBase struct { + Id string `json:"_id"` + AiDeterminedSpam *bool `json:"aiDeterminedSpam,omitempty"` + AnonUserId NullableString `json:"anonUserId,omitempty"` + Approved bool `json:"approved"` + AvatarSrc NullableString `json:"avatarSrc,omitempty"` + Badges []CommentUserBadgeInfo `json:"badges,omitempty"` + Comment string `json:"comment"` + CommentHTML string `json:"commentHTML"` + CommenterEmail NullableString `json:"commenterEmail,omitempty"` + CommenterLink NullableString `json:"commenterLink,omitempty"` + CommenterName string `json:"commenterName"` + Date NullableTime `json:"date"` + DisplayLabel NullableString `json:"displayLabel,omitempty"` + Domain NullableString `json:"domain,omitempty"` + ExternalId *string `json:"externalId,omitempty"` + ExternalParentId NullableString `json:"externalParentId,omitempty"` + ExpireAt NullableTime `json:"expireAt,omitempty"` + FeedbackIds []string `json:"feedbackIds,omitempty"` + FlagCount NullableInt32 `json:"flagCount,omitempty"` + FromProductId *int32 `json:"fromProductId,omitempty"` + HasCode *bool `json:"hasCode,omitempty"` + HasImages *bool `json:"hasImages,omitempty"` + HasLinks *bool `json:"hasLinks,omitempty"` + HashTags []CommentUserHashTagInfo `json:"hashTags,omitempty"` + IsByAdmin *bool `json:"isByAdmin,omitempty"` + IsByModerator *bool `json:"isByModerator,omitempty"` + IsDeleted *bool `json:"isDeleted,omitempty"` + IsDeletedUser *bool `json:"isDeletedUser,omitempty"` + IsPinned NullableBool `json:"isPinned,omitempty"` + IsLocked NullableBool `json:"isLocked,omitempty"` + IsSpam *bool `json:"isSpam,omitempty"` + LocalDateHours NullableInt32 `json:"localDateHours,omitempty"` + LocalDateString NullableString `json:"localDateString,omitempty"` + Locale NullableString `json:"locale"` + Mentions []CommentUserMentionInfo `json:"mentions,omitempty"` + Meta NullableFCommentMeta `json:"meta,omitempty"` + ModerationGroupIds []string `json:"moderationGroupIds,omitempty"` + NotificationSentForParent *bool `json:"notificationSentForParent,omitempty"` + NotificationSentForParentTenant *bool `json:"notificationSentForParentTenant,omitempty"` + PageTitle NullableString `json:"pageTitle,omitempty"` + ParentId NullableString `json:"parentId,omitempty"` + Rating NullableFloat64 `json:"rating,omitempty"` + Reviewed *bool `json:"reviewed,omitempty"` + TenantId string `json:"tenantId"` + Url string `json:"url"` + UrlId string `json:"urlId"` + UrlIdRaw *string `json:"urlIdRaw,omitempty"` + UserId NullableString `json:"userId,omitempty"` + Verified bool `json:"verified"` + VerifiedDate NullableTime `json:"verifiedDate,omitempty"` + Votes NullableInt32 `json:"votes,omitempty"` + VotesDown NullableInt32 `json:"votesDown,omitempty"` + VotesUp NullableInt32 `json:"votesUp,omitempty"` +} + +type _APICommentBase APICommentBase + +// NewAPICommentBase instantiates a new APICommentBase 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 NewAPICommentBase(id string, approved bool, comment string, commentHTML string, commenterName string, date NullableTime, locale NullableString, tenantId string, url string, urlId string, verified bool) *APICommentBase { + this := APICommentBase{} + this.Id = id + this.Approved = approved + this.Comment = comment + this.CommentHTML = commentHTML + this.CommenterName = commenterName + this.Date = date + this.Locale = locale + this.TenantId = tenantId + this.Url = url + this.UrlId = urlId + this.Verified = verified + return &this +} + +// NewAPICommentBaseWithDefaults instantiates a new APICommentBase 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 NewAPICommentBaseWithDefaults() *APICommentBase { + this := APICommentBase{} + return &this +} + +// GetId returns the Id field value +func (o *APICommentBase) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *APICommentBase) SetId(v string) { + o.Id = v +} + +// GetAiDeterminedSpam returns the AiDeterminedSpam field value if set, zero value otherwise. +func (o *APICommentBase) GetAiDeterminedSpam() bool { + if o == nil || IsNil(o.AiDeterminedSpam) { + var ret bool + return ret + } + return *o.AiDeterminedSpam +} + +// GetAiDeterminedSpamOk returns a tuple with the AiDeterminedSpam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetAiDeterminedSpamOk() (*bool, bool) { + if o == nil || IsNil(o.AiDeterminedSpam) { + return nil, false + } + return o.AiDeterminedSpam, true +} + +// HasAiDeterminedSpam returns a boolean if a field has been set. +func (o *APICommentBase) HasAiDeterminedSpam() bool { + if o != nil && !IsNil(o.AiDeterminedSpam) { + return true + } + + return false +} + +// SetAiDeterminedSpam gets a reference to the given bool and assigns it to the AiDeterminedSpam field. +func (o *APICommentBase) SetAiDeterminedSpam(v bool) { + o.AiDeterminedSpam = &v +} + +// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetAnonUserId() string { + if o == nil || IsNil(o.AnonUserId.Get()) { + var ret string + return ret + } + return *o.AnonUserId.Get() +} + +// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetAnonUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AnonUserId.Get(), o.AnonUserId.IsSet() +} + +// HasAnonUserId returns a boolean if a field has been set. +func (o *APICommentBase) HasAnonUserId() bool { + if o != nil && o.AnonUserId.IsSet() { + return true + } + + return false +} + +// SetAnonUserId gets a reference to the given NullableString and assigns it to the AnonUserId field. +func (o *APICommentBase) SetAnonUserId(v string) { + o.AnonUserId.Set(&v) +} +// SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil +func (o *APICommentBase) SetAnonUserIdNil() { + o.AnonUserId.Set(nil) +} + +// UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +func (o *APICommentBase) UnsetAnonUserId() { + o.AnonUserId.Unset() +} + +// GetApproved returns the Approved field value +func (o *APICommentBase) GetApproved() bool { + if o == nil { + var ret bool + return ret + } + + return o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetApprovedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Approved, true +} + +// SetApproved sets field value +func (o *APICommentBase) SetApproved(v bool) { + o.Approved = v +} + +// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetAvatarSrc() string { + if o == nil || IsNil(o.AvatarSrc.Get()) { + var ret string + return ret + } + return *o.AvatarSrc.Get() +} + +// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetAvatarSrcOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AvatarSrc.Get(), o.AvatarSrc.IsSet() +} + +// HasAvatarSrc returns a boolean if a field has been set. +func (o *APICommentBase) HasAvatarSrc() bool { + if o != nil && o.AvatarSrc.IsSet() { + return true + } + + return false +} + +// SetAvatarSrc gets a reference to the given NullableString and assigns it to the AvatarSrc field. +func (o *APICommentBase) SetAvatarSrc(v string) { + o.AvatarSrc.Set(&v) +} +// SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil +func (o *APICommentBase) SetAvatarSrcNil() { + o.AvatarSrc.Set(nil) +} + +// UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +func (o *APICommentBase) UnsetAvatarSrc() { + o.AvatarSrc.Unset() +} + +// GetBadges returns the Badges field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetBadges() []CommentUserBadgeInfo { + if o == nil { + var ret []CommentUserBadgeInfo + return ret + } + return o.Badges +} + +// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { + if o == nil || IsNil(o.Badges) { + return nil, false + } + return o.Badges, true +} + +// HasBadges returns a boolean if a field has been set. +func (o *APICommentBase) HasBadges() bool { + if o != nil && !IsNil(o.Badges) { + return true + } + + return false +} + +// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. +func (o *APICommentBase) SetBadges(v []CommentUserBadgeInfo) { + o.Badges = v +} + +// GetComment returns the Comment field value +func (o *APICommentBase) GetComment() string { + if o == nil { + var ret string + return ret + } + + return o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Comment, true +} + +// SetComment sets field value +func (o *APICommentBase) SetComment(v string) { + o.Comment = v +} + +// GetCommentHTML returns the CommentHTML field value +func (o *APICommentBase) GetCommentHTML() string { + if o == nil { + var ret string + return ret + } + + return o.CommentHTML +} + +// GetCommentHTMLOk returns a tuple with the CommentHTML field value +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetCommentHTMLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommentHTML, true +} + +// SetCommentHTML sets field value +func (o *APICommentBase) SetCommentHTML(v string) { + o.CommentHTML = v +} + +// GetCommenterEmail returns the CommenterEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetCommenterEmail() string { + if o == nil || IsNil(o.CommenterEmail.Get()) { + var ret string + return ret + } + return *o.CommenterEmail.Get() +} + +// GetCommenterEmailOk returns a tuple with the CommenterEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetCommenterEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommenterEmail.Get(), o.CommenterEmail.IsSet() +} + +// HasCommenterEmail returns a boolean if a field has been set. +func (o *APICommentBase) HasCommenterEmail() bool { + if o != nil && o.CommenterEmail.IsSet() { + return true + } + + return false +} + +// SetCommenterEmail gets a reference to the given NullableString and assigns it to the CommenterEmail field. +func (o *APICommentBase) SetCommenterEmail(v string) { + o.CommenterEmail.Set(&v) +} +// SetCommenterEmailNil sets the value for CommenterEmail to be an explicit nil +func (o *APICommentBase) SetCommenterEmailNil() { + o.CommenterEmail.Set(nil) +} + +// UnsetCommenterEmail ensures that no value is present for CommenterEmail, not even an explicit nil +func (o *APICommentBase) UnsetCommenterEmail() { + o.CommenterEmail.Unset() +} + +// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetCommenterLink() string { + if o == nil || IsNil(o.CommenterLink.Get()) { + var ret string + return ret + } + return *o.CommenterLink.Get() +} + +// GetCommenterLinkOk returns a tuple with the CommenterLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetCommenterLinkOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommenterLink.Get(), o.CommenterLink.IsSet() +} + +// HasCommenterLink returns a boolean if a field has been set. +func (o *APICommentBase) HasCommenterLink() bool { + if o != nil && o.CommenterLink.IsSet() { + return true + } + + return false +} + +// SetCommenterLink gets a reference to the given NullableString and assigns it to the CommenterLink field. +func (o *APICommentBase) SetCommenterLink(v string) { + o.CommenterLink.Set(&v) +} +// SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil +func (o *APICommentBase) SetCommenterLinkNil() { + o.CommenterLink.Set(nil) +} + +// UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +func (o *APICommentBase) UnsetCommenterLink() { + o.CommenterLink.Unset() +} + +// GetCommenterName returns the CommenterName field value +func (o *APICommentBase) GetCommenterName() string { + if o == nil { + var ret string + return ret + } + + return o.CommenterName +} + +// GetCommenterNameOk returns a tuple with the CommenterName field value +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetCommenterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommenterName, true +} + +// SetCommenterName sets field value +func (o *APICommentBase) SetCommenterName(v string) { + o.CommenterName = v +} + +// GetDate returns the Date field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *APICommentBase) GetDate() time.Time { + if o == nil || o.Date.Get() == nil { + var ret time.Time + return ret + } + + return *o.Date.Get() +} + +// GetDateOk returns a tuple with the Date field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Date.Get(), o.Date.IsSet() +} + +// SetDate sets field value +func (o *APICommentBase) SetDate(v time.Time) { + o.Date.Set(&v) +} + +// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetDisplayLabel() string { + if o == nil || IsNil(o.DisplayLabel.Get()) { + var ret string + return ret + } + return *o.DisplayLabel.Get() +} + +// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetDisplayLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayLabel.Get(), o.DisplayLabel.IsSet() +} + +// HasDisplayLabel returns a boolean if a field has been set. +func (o *APICommentBase) HasDisplayLabel() bool { + if o != nil && o.DisplayLabel.IsSet() { + return true + } + + return false +} + +// SetDisplayLabel gets a reference to the given NullableString and assigns it to the DisplayLabel field. +func (o *APICommentBase) SetDisplayLabel(v string) { + o.DisplayLabel.Set(&v) +} +// SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil +func (o *APICommentBase) SetDisplayLabelNil() { + o.DisplayLabel.Set(nil) +} + +// UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +func (o *APICommentBase) UnsetDisplayLabel() { + o.DisplayLabel.Unset() +} + +// GetDomain returns the Domain field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetDomain() string { + if o == nil || IsNil(o.Domain.Get()) { + var ret string + return ret + } + return *o.Domain.Get() +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetDomainOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Domain.Get(), o.Domain.IsSet() +} + +// HasDomain returns a boolean if a field has been set. +func (o *APICommentBase) HasDomain() bool { + if o != nil && o.Domain.IsSet() { + return true + } + + return false +} + +// SetDomain gets a reference to the given NullableString and assigns it to the Domain field. +func (o *APICommentBase) SetDomain(v string) { + o.Domain.Set(&v) +} +// SetDomainNil sets the value for Domain to be an explicit nil +func (o *APICommentBase) SetDomainNil() { + o.Domain.Set(nil) +} + +// UnsetDomain ensures that no value is present for Domain, not even an explicit nil +func (o *APICommentBase) UnsetDomain() { + o.Domain.Unset() +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *APICommentBase) GetExternalId() string { + if o == nil || IsNil(o.ExternalId) { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetExternalIdOk() (*string, bool) { + if o == nil || IsNil(o.ExternalId) { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *APICommentBase) HasExternalId() bool { + if o != nil && !IsNil(o.ExternalId) { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *APICommentBase) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetExternalParentId returns the ExternalParentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetExternalParentId() string { + if o == nil || IsNil(o.ExternalParentId.Get()) { + var ret string + return ret + } + return *o.ExternalParentId.Get() +} + +// GetExternalParentIdOk returns a tuple with the ExternalParentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetExternalParentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExternalParentId.Get(), o.ExternalParentId.IsSet() +} + +// HasExternalParentId returns a boolean if a field has been set. +func (o *APICommentBase) HasExternalParentId() bool { + if o != nil && o.ExternalParentId.IsSet() { + return true + } + + return false +} + +// SetExternalParentId gets a reference to the given NullableString and assigns it to the ExternalParentId field. +func (o *APICommentBase) SetExternalParentId(v string) { + o.ExternalParentId.Set(&v) +} +// SetExternalParentIdNil sets the value for ExternalParentId to be an explicit nil +func (o *APICommentBase) SetExternalParentIdNil() { + o.ExternalParentId.Set(nil) +} + +// UnsetExternalParentId ensures that no value is present for ExternalParentId, not even an explicit nil +func (o *APICommentBase) UnsetExternalParentId() { + o.ExternalParentId.Unset() +} + +// GetExpireAt returns the ExpireAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetExpireAt() time.Time { + if o == nil || IsNil(o.ExpireAt.Get()) { + var ret time.Time + return ret + } + return *o.ExpireAt.Get() +} + +// GetExpireAtOk returns a tuple with the ExpireAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetExpireAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpireAt.Get(), o.ExpireAt.IsSet() +} + +// HasExpireAt returns a boolean if a field has been set. +func (o *APICommentBase) HasExpireAt() bool { + if o != nil && o.ExpireAt.IsSet() { + return true + } + + return false +} + +// SetExpireAt gets a reference to the given NullableTime and assigns it to the ExpireAt field. +func (o *APICommentBase) SetExpireAt(v time.Time) { + o.ExpireAt.Set(&v) +} +// SetExpireAtNil sets the value for ExpireAt to be an explicit nil +func (o *APICommentBase) SetExpireAtNil() { + o.ExpireAt.Set(nil) +} + +// UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +func (o *APICommentBase) UnsetExpireAt() { + o.ExpireAt.Unset() +} + +// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. +func (o *APICommentBase) GetFeedbackIds() []string { + if o == nil || IsNil(o.FeedbackIds) { + var ret []string + return ret + } + return o.FeedbackIds +} + +// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetFeedbackIdsOk() ([]string, bool) { + if o == nil || IsNil(o.FeedbackIds) { + return nil, false + } + return o.FeedbackIds, true +} + +// HasFeedbackIds returns a boolean if a field has been set. +func (o *APICommentBase) HasFeedbackIds() bool { + if o != nil && !IsNil(o.FeedbackIds) { + return true + } + + return false +} + +// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. +func (o *APICommentBase) SetFeedbackIds(v []string) { + o.FeedbackIds = v +} + +// GetFlagCount returns the FlagCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetFlagCount() int32 { + if o == nil || IsNil(o.FlagCount.Get()) { + var ret int32 + return ret + } + return *o.FlagCount.Get() +} + +// GetFlagCountOk returns a tuple with the FlagCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetFlagCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.FlagCount.Get(), o.FlagCount.IsSet() +} + +// HasFlagCount returns a boolean if a field has been set. +func (o *APICommentBase) HasFlagCount() bool { + if o != nil && o.FlagCount.IsSet() { + return true + } + + return false +} + +// SetFlagCount gets a reference to the given NullableInt32 and assigns it to the FlagCount field. +func (o *APICommentBase) SetFlagCount(v int32) { + o.FlagCount.Set(&v) +} +// SetFlagCountNil sets the value for FlagCount to be an explicit nil +func (o *APICommentBase) SetFlagCountNil() { + o.FlagCount.Set(nil) +} + +// UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil +func (o *APICommentBase) UnsetFlagCount() { + o.FlagCount.Unset() +} + +// GetFromProductId returns the FromProductId field value if set, zero value otherwise. +func (o *APICommentBase) GetFromProductId() int32 { + if o == nil || IsNil(o.FromProductId) { + var ret int32 + return ret + } + return *o.FromProductId +} + +// GetFromProductIdOk returns a tuple with the FromProductId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetFromProductIdOk() (*int32, bool) { + if o == nil || IsNil(o.FromProductId) { + return nil, false + } + return o.FromProductId, true +} + +// HasFromProductId returns a boolean if a field has been set. +func (o *APICommentBase) HasFromProductId() bool { + if o != nil && !IsNil(o.FromProductId) { + return true + } + + return false +} + +// SetFromProductId gets a reference to the given int32 and assigns it to the FromProductId field. +func (o *APICommentBase) SetFromProductId(v int32) { + o.FromProductId = &v +} + +// GetHasCode returns the HasCode field value if set, zero value otherwise. +func (o *APICommentBase) GetHasCode() bool { + if o == nil || IsNil(o.HasCode) { + var ret bool + return ret + } + return *o.HasCode +} + +// GetHasCodeOk returns a tuple with the HasCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetHasCodeOk() (*bool, bool) { + if o == nil || IsNil(o.HasCode) { + return nil, false + } + return o.HasCode, true +} + +// HasHasCode returns a boolean if a field has been set. +func (o *APICommentBase) HasHasCode() bool { + if o != nil && !IsNil(o.HasCode) { + return true + } + + return false +} + +// SetHasCode gets a reference to the given bool and assigns it to the HasCode field. +func (o *APICommentBase) SetHasCode(v bool) { + o.HasCode = &v +} + +// GetHasImages returns the HasImages field value if set, zero value otherwise. +func (o *APICommentBase) GetHasImages() bool { + if o == nil || IsNil(o.HasImages) { + var ret bool + return ret + } + return *o.HasImages +} + +// GetHasImagesOk returns a tuple with the HasImages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetHasImagesOk() (*bool, bool) { + if o == nil || IsNil(o.HasImages) { + return nil, false + } + return o.HasImages, true +} + +// HasHasImages returns a boolean if a field has been set. +func (o *APICommentBase) HasHasImages() bool { + if o != nil && !IsNil(o.HasImages) { + return true + } + + return false +} + +// SetHasImages gets a reference to the given bool and assigns it to the HasImages field. +func (o *APICommentBase) SetHasImages(v bool) { + o.HasImages = &v +} + +// GetHasLinks returns the HasLinks field value if set, zero value otherwise. +func (o *APICommentBase) GetHasLinks() bool { + if o == nil || IsNil(o.HasLinks) { + var ret bool + return ret + } + return *o.HasLinks +} + +// GetHasLinksOk returns a tuple with the HasLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetHasLinksOk() (*bool, bool) { + if o == nil || IsNil(o.HasLinks) { + return nil, false + } + return o.HasLinks, true +} + +// HasHasLinks returns a boolean if a field has been set. +func (o *APICommentBase) HasHasLinks() bool { + if o != nil && !IsNil(o.HasLinks) { + return true + } + + return false +} + +// SetHasLinks gets a reference to the given bool and assigns it to the HasLinks field. +func (o *APICommentBase) SetHasLinks(v bool) { + o.HasLinks = &v +} + +// GetHashTags returns the HashTags field value if set, zero value otherwise. +func (o *APICommentBase) GetHashTags() []CommentUserHashTagInfo { + if o == nil || IsNil(o.HashTags) { + var ret []CommentUserHashTagInfo + return ret + } + return o.HashTags +} + +// GetHashTagsOk returns a tuple with the HashTags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetHashTagsOk() ([]CommentUserHashTagInfo, bool) { + if o == nil || IsNil(o.HashTags) { + return nil, false + } + return o.HashTags, true +} + +// HasHashTags returns a boolean if a field has been set. +func (o *APICommentBase) HasHashTags() bool { + if o != nil && !IsNil(o.HashTags) { + return true + } + + return false +} + +// SetHashTags gets a reference to the given []CommentUserHashTagInfo and assigns it to the HashTags field. +func (o *APICommentBase) SetHashTags(v []CommentUserHashTagInfo) { + o.HashTags = v +} + +// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. +func (o *APICommentBase) GetIsByAdmin() bool { + if o == nil || IsNil(o.IsByAdmin) { + var ret bool + return ret + } + return *o.IsByAdmin +} + +// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetIsByAdminOk() (*bool, bool) { + if o == nil || IsNil(o.IsByAdmin) { + return nil, false + } + return o.IsByAdmin, true +} + +// HasIsByAdmin returns a boolean if a field has been set. +func (o *APICommentBase) HasIsByAdmin() bool { + if o != nil && !IsNil(o.IsByAdmin) { + return true + } + + return false +} + +// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. +func (o *APICommentBase) SetIsByAdmin(v bool) { + o.IsByAdmin = &v +} + +// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. +func (o *APICommentBase) GetIsByModerator() bool { + if o == nil || IsNil(o.IsByModerator) { + var ret bool + return ret + } + return *o.IsByModerator +} + +// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetIsByModeratorOk() (*bool, bool) { + if o == nil || IsNil(o.IsByModerator) { + return nil, false + } + return o.IsByModerator, true +} + +// HasIsByModerator returns a boolean if a field has been set. +func (o *APICommentBase) HasIsByModerator() bool { + if o != nil && !IsNil(o.IsByModerator) { + return true + } + + return false +} + +// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. +func (o *APICommentBase) SetIsByModerator(v bool) { + o.IsByModerator = &v +} + +// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. +func (o *APICommentBase) GetIsDeleted() bool { + if o == nil || IsNil(o.IsDeleted) { + var ret bool + return ret + } + return *o.IsDeleted +} + +// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetIsDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeleted) { + return nil, false + } + return o.IsDeleted, true +} + +// HasIsDeleted returns a boolean if a field has been set. +func (o *APICommentBase) HasIsDeleted() bool { + if o != nil && !IsNil(o.IsDeleted) { + return true + } + + return false +} + +// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. +func (o *APICommentBase) SetIsDeleted(v bool) { + o.IsDeleted = &v +} + +// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. +func (o *APICommentBase) GetIsDeletedUser() bool { + if o == nil || IsNil(o.IsDeletedUser) { + var ret bool + return ret + } + return *o.IsDeletedUser +} + +// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetIsDeletedUserOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeletedUser) { + return nil, false + } + return o.IsDeletedUser, true +} + +// HasIsDeletedUser returns a boolean if a field has been set. +func (o *APICommentBase) HasIsDeletedUser() bool { + if o != nil && !IsNil(o.IsDeletedUser) { + return true + } + + return false +} + +// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. +func (o *APICommentBase) SetIsDeletedUser(v bool) { + o.IsDeletedUser = &v +} + +// GetIsPinned returns the IsPinned field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetIsPinned() bool { + if o == nil || IsNil(o.IsPinned.Get()) { + var ret bool + return ret + } + return *o.IsPinned.Get() +} + +// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetIsPinnedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsPinned.Get(), o.IsPinned.IsSet() +} + +// HasIsPinned returns a boolean if a field has been set. +func (o *APICommentBase) HasIsPinned() bool { + if o != nil && o.IsPinned.IsSet() { + return true + } + + return false +} + +// SetIsPinned gets a reference to the given NullableBool and assigns it to the IsPinned field. +func (o *APICommentBase) SetIsPinned(v bool) { + o.IsPinned.Set(&v) +} +// SetIsPinnedNil sets the value for IsPinned to be an explicit nil +func (o *APICommentBase) SetIsPinnedNil() { + o.IsPinned.Set(nil) +} + +// UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +func (o *APICommentBase) UnsetIsPinned() { + o.IsPinned.Unset() +} + +// GetIsLocked returns the IsLocked field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetIsLocked() bool { + if o == nil || IsNil(o.IsLocked.Get()) { + var ret bool + return ret + } + return *o.IsLocked.Get() +} + +// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetIsLockedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsLocked.Get(), o.IsLocked.IsSet() +} + +// HasIsLocked returns a boolean if a field has been set. +func (o *APICommentBase) HasIsLocked() bool { + if o != nil && o.IsLocked.IsSet() { + return true + } + + return false +} + +// SetIsLocked gets a reference to the given NullableBool and assigns it to the IsLocked field. +func (o *APICommentBase) SetIsLocked(v bool) { + o.IsLocked.Set(&v) +} +// SetIsLockedNil sets the value for IsLocked to be an explicit nil +func (o *APICommentBase) SetIsLockedNil() { + o.IsLocked.Set(nil) +} + +// UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +func (o *APICommentBase) UnsetIsLocked() { + o.IsLocked.Unset() +} + +// GetIsSpam returns the IsSpam field value if set, zero value otherwise. +func (o *APICommentBase) GetIsSpam() bool { + if o == nil || IsNil(o.IsSpam) { + var ret bool + return ret + } + return *o.IsSpam +} + +// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetIsSpamOk() (*bool, bool) { + if o == nil || IsNil(o.IsSpam) { + return nil, false + } + return o.IsSpam, true +} + +// HasIsSpam returns a boolean if a field has been set. +func (o *APICommentBase) HasIsSpam() bool { + if o != nil && !IsNil(o.IsSpam) { + return true + } + + return false +} + +// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. +func (o *APICommentBase) SetIsSpam(v bool) { + o.IsSpam = &v +} + +// GetLocalDateHours returns the LocalDateHours field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetLocalDateHours() int32 { + if o == nil || IsNil(o.LocalDateHours.Get()) { + var ret int32 + return ret + } + return *o.LocalDateHours.Get() +} + +// GetLocalDateHoursOk returns a tuple with the LocalDateHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetLocalDateHoursOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.LocalDateHours.Get(), o.LocalDateHours.IsSet() +} + +// HasLocalDateHours returns a boolean if a field has been set. +func (o *APICommentBase) HasLocalDateHours() bool { + if o != nil && o.LocalDateHours.IsSet() { + return true + } + + return false +} + +// SetLocalDateHours gets a reference to the given NullableInt32 and assigns it to the LocalDateHours field. +func (o *APICommentBase) SetLocalDateHours(v int32) { + o.LocalDateHours.Set(&v) +} +// SetLocalDateHoursNil sets the value for LocalDateHours to be an explicit nil +func (o *APICommentBase) SetLocalDateHoursNil() { + o.LocalDateHours.Set(nil) +} + +// UnsetLocalDateHours ensures that no value is present for LocalDateHours, not even an explicit nil +func (o *APICommentBase) UnsetLocalDateHours() { + o.LocalDateHours.Unset() +} + +// GetLocalDateString returns the LocalDateString field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetLocalDateString() string { + if o == nil || IsNil(o.LocalDateString.Get()) { + var ret string + return ret + } + return *o.LocalDateString.Get() +} + +// GetLocalDateStringOk returns a tuple with the LocalDateString field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetLocalDateStringOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LocalDateString.Get(), o.LocalDateString.IsSet() +} + +// HasLocalDateString returns a boolean if a field has been set. +func (o *APICommentBase) HasLocalDateString() bool { + if o != nil && o.LocalDateString.IsSet() { + return true + } + + return false +} + +// SetLocalDateString gets a reference to the given NullableString and assigns it to the LocalDateString field. +func (o *APICommentBase) SetLocalDateString(v string) { + o.LocalDateString.Set(&v) +} +// SetLocalDateStringNil sets the value for LocalDateString to be an explicit nil +func (o *APICommentBase) SetLocalDateStringNil() { + o.LocalDateString.Set(nil) +} + +// UnsetLocalDateString ensures that no value is present for LocalDateString, not even an explicit nil +func (o *APICommentBase) UnsetLocalDateString() { + o.LocalDateString.Unset() +} + +// GetLocale returns the Locale field value +// If the value is explicit nil, the zero value for string will be returned +func (o *APICommentBase) GetLocale() string { + if o == nil || o.Locale.Get() == nil { + var ret string + return ret + } + + return *o.Locale.Get() +} + +// GetLocaleOk returns a tuple with the Locale field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetLocaleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Locale.Get(), o.Locale.IsSet() +} + +// SetLocale sets field value +func (o *APICommentBase) SetLocale(v string) { + o.Locale.Set(&v) +} + +// GetMentions returns the Mentions field value if set, zero value otherwise. +func (o *APICommentBase) GetMentions() []CommentUserMentionInfo { + if o == nil || IsNil(o.Mentions) { + var ret []CommentUserMentionInfo + return ret + } + return o.Mentions +} + +// GetMentionsOk returns a tuple with the Mentions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetMentionsOk() ([]CommentUserMentionInfo, bool) { + if o == nil || IsNil(o.Mentions) { + return nil, false + } + return o.Mentions, true +} + +// HasMentions returns a boolean if a field has been set. +func (o *APICommentBase) HasMentions() bool { + if o != nil && !IsNil(o.Mentions) { + return true + } + + return false +} + +// SetMentions gets a reference to the given []CommentUserMentionInfo and assigns it to the Mentions field. +func (o *APICommentBase) SetMentions(v []CommentUserMentionInfo) { + o.Mentions = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetMeta() FCommentMeta { + if o == nil || IsNil(o.Meta.Get()) { + var ret FCommentMeta + return ret + } + return *o.Meta.Get() +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetMetaOk() (*FCommentMeta, bool) { + if o == nil { + return nil, false + } + return o.Meta.Get(), o.Meta.IsSet() +} + +// HasMeta returns a boolean if a field has been set. +func (o *APICommentBase) HasMeta() bool { + if o != nil && o.Meta.IsSet() { + return true + } + + return false +} + +// SetMeta gets a reference to the given NullableFCommentMeta and assigns it to the Meta field. +func (o *APICommentBase) SetMeta(v FCommentMeta) { + o.Meta.Set(&v) +} +// SetMetaNil sets the value for Meta to be an explicit nil +func (o *APICommentBase) SetMetaNil() { + o.Meta.Set(nil) +} + +// UnsetMeta ensures that no value is present for Meta, not even an explicit nil +func (o *APICommentBase) UnsetMeta() { + o.Meta.Unset() +} + +// GetModerationGroupIds returns the ModerationGroupIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetModerationGroupIds() []string { + if o == nil { + var ret []string + return ret + } + return o.ModerationGroupIds +} + +// GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetModerationGroupIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ModerationGroupIds) { + return nil, false + } + return o.ModerationGroupIds, true +} + +// HasModerationGroupIds returns a boolean if a field has been set. +func (o *APICommentBase) HasModerationGroupIds() bool { + if o != nil && !IsNil(o.ModerationGroupIds) { + return true + } + + return false +} + +// SetModerationGroupIds gets a reference to the given []string and assigns it to the ModerationGroupIds field. +func (o *APICommentBase) SetModerationGroupIds(v []string) { + o.ModerationGroupIds = v +} + +// GetNotificationSentForParent returns the NotificationSentForParent field value if set, zero value otherwise. +func (o *APICommentBase) GetNotificationSentForParent() bool { + if o == nil || IsNil(o.NotificationSentForParent) { + var ret bool + return ret + } + return *o.NotificationSentForParent +} + +// GetNotificationSentForParentOk returns a tuple with the NotificationSentForParent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetNotificationSentForParentOk() (*bool, bool) { + if o == nil || IsNil(o.NotificationSentForParent) { + return nil, false + } + return o.NotificationSentForParent, true +} + +// HasNotificationSentForParent returns a boolean if a field has been set. +func (o *APICommentBase) HasNotificationSentForParent() bool { + if o != nil && !IsNil(o.NotificationSentForParent) { + return true + } + + return false +} + +// SetNotificationSentForParent gets a reference to the given bool and assigns it to the NotificationSentForParent field. +func (o *APICommentBase) SetNotificationSentForParent(v bool) { + o.NotificationSentForParent = &v +} + +// GetNotificationSentForParentTenant returns the NotificationSentForParentTenant field value if set, zero value otherwise. +func (o *APICommentBase) GetNotificationSentForParentTenant() bool { + if o == nil || IsNil(o.NotificationSentForParentTenant) { + var ret bool + return ret + } + return *o.NotificationSentForParentTenant +} + +// GetNotificationSentForParentTenantOk returns a tuple with the NotificationSentForParentTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetNotificationSentForParentTenantOk() (*bool, bool) { + if o == nil || IsNil(o.NotificationSentForParentTenant) { + return nil, false + } + return o.NotificationSentForParentTenant, true +} + +// HasNotificationSentForParentTenant returns a boolean if a field has been set. +func (o *APICommentBase) HasNotificationSentForParentTenant() bool { + if o != nil && !IsNil(o.NotificationSentForParentTenant) { + return true + } + + return false +} + +// SetNotificationSentForParentTenant gets a reference to the given bool and assigns it to the NotificationSentForParentTenant field. +func (o *APICommentBase) SetNotificationSentForParentTenant(v bool) { + o.NotificationSentForParentTenant = &v +} + +// GetPageTitle returns the PageTitle field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetPageTitle() string { + if o == nil || IsNil(o.PageTitle.Get()) { + var ret string + return ret + } + return *o.PageTitle.Get() +} + +// GetPageTitleOk returns a tuple with the PageTitle field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetPageTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PageTitle.Get(), o.PageTitle.IsSet() +} + +// HasPageTitle returns a boolean if a field has been set. +func (o *APICommentBase) HasPageTitle() bool { + if o != nil && o.PageTitle.IsSet() { + return true + } + + return false +} + +// SetPageTitle gets a reference to the given NullableString and assigns it to the PageTitle field. +func (o *APICommentBase) SetPageTitle(v string) { + o.PageTitle.Set(&v) +} +// SetPageTitleNil sets the value for PageTitle to be an explicit nil +func (o *APICommentBase) SetPageTitleNil() { + o.PageTitle.Set(nil) +} + +// UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +func (o *APICommentBase) UnsetPageTitle() { + o.PageTitle.Unset() +} + +// GetParentId returns the ParentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetParentId() string { + if o == nil || IsNil(o.ParentId.Get()) { + var ret string + return ret + } + return *o.ParentId.Get() +} + +// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetParentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ParentId.Get(), o.ParentId.IsSet() +} + +// HasParentId returns a boolean if a field has been set. +func (o *APICommentBase) HasParentId() bool { + if o != nil && o.ParentId.IsSet() { + return true + } + + return false +} + +// SetParentId gets a reference to the given NullableString and assigns it to the ParentId field. +func (o *APICommentBase) SetParentId(v string) { + o.ParentId.Set(&v) +} +// SetParentIdNil sets the value for ParentId to be an explicit nil +func (o *APICommentBase) SetParentIdNil() { + o.ParentId.Set(nil) +} + +// UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +func (o *APICommentBase) UnsetParentId() { + o.ParentId.Unset() +} + +// GetRating returns the Rating field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetRating() float64 { + if o == nil || IsNil(o.Rating.Get()) { + var ret float64 + return ret + } + return *o.Rating.Get() +} + +// GetRatingOk returns a tuple with the Rating field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetRatingOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Rating.Get(), o.Rating.IsSet() +} + +// HasRating returns a boolean if a field has been set. +func (o *APICommentBase) HasRating() bool { + if o != nil && o.Rating.IsSet() { + return true + } + + return false +} + +// SetRating gets a reference to the given NullableFloat64 and assigns it to the Rating field. +func (o *APICommentBase) SetRating(v float64) { + o.Rating.Set(&v) +} +// SetRatingNil sets the value for Rating to be an explicit nil +func (o *APICommentBase) SetRatingNil() { + o.Rating.Set(nil) +} + +// UnsetRating ensures that no value is present for Rating, not even an explicit nil +func (o *APICommentBase) UnsetRating() { + o.Rating.Unset() +} + +// GetReviewed returns the Reviewed field value if set, zero value otherwise. +func (o *APICommentBase) GetReviewed() bool { + if o == nil || IsNil(o.Reviewed) { + var ret bool + return ret + } + return *o.Reviewed +} + +// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetReviewedOk() (*bool, bool) { + if o == nil || IsNil(o.Reviewed) { + return nil, false + } + return o.Reviewed, true +} + +// HasReviewed returns a boolean if a field has been set. +func (o *APICommentBase) HasReviewed() bool { + if o != nil && !IsNil(o.Reviewed) { + return true + } + + return false +} + +// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. +func (o *APICommentBase) SetReviewed(v bool) { + o.Reviewed = &v +} + +// GetTenantId returns the TenantId field value +func (o *APICommentBase) GetTenantId() string { + if o == nil { + var ret string + return ret + } + + return o.TenantId +} + +// GetTenantIdOk returns a tuple with the TenantId field value +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetTenantIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TenantId, true +} + +// SetTenantId sets field value +func (o *APICommentBase) SetTenantId(v string) { + o.TenantId = v +} + +// GetUrl returns the Url field value +func (o *APICommentBase) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *APICommentBase) SetUrl(v string) { + o.Url = v +} + +// GetUrlId returns the UrlId field value +func (o *APICommentBase) GetUrlId() string { + if o == nil { + var ret string + return ret + } + + return o.UrlId +} + +// GetUrlIdOk returns a tuple with the UrlId field value +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetUrlIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UrlId, true +} + +// SetUrlId sets field value +func (o *APICommentBase) SetUrlId(v string) { + o.UrlId = v +} + +// GetUrlIdRaw returns the UrlIdRaw field value if set, zero value otherwise. +func (o *APICommentBase) GetUrlIdRaw() string { + if o == nil || IsNil(o.UrlIdRaw) { + var ret string + return ret + } + return *o.UrlIdRaw +} + +// GetUrlIdRawOk returns a tuple with the UrlIdRaw field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetUrlIdRawOk() (*string, bool) { + if o == nil || IsNil(o.UrlIdRaw) { + return nil, false + } + return o.UrlIdRaw, true +} + +// HasUrlIdRaw returns a boolean if a field has been set. +func (o *APICommentBase) HasUrlIdRaw() bool { + if o != nil && !IsNil(o.UrlIdRaw) { + return true + } + + return false +} + +// SetUrlIdRaw gets a reference to the given string and assigns it to the UrlIdRaw field. +func (o *APICommentBase) SetUrlIdRaw(v string) { + o.UrlIdRaw = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *APICommentBase) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *APICommentBase) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *APICommentBase) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *APICommentBase) UnsetUserId() { + o.UserId.Unset() +} + +// GetVerified returns the Verified field value +func (o *APICommentBase) GetVerified() bool { + if o == nil { + var ret bool + return ret + } + + return o.Verified +} + +// GetVerifiedOk returns a tuple with the Verified field value +// and a boolean to check if the value has been set. +func (o *APICommentBase) GetVerifiedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Verified, true +} + +// SetVerified sets field value +func (o *APICommentBase) SetVerified(v bool) { + o.Verified = v +} + +// GetVerifiedDate returns the VerifiedDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetVerifiedDate() time.Time { + if o == nil || IsNil(o.VerifiedDate.Get()) { + var ret time.Time + return ret + } + return *o.VerifiedDate.Get() +} + +// GetVerifiedDateOk returns a tuple with the VerifiedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetVerifiedDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.VerifiedDate.Get(), o.VerifiedDate.IsSet() +} + +// HasVerifiedDate returns a boolean if a field has been set. +func (o *APICommentBase) HasVerifiedDate() bool { + if o != nil && o.VerifiedDate.IsSet() { + return true + } + + return false +} + +// SetVerifiedDate gets a reference to the given NullableTime and assigns it to the VerifiedDate field. +func (o *APICommentBase) SetVerifiedDate(v time.Time) { + o.VerifiedDate.Set(&v) +} +// SetVerifiedDateNil sets the value for VerifiedDate to be an explicit nil +func (o *APICommentBase) SetVerifiedDateNil() { + o.VerifiedDate.Set(nil) +} + +// UnsetVerifiedDate ensures that no value is present for VerifiedDate, not even an explicit nil +func (o *APICommentBase) UnsetVerifiedDate() { + o.VerifiedDate.Unset() +} + +// GetVotes returns the Votes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetVotes() int32 { + if o == nil || IsNil(o.Votes.Get()) { + var ret int32 + return ret + } + return *o.Votes.Get() +} + +// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetVotesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Votes.Get(), o.Votes.IsSet() +} + +// HasVotes returns a boolean if a field has been set. +func (o *APICommentBase) HasVotes() bool { + if o != nil && o.Votes.IsSet() { + return true + } + + return false +} + +// SetVotes gets a reference to the given NullableInt32 and assigns it to the Votes field. +func (o *APICommentBase) SetVotes(v int32) { + o.Votes.Set(&v) +} +// SetVotesNil sets the value for Votes to be an explicit nil +func (o *APICommentBase) SetVotesNil() { + o.Votes.Set(nil) +} + +// UnsetVotes ensures that no value is present for Votes, not even an explicit nil +func (o *APICommentBase) UnsetVotes() { + o.Votes.Unset() +} + +// GetVotesDown returns the VotesDown field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetVotesDown() int32 { + if o == nil || IsNil(o.VotesDown.Get()) { + var ret int32 + return ret + } + return *o.VotesDown.Get() +} + +// GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetVotesDownOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.VotesDown.Get(), o.VotesDown.IsSet() +} + +// HasVotesDown returns a boolean if a field has been set. +func (o *APICommentBase) HasVotesDown() bool { + if o != nil && o.VotesDown.IsSet() { + return true + } + + return false +} + +// SetVotesDown gets a reference to the given NullableInt32 and assigns it to the VotesDown field. +func (o *APICommentBase) SetVotesDown(v int32) { + o.VotesDown.Set(&v) +} +// SetVotesDownNil sets the value for VotesDown to be an explicit nil +func (o *APICommentBase) SetVotesDownNil() { + o.VotesDown.Set(nil) +} + +// UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +func (o *APICommentBase) UnsetVotesDown() { + o.VotesDown.Unset() +} + +// GetVotesUp returns the VotesUp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *APICommentBase) GetVotesUp() int32 { + if o == nil || IsNil(o.VotesUp.Get()) { + var ret int32 + return ret + } + return *o.VotesUp.Get() +} + +// GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *APICommentBase) GetVotesUpOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.VotesUp.Get(), o.VotesUp.IsSet() +} + +// HasVotesUp returns a boolean if a field has been set. +func (o *APICommentBase) HasVotesUp() bool { + if o != nil && o.VotesUp.IsSet() { + return true + } + + return false +} + +// SetVotesUp gets a reference to the given NullableInt32 and assigns it to the VotesUp field. +func (o *APICommentBase) SetVotesUp(v int32) { + o.VotesUp.Set(&v) +} +// SetVotesUpNil sets the value for VotesUp to be an explicit nil +func (o *APICommentBase) SetVotesUpNil() { + o.VotesUp.Set(nil) +} + +// UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil +func (o *APICommentBase) UnsetVotesUp() { + o.VotesUp.Unset() +} + +func (o APICommentBase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o APICommentBase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["_id"] = o.Id + if !IsNil(o.AiDeterminedSpam) { + toSerialize["aiDeterminedSpam"] = o.AiDeterminedSpam + } + if o.AnonUserId.IsSet() { + toSerialize["anonUserId"] = o.AnonUserId.Get() + } + toSerialize["approved"] = o.Approved + if o.AvatarSrc.IsSet() { + toSerialize["avatarSrc"] = o.AvatarSrc.Get() + } + if o.Badges != nil { + toSerialize["badges"] = o.Badges + } + toSerialize["comment"] = o.Comment + toSerialize["commentHTML"] = o.CommentHTML + if o.CommenterEmail.IsSet() { + toSerialize["commenterEmail"] = o.CommenterEmail.Get() + } + if o.CommenterLink.IsSet() { + toSerialize["commenterLink"] = o.CommenterLink.Get() + } + toSerialize["commenterName"] = o.CommenterName + toSerialize["date"] = o.Date.Get() + if o.DisplayLabel.IsSet() { + toSerialize["displayLabel"] = o.DisplayLabel.Get() + } + if o.Domain.IsSet() { + toSerialize["domain"] = o.Domain.Get() + } + if !IsNil(o.ExternalId) { + toSerialize["externalId"] = o.ExternalId + } + if o.ExternalParentId.IsSet() { + toSerialize["externalParentId"] = o.ExternalParentId.Get() + } + if o.ExpireAt.IsSet() { + toSerialize["expireAt"] = o.ExpireAt.Get() + } + if !IsNil(o.FeedbackIds) { + toSerialize["feedbackIds"] = o.FeedbackIds + } + if o.FlagCount.IsSet() { + toSerialize["flagCount"] = o.FlagCount.Get() + } + if !IsNil(o.FromProductId) { + toSerialize["fromProductId"] = o.FromProductId + } + if !IsNil(o.HasCode) { + toSerialize["hasCode"] = o.HasCode + } + if !IsNil(o.HasImages) { + toSerialize["hasImages"] = o.HasImages + } + if !IsNil(o.HasLinks) { + toSerialize["hasLinks"] = o.HasLinks + } + if !IsNil(o.HashTags) { + toSerialize["hashTags"] = o.HashTags + } + if !IsNil(o.IsByAdmin) { + toSerialize["isByAdmin"] = o.IsByAdmin + } + if !IsNil(o.IsByModerator) { + toSerialize["isByModerator"] = o.IsByModerator + } + if !IsNil(o.IsDeleted) { + toSerialize["isDeleted"] = o.IsDeleted + } + if !IsNil(o.IsDeletedUser) { + toSerialize["isDeletedUser"] = o.IsDeletedUser + } + if o.IsPinned.IsSet() { + toSerialize["isPinned"] = o.IsPinned.Get() + } + if o.IsLocked.IsSet() { + toSerialize["isLocked"] = o.IsLocked.Get() + } + if !IsNil(o.IsSpam) { + toSerialize["isSpam"] = o.IsSpam + } + if o.LocalDateHours.IsSet() { + toSerialize["localDateHours"] = o.LocalDateHours.Get() + } + if o.LocalDateString.IsSet() { + toSerialize["localDateString"] = o.LocalDateString.Get() + } + toSerialize["locale"] = o.Locale.Get() + if !IsNil(o.Mentions) { + toSerialize["mentions"] = o.Mentions + } + if o.Meta.IsSet() { + toSerialize["meta"] = o.Meta.Get() + } + if o.ModerationGroupIds != nil { + toSerialize["moderationGroupIds"] = o.ModerationGroupIds + } + if !IsNil(o.NotificationSentForParent) { + toSerialize["notificationSentForParent"] = o.NotificationSentForParent + } + if !IsNil(o.NotificationSentForParentTenant) { + toSerialize["notificationSentForParentTenant"] = o.NotificationSentForParentTenant + } + if o.PageTitle.IsSet() { + toSerialize["pageTitle"] = o.PageTitle.Get() + } + if o.ParentId.IsSet() { + toSerialize["parentId"] = o.ParentId.Get() + } + if o.Rating.IsSet() { + toSerialize["rating"] = o.Rating.Get() + } + if !IsNil(o.Reviewed) { + toSerialize["reviewed"] = o.Reviewed + } + toSerialize["tenantId"] = o.TenantId + toSerialize["url"] = o.Url + toSerialize["urlId"] = o.UrlId + if !IsNil(o.UrlIdRaw) { + toSerialize["urlIdRaw"] = o.UrlIdRaw + } + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + toSerialize["verified"] = o.Verified + if o.VerifiedDate.IsSet() { + toSerialize["verifiedDate"] = o.VerifiedDate.Get() + } + if o.Votes.IsSet() { + toSerialize["votes"] = o.Votes.Get() + } + if o.VotesDown.IsSet() { + toSerialize["votesDown"] = o.VotesDown.Get() + } + if o.VotesUp.IsSet() { + toSerialize["votesUp"] = o.VotesUp.Get() + } + return toSerialize, nil +} + +func (o *APICommentBase) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "_id", + "approved", + "comment", + "commentHTML", + "commenterName", + "date", + "locale", + "tenantId", + "url", + "urlId", + "verified", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAPICommentBase := _APICommentBase{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAPICommentBase) + + if err != nil { + return err + } + + *o = APICommentBase(varAPICommentBase) + + return err +} + +type NullableAPICommentBase struct { + value *APICommentBase + isSet bool +} + +func (v NullableAPICommentBase) Get() *APICommentBase { + return v.value +} + +func (v *NullableAPICommentBase) Set(val *APICommentBase) { + v.value = val + v.isSet = true +} + +func (v NullableAPICommentBase) IsSet() bool { + return v.isSet +} + +func (v *NullableAPICommentBase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAPICommentBase(val *APICommentBase) *NullableAPICommentBase { + return &NullableAPICommentBase{value: val, isSet: true} +} + +func (v NullableAPICommentBase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAPICommentBase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_api_create_user_badge_response.go b/client/model_api_create_user_badge_response.go index 4e63c70..62f585f 100644 --- a/client/model_api_create_user_badge_response.go +++ b/client/model_api_create_user_badge_response.go @@ -23,6 +23,7 @@ var _ MappedNullable = &APICreateUserBadgeResponse{} type APICreateUserBadgeResponse struct { Status APIStatus `json:"status"` UserBadge UserBadge `json:"userBadge"` + Notes []string `json:"notes,omitempty"` } type _APICreateUserBadgeResponse APICreateUserBadgeResponse @@ -94,6 +95,38 @@ func (o *APICreateUserBadgeResponse) SetUserBadge(v UserBadge) { o.UserBadge = v } +// GetNotes returns the Notes field value if set, zero value otherwise. +func (o *APICreateUserBadgeResponse) GetNotes() []string { + if o == nil || IsNil(o.Notes) { + var ret []string + return ret + } + return o.Notes +} + +// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *APICreateUserBadgeResponse) GetNotesOk() ([]string, bool) { + if o == nil || IsNil(o.Notes) { + return nil, false + } + return o.Notes, true +} + +// HasNotes returns a boolean if a field has been set. +func (o *APICreateUserBadgeResponse) HasNotes() bool { + if o != nil && !IsNil(o.Notes) { + return true + } + + return false +} + +// SetNotes gets a reference to the given []string and assigns it to the Notes field. +func (o *APICreateUserBadgeResponse) SetNotes(v []string) { + o.Notes = v +} + func (o APICreateUserBadgeResponse) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -106,6 +139,9 @@ func (o APICreateUserBadgeResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["status"] = o.Status toSerialize["userBadge"] = o.UserBadge + if !IsNil(o.Notes) { + toSerialize["notes"] = o.Notes + } return toSerialize, nil } diff --git a/client/model_api_empty_response.go b/client/model_api_empty_response.go index 5dd1053..c17c2bf 100644 --- a/client/model_api_empty_response.go +++ b/client/model_api_empty_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &APIEmptyResponse{} // APIEmptyResponse struct for APIEmptyResponse type APIEmptyResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` } type _APIEmptyResponse APIEmptyResponse @@ -30,7 +30,7 @@ type _APIEmptyResponse APIEmptyResponse // 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 NewAPIEmptyResponse(status ImportedAPIStatusSUCCESS) *APIEmptyResponse { +func NewAPIEmptyResponse(status APIStatus) *APIEmptyResponse { this := APIEmptyResponse{} this.Status = status return &this @@ -45,9 +45,9 @@ func NewAPIEmptyResponseWithDefaults() *APIEmptyResponse { } // GetStatus returns the Status field value -func (o *APIEmptyResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *APIEmptyResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -56,7 +56,7 @@ func (o *APIEmptyResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *APIEmptyResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *APIEmptyResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -64,7 +64,7 @@ func (o *APIEmptyResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { } // SetStatus sets field value -func (o *APIEmptyResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *APIEmptyResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_api_error.go b/client/model_api_error.go index 0ffaa30..2bf08f1 100644 --- a/client/model_api_error.go +++ b/client/model_api_error.go @@ -21,7 +21,7 @@ var _ MappedNullable = &APIError{} // APIError struct for APIError type APIError struct { - Status ImportedAPIStatusFAILED `json:"status"` + Status APIStatus `json:"status"` Reason string `json:"reason"` Code string `json:"code"` SecondaryCode *string `json:"secondaryCode,omitempty"` @@ -37,7 +37,7 @@ type _APIError APIError // 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 NewAPIError(status ImportedAPIStatusFAILED, reason string, code string) *APIError { +func NewAPIError(status APIStatus, reason string, code string) *APIError { this := APIError{} this.Status = status this.Reason = reason @@ -54,9 +54,9 @@ func NewAPIErrorWithDefaults() *APIError { } // GetStatus returns the Status field value -func (o *APIError) GetStatus() ImportedAPIStatusFAILED { +func (o *APIError) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusFAILED + var ret APIStatus return ret } @@ -65,7 +65,7 @@ func (o *APIError) GetStatus() ImportedAPIStatusFAILED { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *APIError) GetStatusOk() (*ImportedAPIStatusFAILED, bool) { +func (o *APIError) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -73,7 +73,7 @@ func (o *APIError) GetStatusOk() (*ImportedAPIStatusFAILED, bool) { } // SetStatus sets field value -func (o *APIError) SetStatus(v ImportedAPIStatusFAILED) { +func (o *APIError) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_api_get_comment_response.go b/client/model_api_get_comment_response.go index 3ce6a49..7f1847a 100644 --- a/client/model_api_get_comment_response.go +++ b/client/model_api_get_comment_response.go @@ -22,7 +22,7 @@ var _ MappedNullable = &APIGetCommentResponse{} // APIGetCommentResponse struct for APIGetCommentResponse type APIGetCommentResponse struct { Status APIStatus `json:"status"` - Comment PickFCommentAPICommentFieldsKeys `json:"comment"` + Comment APIComment `json:"comment"` } type _APIGetCommentResponse APIGetCommentResponse @@ -31,7 +31,7 @@ type _APIGetCommentResponse APIGetCommentResponse // 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 NewAPIGetCommentResponse(status APIStatus, comment PickFCommentAPICommentFieldsKeys) *APIGetCommentResponse { +func NewAPIGetCommentResponse(status APIStatus, comment APIComment) *APIGetCommentResponse { this := APIGetCommentResponse{} this.Status = status this.Comment = comment @@ -71,9 +71,9 @@ func (o *APIGetCommentResponse) SetStatus(v APIStatus) { } // GetComment returns the Comment field value -func (o *APIGetCommentResponse) GetComment() PickFCommentAPICommentFieldsKeys { +func (o *APIGetCommentResponse) GetComment() APIComment { if o == nil { - var ret PickFCommentAPICommentFieldsKeys + var ret APIComment return ret } @@ -82,7 +82,7 @@ func (o *APIGetCommentResponse) GetComment() PickFCommentAPICommentFieldsKeys { // GetCommentOk returns a tuple with the Comment field value // and a boolean to check if the value has been set. -func (o *APIGetCommentResponse) GetCommentOk() (*PickFCommentAPICommentFieldsKeys, bool) { +func (o *APIGetCommentResponse) GetCommentOk() (*APIComment, bool) { if o == nil { return nil, false } @@ -90,7 +90,7 @@ func (o *APIGetCommentResponse) GetCommentOk() (*PickFCommentAPICommentFieldsKey } // SetComment sets field value -func (o *APIGetCommentResponse) SetComment(v PickFCommentAPICommentFieldsKeys) { +func (o *APIGetCommentResponse) SetComment(v APIComment) { o.Comment = v } diff --git a/client/model_api_get_comments_response.go b/client/model_api_get_comments_response.go index 6cd7889..350071d 100644 --- a/client/model_api_get_comments_response.go +++ b/client/model_api_get_comments_response.go @@ -22,7 +22,7 @@ var _ MappedNullable = &APIGetCommentsResponse{} // APIGetCommentsResponse struct for APIGetCommentsResponse type APIGetCommentsResponse struct { Status APIStatus `json:"status"` - Comments []PickFCommentAPICommentFieldsKeys `json:"comments"` + Comments []APIComment `json:"comments"` } type _APIGetCommentsResponse APIGetCommentsResponse @@ -31,7 +31,7 @@ type _APIGetCommentsResponse APIGetCommentsResponse // 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 NewAPIGetCommentsResponse(status APIStatus, comments []PickFCommentAPICommentFieldsKeys) *APIGetCommentsResponse { +func NewAPIGetCommentsResponse(status APIStatus, comments []APIComment) *APIGetCommentsResponse { this := APIGetCommentsResponse{} this.Status = status this.Comments = comments @@ -71,9 +71,9 @@ func (o *APIGetCommentsResponse) SetStatus(v APIStatus) { } // GetComments returns the Comments field value -func (o *APIGetCommentsResponse) GetComments() []PickFCommentAPICommentFieldsKeys { +func (o *APIGetCommentsResponse) GetComments() []APIComment { if o == nil { - var ret []PickFCommentAPICommentFieldsKeys + var ret []APIComment return ret } @@ -82,7 +82,7 @@ func (o *APIGetCommentsResponse) GetComments() []PickFCommentAPICommentFieldsKey // GetCommentsOk returns a tuple with the Comments field value // and a boolean to check if the value has been set. -func (o *APIGetCommentsResponse) GetCommentsOk() ([]PickFCommentAPICommentFieldsKeys, bool) { +func (o *APIGetCommentsResponse) GetCommentsOk() ([]APIComment, bool) { if o == nil { return nil, false } @@ -90,7 +90,7 @@ func (o *APIGetCommentsResponse) GetCommentsOk() ([]PickFCommentAPICommentFields } // SetComments sets field value -func (o *APIGetCommentsResponse) SetComments(v []PickFCommentAPICommentFieldsKeys) { +func (o *APIGetCommentsResponse) SetComments(v []APIComment) { o.Comments = v } diff --git a/client/model_block_success.go b/client/model_block_success.go index c021cdf..ab81320 100644 --- a/client/model_block_success.go +++ b/client/model_block_success.go @@ -21,7 +21,7 @@ var _ MappedNullable = &BlockSuccess{} // BlockSuccess struct for BlockSuccess type BlockSuccess struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` // Construct a type with a set of properties K of type T CommentStatuses map[string]bool `json:"commentStatuses"` } @@ -32,7 +32,7 @@ type _BlockSuccess BlockSuccess // 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 NewBlockSuccess(status ImportedAPIStatusSUCCESS, commentStatuses map[string]bool) *BlockSuccess { +func NewBlockSuccess(status APIStatus, commentStatuses map[string]bool) *BlockSuccess { this := BlockSuccess{} this.Status = status this.CommentStatuses = commentStatuses @@ -48,9 +48,9 @@ func NewBlockSuccessWithDefaults() *BlockSuccess { } // GetStatus returns the Status field value -func (o *BlockSuccess) GetStatus() ImportedAPIStatusSUCCESS { +func (o *BlockSuccess) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -59,7 +59,7 @@ func (o *BlockSuccess) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *BlockSuccess) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *BlockSuccess) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -67,7 +67,7 @@ func (o *BlockSuccess) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { } // SetStatus sets field value -func (o *BlockSuccess) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *BlockSuccess) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_change_comment_pin_status_response.go b/client/model_change_comment_pin_status_response.go index 14cadf3..896ea2e 100644 --- a/client/model_change_comment_pin_status_response.go +++ b/client/model_change_comment_pin_status_response.go @@ -23,7 +23,7 @@ var _ MappedNullable = &ChangeCommentPinStatusResponse{} type ChangeCommentPinStatusResponse struct { // Construct a type with a set of properties K of type T CommentPositions map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue `json:"commentPositions"` - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` } type _ChangeCommentPinStatusResponse ChangeCommentPinStatusResponse @@ -32,7 +32,7 @@ type _ChangeCommentPinStatusResponse ChangeCommentPinStatusResponse // 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 NewChangeCommentPinStatusResponse(commentPositions map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue, status ImportedAPIStatusSUCCESS) *ChangeCommentPinStatusResponse { +func NewChangeCommentPinStatusResponse(commentPositions map[string]RecordStringBeforeStringOrNullAfterStringOrNullValue, status APIStatus) *ChangeCommentPinStatusResponse { this := ChangeCommentPinStatusResponse{} this.CommentPositions = commentPositions this.Status = status @@ -72,9 +72,9 @@ func (o *ChangeCommentPinStatusResponse) SetCommentPositions(v map[string]Record } // GetStatus returns the Status field value -func (o *ChangeCommentPinStatusResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *ChangeCommentPinStatusResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -83,7 +83,7 @@ func (o *ChangeCommentPinStatusResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *ChangeCommentPinStatusResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *ChangeCommentPinStatusResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -91,7 +91,7 @@ func (o *ChangeCommentPinStatusResponse) GetStatusOk() (*ImportedAPIStatusSUCCES } // SetStatus sets field value -func (o *ChangeCommentPinStatusResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *ChangeCommentPinStatusResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_check_blocked_comments_response.go b/client/model_check_blocked_comments_response.go index b533deb..f870006 100644 --- a/client/model_check_blocked_comments_response.go +++ b/client/model_check_blocked_comments_response.go @@ -23,7 +23,7 @@ var _ MappedNullable = &CheckBlockedCommentsResponse{} type CheckBlockedCommentsResponse struct { // Construct a type with a set of properties K of type T CommentStatuses map[string]bool `json:"commentStatuses"` - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` } type _CheckBlockedCommentsResponse CheckBlockedCommentsResponse @@ -32,7 +32,7 @@ type _CheckBlockedCommentsResponse CheckBlockedCommentsResponse // 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 NewCheckBlockedCommentsResponse(commentStatuses map[string]bool, status ImportedAPIStatusSUCCESS) *CheckBlockedCommentsResponse { +func NewCheckBlockedCommentsResponse(commentStatuses map[string]bool, status APIStatus) *CheckBlockedCommentsResponse { this := CheckBlockedCommentsResponse{} this.CommentStatuses = commentStatuses this.Status = status @@ -72,9 +72,9 @@ func (o *CheckBlockedCommentsResponse) SetCommentStatuses(v map[string]bool) { } // GetStatus returns the Status field value -func (o *CheckBlockedCommentsResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *CheckBlockedCommentsResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -83,7 +83,7 @@ func (o *CheckBlockedCommentsResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *CheckBlockedCommentsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *CheckBlockedCommentsResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -91,7 +91,7 @@ func (o *CheckBlockedCommentsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, } // SetStatus sets field value -func (o *CheckBlockedCommentsResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *CheckBlockedCommentsResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_comment_log_data.go b/client/model_comment_log_data.go new file mode 100644 index 0000000..0aff1a2 --- /dev/null +++ b/client/model_comment_log_data.go @@ -0,0 +1,1730 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" +) + +// checks if the CommentLogData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CommentLogData{} + +// CommentLogData struct for CommentLogData +type CommentLogData struct { + ClearContent *bool `json:"clearContent,omitempty"` + IsDeletedUser *bool `json:"isDeletedUser,omitempty"` + Phrase *string `json:"phrase,omitempty"` + BadWord *string `json:"badWord,omitempty"` + Word *string `json:"word,omitempty"` + Locale *string `json:"locale,omitempty"` + TenantBadgeId *string `json:"tenantBadgeId,omitempty"` + BadgeId *string `json:"badgeId,omitempty"` + WasLoggedIn *bool `json:"wasLoggedIn,omitempty"` + FoundUser *bool `json:"foundUser,omitempty"` + Verified *bool `json:"verified,omitempty"` + Engine *string `json:"engine,omitempty"` + EngineResponse *string `json:"engineResponse,omitempty"` + EngineTokens *float64 `json:"engineTokens,omitempty"` + TrustFactor *float64 `json:"trustFactor,omitempty"` + Rule *SpamRule `json:"rule,omitempty"` + UserId *string `json:"userId,omitempty"` + Subscribers *float64 `json:"subscribers,omitempty"` + NotificationCount *float64 `json:"notificationCount,omitempty"` + VotesBefore NullableFloat64 `json:"votesBefore,omitempty"` + VotesUpBefore NullableFloat64 `json:"votesUpBefore,omitempty"` + VotesDownBefore NullableFloat64 `json:"votesDownBefore,omitempty"` + VotesAfter NullableFloat64 `json:"votesAfter,omitempty"` + VotesUpAfter NullableFloat64 `json:"votesUpAfter,omitempty"` + VotesDownAfter NullableFloat64 `json:"votesDownAfter,omitempty"` + RepeatAction *RepeatCommentHandlingAction `json:"repeatAction,omitempty"` + Reason *RepeatCommentCheckIgnoredReason `json:"reason,omitempty"` + OtherData interface{} `json:"otherData,omitempty"` + SpamBefore *bool `json:"spamBefore,omitempty"` + SpamAfter *bool `json:"spamAfter,omitempty"` + PermanentFlag *string `json:"permanentFlag,omitempty"` + ApprovedBefore *bool `json:"approvedBefore,omitempty"` + ApprovedAfter *bool `json:"approvedAfter,omitempty"` + ReviewedBefore *bool `json:"reviewedBefore,omitempty"` + ReviewedAfter *bool `json:"reviewedAfter,omitempty"` + TextBefore *string `json:"textBefore,omitempty"` + TextAfter *string `json:"textAfter,omitempty"` + ExpireBefore NullableTime `json:"expireBefore,omitempty"` + ExpireAfter NullableTime `json:"expireAfter,omitempty"` + FlagCountBefore NullableFloat64 `json:"flagCountBefore,omitempty"` + TrustFactorBefore *float64 `json:"trustFactorBefore,omitempty"` + TrustFactorAfter *float64 `json:"trustFactorAfter,omitempty"` + ReferencedCommentId *string `json:"referencedCommentId,omitempty"` +} + +// NewCommentLogData instantiates a new CommentLogData 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 NewCommentLogData() *CommentLogData { + this := CommentLogData{} + return &this +} + +// NewCommentLogDataWithDefaults instantiates a new CommentLogData 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 NewCommentLogDataWithDefaults() *CommentLogData { + this := CommentLogData{} + return &this +} + +// GetClearContent returns the ClearContent field value if set, zero value otherwise. +func (o *CommentLogData) GetClearContent() bool { + if o == nil || IsNil(o.ClearContent) { + var ret bool + return ret + } + return *o.ClearContent +} + +// GetClearContentOk returns a tuple with the ClearContent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetClearContentOk() (*bool, bool) { + if o == nil || IsNil(o.ClearContent) { + return nil, false + } + return o.ClearContent, true +} + +// HasClearContent returns a boolean if a field has been set. +func (o *CommentLogData) HasClearContent() bool { + if o != nil && !IsNil(o.ClearContent) { + return true + } + + return false +} + +// SetClearContent gets a reference to the given bool and assigns it to the ClearContent field. +func (o *CommentLogData) SetClearContent(v bool) { + o.ClearContent = &v +} + +// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. +func (o *CommentLogData) GetIsDeletedUser() bool { + if o == nil || IsNil(o.IsDeletedUser) { + var ret bool + return ret + } + return *o.IsDeletedUser +} + +// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetIsDeletedUserOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeletedUser) { + return nil, false + } + return o.IsDeletedUser, true +} + +// HasIsDeletedUser returns a boolean if a field has been set. +func (o *CommentLogData) HasIsDeletedUser() bool { + if o != nil && !IsNil(o.IsDeletedUser) { + return true + } + + return false +} + +// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. +func (o *CommentLogData) SetIsDeletedUser(v bool) { + o.IsDeletedUser = &v +} + +// GetPhrase returns the Phrase field value if set, zero value otherwise. +func (o *CommentLogData) GetPhrase() string { + if o == nil || IsNil(o.Phrase) { + var ret string + return ret + } + return *o.Phrase +} + +// GetPhraseOk returns a tuple with the Phrase field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetPhraseOk() (*string, bool) { + if o == nil || IsNil(o.Phrase) { + return nil, false + } + return o.Phrase, true +} + +// HasPhrase returns a boolean if a field has been set. +func (o *CommentLogData) HasPhrase() bool { + if o != nil && !IsNil(o.Phrase) { + return true + } + + return false +} + +// SetPhrase gets a reference to the given string and assigns it to the Phrase field. +func (o *CommentLogData) SetPhrase(v string) { + o.Phrase = &v +} + +// GetBadWord returns the BadWord field value if set, zero value otherwise. +func (o *CommentLogData) GetBadWord() string { + if o == nil || IsNil(o.BadWord) { + var ret string + return ret + } + return *o.BadWord +} + +// GetBadWordOk returns a tuple with the BadWord field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetBadWordOk() (*string, bool) { + if o == nil || IsNil(o.BadWord) { + return nil, false + } + return o.BadWord, true +} + +// HasBadWord returns a boolean if a field has been set. +func (o *CommentLogData) HasBadWord() bool { + if o != nil && !IsNil(o.BadWord) { + return true + } + + return false +} + +// SetBadWord gets a reference to the given string and assigns it to the BadWord field. +func (o *CommentLogData) SetBadWord(v string) { + o.BadWord = &v +} + +// GetWord returns the Word field value if set, zero value otherwise. +func (o *CommentLogData) GetWord() string { + if o == nil || IsNil(o.Word) { + var ret string + return ret + } + return *o.Word +} + +// GetWordOk returns a tuple with the Word field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetWordOk() (*string, bool) { + if o == nil || IsNil(o.Word) { + return nil, false + } + return o.Word, true +} + +// HasWord returns a boolean if a field has been set. +func (o *CommentLogData) HasWord() bool { + if o != nil && !IsNil(o.Word) { + return true + } + + return false +} + +// SetWord gets a reference to the given string and assigns it to the Word field. +func (o *CommentLogData) SetWord(v string) { + o.Word = &v +} + +// GetLocale returns the Locale field value if set, zero value otherwise. +func (o *CommentLogData) GetLocale() string { + if o == nil || IsNil(o.Locale) { + var ret string + return ret + } + return *o.Locale +} + +// GetLocaleOk returns a tuple with the Locale field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetLocaleOk() (*string, bool) { + if o == nil || IsNil(o.Locale) { + return nil, false + } + return o.Locale, true +} + +// HasLocale returns a boolean if a field has been set. +func (o *CommentLogData) HasLocale() bool { + if o != nil && !IsNil(o.Locale) { + return true + } + + return false +} + +// SetLocale gets a reference to the given string and assigns it to the Locale field. +func (o *CommentLogData) SetLocale(v string) { + o.Locale = &v +} + +// GetTenantBadgeId returns the TenantBadgeId field value if set, zero value otherwise. +func (o *CommentLogData) GetTenantBadgeId() string { + if o == nil || IsNil(o.TenantBadgeId) { + var ret string + return ret + } + return *o.TenantBadgeId +} + +// GetTenantBadgeIdOk returns a tuple with the TenantBadgeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetTenantBadgeIdOk() (*string, bool) { + if o == nil || IsNil(o.TenantBadgeId) { + return nil, false + } + return o.TenantBadgeId, true +} + +// HasTenantBadgeId returns a boolean if a field has been set. +func (o *CommentLogData) HasTenantBadgeId() bool { + if o != nil && !IsNil(o.TenantBadgeId) { + return true + } + + return false +} + +// SetTenantBadgeId gets a reference to the given string and assigns it to the TenantBadgeId field. +func (o *CommentLogData) SetTenantBadgeId(v string) { + o.TenantBadgeId = &v +} + +// GetBadgeId returns the BadgeId field value if set, zero value otherwise. +func (o *CommentLogData) GetBadgeId() string { + if o == nil || IsNil(o.BadgeId) { + var ret string + return ret + } + return *o.BadgeId +} + +// GetBadgeIdOk returns a tuple with the BadgeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetBadgeIdOk() (*string, bool) { + if o == nil || IsNil(o.BadgeId) { + return nil, false + } + return o.BadgeId, true +} + +// HasBadgeId returns a boolean if a field has been set. +func (o *CommentLogData) HasBadgeId() bool { + if o != nil && !IsNil(o.BadgeId) { + return true + } + + return false +} + +// SetBadgeId gets a reference to the given string and assigns it to the BadgeId field. +func (o *CommentLogData) SetBadgeId(v string) { + o.BadgeId = &v +} + +// GetWasLoggedIn returns the WasLoggedIn field value if set, zero value otherwise. +func (o *CommentLogData) GetWasLoggedIn() bool { + if o == nil || IsNil(o.WasLoggedIn) { + var ret bool + return ret + } + return *o.WasLoggedIn +} + +// GetWasLoggedInOk returns a tuple with the WasLoggedIn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetWasLoggedInOk() (*bool, bool) { + if o == nil || IsNil(o.WasLoggedIn) { + return nil, false + } + return o.WasLoggedIn, true +} + +// HasWasLoggedIn returns a boolean if a field has been set. +func (o *CommentLogData) HasWasLoggedIn() bool { + if o != nil && !IsNil(o.WasLoggedIn) { + return true + } + + return false +} + +// SetWasLoggedIn gets a reference to the given bool and assigns it to the WasLoggedIn field. +func (o *CommentLogData) SetWasLoggedIn(v bool) { + o.WasLoggedIn = &v +} + +// GetFoundUser returns the FoundUser field value if set, zero value otherwise. +func (o *CommentLogData) GetFoundUser() bool { + if o == nil || IsNil(o.FoundUser) { + var ret bool + return ret + } + return *o.FoundUser +} + +// GetFoundUserOk returns a tuple with the FoundUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetFoundUserOk() (*bool, bool) { + if o == nil || IsNil(o.FoundUser) { + return nil, false + } + return o.FoundUser, true +} + +// HasFoundUser returns a boolean if a field has been set. +func (o *CommentLogData) HasFoundUser() bool { + if o != nil && !IsNil(o.FoundUser) { + return true + } + + return false +} + +// SetFoundUser gets a reference to the given bool and assigns it to the FoundUser field. +func (o *CommentLogData) SetFoundUser(v bool) { + o.FoundUser = &v +} + +// GetVerified returns the Verified field value if set, zero value otherwise. +func (o *CommentLogData) GetVerified() bool { + if o == nil || IsNil(o.Verified) { + var ret bool + return ret + } + return *o.Verified +} + +// GetVerifiedOk returns a tuple with the Verified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetVerifiedOk() (*bool, bool) { + if o == nil || IsNil(o.Verified) { + return nil, false + } + return o.Verified, true +} + +// HasVerified returns a boolean if a field has been set. +func (o *CommentLogData) HasVerified() bool { + if o != nil && !IsNil(o.Verified) { + return true + } + + return false +} + +// SetVerified gets a reference to the given bool and assigns it to the Verified field. +func (o *CommentLogData) SetVerified(v bool) { + o.Verified = &v +} + +// GetEngine returns the Engine field value if set, zero value otherwise. +func (o *CommentLogData) GetEngine() string { + if o == nil || IsNil(o.Engine) { + var ret string + return ret + } + return *o.Engine +} + +// GetEngineOk returns a tuple with the Engine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetEngineOk() (*string, bool) { + if o == nil || IsNil(o.Engine) { + return nil, false + } + return o.Engine, true +} + +// HasEngine returns a boolean if a field has been set. +func (o *CommentLogData) HasEngine() bool { + if o != nil && !IsNil(o.Engine) { + return true + } + + return false +} + +// SetEngine gets a reference to the given string and assigns it to the Engine field. +func (o *CommentLogData) SetEngine(v string) { + o.Engine = &v +} + +// GetEngineResponse returns the EngineResponse field value if set, zero value otherwise. +func (o *CommentLogData) GetEngineResponse() string { + if o == nil || IsNil(o.EngineResponse) { + var ret string + return ret + } + return *o.EngineResponse +} + +// GetEngineResponseOk returns a tuple with the EngineResponse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetEngineResponseOk() (*string, bool) { + if o == nil || IsNil(o.EngineResponse) { + return nil, false + } + return o.EngineResponse, true +} + +// HasEngineResponse returns a boolean if a field has been set. +func (o *CommentLogData) HasEngineResponse() bool { + if o != nil && !IsNil(o.EngineResponse) { + return true + } + + return false +} + +// SetEngineResponse gets a reference to the given string and assigns it to the EngineResponse field. +func (o *CommentLogData) SetEngineResponse(v string) { + o.EngineResponse = &v +} + +// GetEngineTokens returns the EngineTokens field value if set, zero value otherwise. +func (o *CommentLogData) GetEngineTokens() float64 { + if o == nil || IsNil(o.EngineTokens) { + var ret float64 + return ret + } + return *o.EngineTokens +} + +// GetEngineTokensOk returns a tuple with the EngineTokens field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetEngineTokensOk() (*float64, bool) { + if o == nil || IsNil(o.EngineTokens) { + return nil, false + } + return o.EngineTokens, true +} + +// HasEngineTokens returns a boolean if a field has been set. +func (o *CommentLogData) HasEngineTokens() bool { + if o != nil && !IsNil(o.EngineTokens) { + return true + } + + return false +} + +// SetEngineTokens gets a reference to the given float64 and assigns it to the EngineTokens field. +func (o *CommentLogData) SetEngineTokens(v float64) { + o.EngineTokens = &v +} + +// GetTrustFactor returns the TrustFactor field value if set, zero value otherwise. +func (o *CommentLogData) GetTrustFactor() float64 { + if o == nil || IsNil(o.TrustFactor) { + var ret float64 + return ret + } + return *o.TrustFactor +} + +// GetTrustFactorOk returns a tuple with the TrustFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetTrustFactorOk() (*float64, bool) { + if o == nil || IsNil(o.TrustFactor) { + return nil, false + } + return o.TrustFactor, true +} + +// HasTrustFactor returns a boolean if a field has been set. +func (o *CommentLogData) HasTrustFactor() bool { + if o != nil && !IsNil(o.TrustFactor) { + return true + } + + return false +} + +// SetTrustFactor gets a reference to the given float64 and assigns it to the TrustFactor field. +func (o *CommentLogData) SetTrustFactor(v float64) { + o.TrustFactor = &v +} + +// GetRule returns the Rule field value if set, zero value otherwise. +func (o *CommentLogData) GetRule() SpamRule { + if o == nil || IsNil(o.Rule) { + var ret SpamRule + return ret + } + return *o.Rule +} + +// GetRuleOk returns a tuple with the Rule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetRuleOk() (*SpamRule, bool) { + if o == nil || IsNil(o.Rule) { + return nil, false + } + return o.Rule, true +} + +// HasRule returns a boolean if a field has been set. +func (o *CommentLogData) HasRule() bool { + if o != nil && !IsNil(o.Rule) { + return true + } + + return false +} + +// SetRule gets a reference to the given SpamRule and assigns it to the Rule field. +func (o *CommentLogData) SetRule(v SpamRule) { + o.Rule = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise. +func (o *CommentLogData) GetUserId() string { + if o == nil || IsNil(o.UserId) { + var ret string + return ret + } + return *o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UserId) { + return nil, false + } + return o.UserId, true +} + +// HasUserId returns a boolean if a field has been set. +func (o *CommentLogData) HasUserId() bool { + if o != nil && !IsNil(o.UserId) { + return true + } + + return false +} + +// SetUserId gets a reference to the given string and assigns it to the UserId field. +func (o *CommentLogData) SetUserId(v string) { + o.UserId = &v +} + +// GetSubscribers returns the Subscribers field value if set, zero value otherwise. +func (o *CommentLogData) GetSubscribers() float64 { + if o == nil || IsNil(o.Subscribers) { + var ret float64 + return ret + } + return *o.Subscribers +} + +// GetSubscribersOk returns a tuple with the Subscribers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetSubscribersOk() (*float64, bool) { + if o == nil || IsNil(o.Subscribers) { + return nil, false + } + return o.Subscribers, true +} + +// HasSubscribers returns a boolean if a field has been set. +func (o *CommentLogData) HasSubscribers() bool { + if o != nil && !IsNil(o.Subscribers) { + return true + } + + return false +} + +// SetSubscribers gets a reference to the given float64 and assigns it to the Subscribers field. +func (o *CommentLogData) SetSubscribers(v float64) { + o.Subscribers = &v +} + +// GetNotificationCount returns the NotificationCount field value if set, zero value otherwise. +func (o *CommentLogData) GetNotificationCount() float64 { + if o == nil || IsNil(o.NotificationCount) { + var ret float64 + return ret + } + return *o.NotificationCount +} + +// GetNotificationCountOk returns a tuple with the NotificationCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetNotificationCountOk() (*float64, bool) { + if o == nil || IsNil(o.NotificationCount) { + return nil, false + } + return o.NotificationCount, true +} + +// HasNotificationCount returns a boolean if a field has been set. +func (o *CommentLogData) HasNotificationCount() bool { + if o != nil && !IsNil(o.NotificationCount) { + return true + } + + return false +} + +// SetNotificationCount gets a reference to the given float64 and assigns it to the NotificationCount field. +func (o *CommentLogData) SetNotificationCount(v float64) { + o.NotificationCount = &v +} + +// GetVotesBefore returns the VotesBefore field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CommentLogData) GetVotesBefore() float64 { + if o == nil || IsNil(o.VotesBefore.Get()) { + var ret float64 + return ret + } + return *o.VotesBefore.Get() +} + +// GetVotesBeforeOk returns a tuple with the VotesBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CommentLogData) GetVotesBeforeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.VotesBefore.Get(), o.VotesBefore.IsSet() +} + +// HasVotesBefore returns a boolean if a field has been set. +func (o *CommentLogData) HasVotesBefore() bool { + if o != nil && o.VotesBefore.IsSet() { + return true + } + + return false +} + +// SetVotesBefore gets a reference to the given NullableFloat64 and assigns it to the VotesBefore field. +func (o *CommentLogData) SetVotesBefore(v float64) { + o.VotesBefore.Set(&v) +} +// SetVotesBeforeNil sets the value for VotesBefore to be an explicit nil +func (o *CommentLogData) SetVotesBeforeNil() { + o.VotesBefore.Set(nil) +} + +// UnsetVotesBefore ensures that no value is present for VotesBefore, not even an explicit nil +func (o *CommentLogData) UnsetVotesBefore() { + o.VotesBefore.Unset() +} + +// GetVotesUpBefore returns the VotesUpBefore field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CommentLogData) GetVotesUpBefore() float64 { + if o == nil || IsNil(o.VotesUpBefore.Get()) { + var ret float64 + return ret + } + return *o.VotesUpBefore.Get() +} + +// GetVotesUpBeforeOk returns a tuple with the VotesUpBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CommentLogData) GetVotesUpBeforeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.VotesUpBefore.Get(), o.VotesUpBefore.IsSet() +} + +// HasVotesUpBefore returns a boolean if a field has been set. +func (o *CommentLogData) HasVotesUpBefore() bool { + if o != nil && o.VotesUpBefore.IsSet() { + return true + } + + return false +} + +// SetVotesUpBefore gets a reference to the given NullableFloat64 and assigns it to the VotesUpBefore field. +func (o *CommentLogData) SetVotesUpBefore(v float64) { + o.VotesUpBefore.Set(&v) +} +// SetVotesUpBeforeNil sets the value for VotesUpBefore to be an explicit nil +func (o *CommentLogData) SetVotesUpBeforeNil() { + o.VotesUpBefore.Set(nil) +} + +// UnsetVotesUpBefore ensures that no value is present for VotesUpBefore, not even an explicit nil +func (o *CommentLogData) UnsetVotesUpBefore() { + o.VotesUpBefore.Unset() +} + +// GetVotesDownBefore returns the VotesDownBefore field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CommentLogData) GetVotesDownBefore() float64 { + if o == nil || IsNil(o.VotesDownBefore.Get()) { + var ret float64 + return ret + } + return *o.VotesDownBefore.Get() +} + +// GetVotesDownBeforeOk returns a tuple with the VotesDownBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CommentLogData) GetVotesDownBeforeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.VotesDownBefore.Get(), o.VotesDownBefore.IsSet() +} + +// HasVotesDownBefore returns a boolean if a field has been set. +func (o *CommentLogData) HasVotesDownBefore() bool { + if o != nil && o.VotesDownBefore.IsSet() { + return true + } + + return false +} + +// SetVotesDownBefore gets a reference to the given NullableFloat64 and assigns it to the VotesDownBefore field. +func (o *CommentLogData) SetVotesDownBefore(v float64) { + o.VotesDownBefore.Set(&v) +} +// SetVotesDownBeforeNil sets the value for VotesDownBefore to be an explicit nil +func (o *CommentLogData) SetVotesDownBeforeNil() { + o.VotesDownBefore.Set(nil) +} + +// UnsetVotesDownBefore ensures that no value is present for VotesDownBefore, not even an explicit nil +func (o *CommentLogData) UnsetVotesDownBefore() { + o.VotesDownBefore.Unset() +} + +// GetVotesAfter returns the VotesAfter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CommentLogData) GetVotesAfter() float64 { + if o == nil || IsNil(o.VotesAfter.Get()) { + var ret float64 + return ret + } + return *o.VotesAfter.Get() +} + +// GetVotesAfterOk returns a tuple with the VotesAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CommentLogData) GetVotesAfterOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.VotesAfter.Get(), o.VotesAfter.IsSet() +} + +// HasVotesAfter returns a boolean if a field has been set. +func (o *CommentLogData) HasVotesAfter() bool { + if o != nil && o.VotesAfter.IsSet() { + return true + } + + return false +} + +// SetVotesAfter gets a reference to the given NullableFloat64 and assigns it to the VotesAfter field. +func (o *CommentLogData) SetVotesAfter(v float64) { + o.VotesAfter.Set(&v) +} +// SetVotesAfterNil sets the value for VotesAfter to be an explicit nil +func (o *CommentLogData) SetVotesAfterNil() { + o.VotesAfter.Set(nil) +} + +// UnsetVotesAfter ensures that no value is present for VotesAfter, not even an explicit nil +func (o *CommentLogData) UnsetVotesAfter() { + o.VotesAfter.Unset() +} + +// GetVotesUpAfter returns the VotesUpAfter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CommentLogData) GetVotesUpAfter() float64 { + if o == nil || IsNil(o.VotesUpAfter.Get()) { + var ret float64 + return ret + } + return *o.VotesUpAfter.Get() +} + +// GetVotesUpAfterOk returns a tuple with the VotesUpAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CommentLogData) GetVotesUpAfterOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.VotesUpAfter.Get(), o.VotesUpAfter.IsSet() +} + +// HasVotesUpAfter returns a boolean if a field has been set. +func (o *CommentLogData) HasVotesUpAfter() bool { + if o != nil && o.VotesUpAfter.IsSet() { + return true + } + + return false +} + +// SetVotesUpAfter gets a reference to the given NullableFloat64 and assigns it to the VotesUpAfter field. +func (o *CommentLogData) SetVotesUpAfter(v float64) { + o.VotesUpAfter.Set(&v) +} +// SetVotesUpAfterNil sets the value for VotesUpAfter to be an explicit nil +func (o *CommentLogData) SetVotesUpAfterNil() { + o.VotesUpAfter.Set(nil) +} + +// UnsetVotesUpAfter ensures that no value is present for VotesUpAfter, not even an explicit nil +func (o *CommentLogData) UnsetVotesUpAfter() { + o.VotesUpAfter.Unset() +} + +// GetVotesDownAfter returns the VotesDownAfter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CommentLogData) GetVotesDownAfter() float64 { + if o == nil || IsNil(o.VotesDownAfter.Get()) { + var ret float64 + return ret + } + return *o.VotesDownAfter.Get() +} + +// GetVotesDownAfterOk returns a tuple with the VotesDownAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CommentLogData) GetVotesDownAfterOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.VotesDownAfter.Get(), o.VotesDownAfter.IsSet() +} + +// HasVotesDownAfter returns a boolean if a field has been set. +func (o *CommentLogData) HasVotesDownAfter() bool { + if o != nil && o.VotesDownAfter.IsSet() { + return true + } + + return false +} + +// SetVotesDownAfter gets a reference to the given NullableFloat64 and assigns it to the VotesDownAfter field. +func (o *CommentLogData) SetVotesDownAfter(v float64) { + o.VotesDownAfter.Set(&v) +} +// SetVotesDownAfterNil sets the value for VotesDownAfter to be an explicit nil +func (o *CommentLogData) SetVotesDownAfterNil() { + o.VotesDownAfter.Set(nil) +} + +// UnsetVotesDownAfter ensures that no value is present for VotesDownAfter, not even an explicit nil +func (o *CommentLogData) UnsetVotesDownAfter() { + o.VotesDownAfter.Unset() +} + +// GetRepeatAction returns the RepeatAction field value if set, zero value otherwise. +func (o *CommentLogData) GetRepeatAction() RepeatCommentHandlingAction { + if o == nil || IsNil(o.RepeatAction) { + var ret RepeatCommentHandlingAction + return ret + } + return *o.RepeatAction +} + +// GetRepeatActionOk returns a tuple with the RepeatAction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetRepeatActionOk() (*RepeatCommentHandlingAction, bool) { + if o == nil || IsNil(o.RepeatAction) { + return nil, false + } + return o.RepeatAction, true +} + +// HasRepeatAction returns a boolean if a field has been set. +func (o *CommentLogData) HasRepeatAction() bool { + if o != nil && !IsNil(o.RepeatAction) { + return true + } + + return false +} + +// SetRepeatAction gets a reference to the given RepeatCommentHandlingAction and assigns it to the RepeatAction field. +func (o *CommentLogData) SetRepeatAction(v RepeatCommentHandlingAction) { + o.RepeatAction = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *CommentLogData) GetReason() RepeatCommentCheckIgnoredReason { + if o == nil || IsNil(o.Reason) { + var ret RepeatCommentCheckIgnoredReason + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetReasonOk() (*RepeatCommentCheckIgnoredReason, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *CommentLogData) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given RepeatCommentCheckIgnoredReason and assigns it to the Reason field. +func (o *CommentLogData) SetReason(v RepeatCommentCheckIgnoredReason) { + o.Reason = &v +} + +// GetOtherData returns the OtherData field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CommentLogData) GetOtherData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.OtherData +} + +// GetOtherDataOk returns a tuple with the OtherData field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CommentLogData) GetOtherDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.OtherData) { + return nil, false + } + return &o.OtherData, true +} + +// HasOtherData returns a boolean if a field has been set. +func (o *CommentLogData) HasOtherData() bool { + if o != nil && !IsNil(o.OtherData) { + return true + } + + return false +} + +// SetOtherData gets a reference to the given interface{} and assigns it to the OtherData field. +func (o *CommentLogData) SetOtherData(v interface{}) { + o.OtherData = v +} + +// GetSpamBefore returns the SpamBefore field value if set, zero value otherwise. +func (o *CommentLogData) GetSpamBefore() bool { + if o == nil || IsNil(o.SpamBefore) { + var ret bool + return ret + } + return *o.SpamBefore +} + +// GetSpamBeforeOk returns a tuple with the SpamBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetSpamBeforeOk() (*bool, bool) { + if o == nil || IsNil(o.SpamBefore) { + return nil, false + } + return o.SpamBefore, true +} + +// HasSpamBefore returns a boolean if a field has been set. +func (o *CommentLogData) HasSpamBefore() bool { + if o != nil && !IsNil(o.SpamBefore) { + return true + } + + return false +} + +// SetSpamBefore gets a reference to the given bool and assigns it to the SpamBefore field. +func (o *CommentLogData) SetSpamBefore(v bool) { + o.SpamBefore = &v +} + +// GetSpamAfter returns the SpamAfter field value if set, zero value otherwise. +func (o *CommentLogData) GetSpamAfter() bool { + if o == nil || IsNil(o.SpamAfter) { + var ret bool + return ret + } + return *o.SpamAfter +} + +// GetSpamAfterOk returns a tuple with the SpamAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetSpamAfterOk() (*bool, bool) { + if o == nil || IsNil(o.SpamAfter) { + return nil, false + } + return o.SpamAfter, true +} + +// HasSpamAfter returns a boolean if a field has been set. +func (o *CommentLogData) HasSpamAfter() bool { + if o != nil && !IsNil(o.SpamAfter) { + return true + } + + return false +} + +// SetSpamAfter gets a reference to the given bool and assigns it to the SpamAfter field. +func (o *CommentLogData) SetSpamAfter(v bool) { + o.SpamAfter = &v +} + +// GetPermanentFlag returns the PermanentFlag field value if set, zero value otherwise. +func (o *CommentLogData) GetPermanentFlag() string { + if o == nil || IsNil(o.PermanentFlag) { + var ret string + return ret + } + return *o.PermanentFlag +} + +// GetPermanentFlagOk returns a tuple with the PermanentFlag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetPermanentFlagOk() (*string, bool) { + if o == nil || IsNil(o.PermanentFlag) { + return nil, false + } + return o.PermanentFlag, true +} + +// HasPermanentFlag returns a boolean if a field has been set. +func (o *CommentLogData) HasPermanentFlag() bool { + if o != nil && !IsNil(o.PermanentFlag) { + return true + } + + return false +} + +// SetPermanentFlag gets a reference to the given string and assigns it to the PermanentFlag field. +func (o *CommentLogData) SetPermanentFlag(v string) { + o.PermanentFlag = &v +} + +// GetApprovedBefore returns the ApprovedBefore field value if set, zero value otherwise. +func (o *CommentLogData) GetApprovedBefore() bool { + if o == nil || IsNil(o.ApprovedBefore) { + var ret bool + return ret + } + return *o.ApprovedBefore +} + +// GetApprovedBeforeOk returns a tuple with the ApprovedBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetApprovedBeforeOk() (*bool, bool) { + if o == nil || IsNil(o.ApprovedBefore) { + return nil, false + } + return o.ApprovedBefore, true +} + +// HasApprovedBefore returns a boolean if a field has been set. +func (o *CommentLogData) HasApprovedBefore() bool { + if o != nil && !IsNil(o.ApprovedBefore) { + return true + } + + return false +} + +// SetApprovedBefore gets a reference to the given bool and assigns it to the ApprovedBefore field. +func (o *CommentLogData) SetApprovedBefore(v bool) { + o.ApprovedBefore = &v +} + +// GetApprovedAfter returns the ApprovedAfter field value if set, zero value otherwise. +func (o *CommentLogData) GetApprovedAfter() bool { + if o == nil || IsNil(o.ApprovedAfter) { + var ret bool + return ret + } + return *o.ApprovedAfter +} + +// GetApprovedAfterOk returns a tuple with the ApprovedAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetApprovedAfterOk() (*bool, bool) { + if o == nil || IsNil(o.ApprovedAfter) { + return nil, false + } + return o.ApprovedAfter, true +} + +// HasApprovedAfter returns a boolean if a field has been set. +func (o *CommentLogData) HasApprovedAfter() bool { + if o != nil && !IsNil(o.ApprovedAfter) { + return true + } + + return false +} + +// SetApprovedAfter gets a reference to the given bool and assigns it to the ApprovedAfter field. +func (o *CommentLogData) SetApprovedAfter(v bool) { + o.ApprovedAfter = &v +} + +// GetReviewedBefore returns the ReviewedBefore field value if set, zero value otherwise. +func (o *CommentLogData) GetReviewedBefore() bool { + if o == nil || IsNil(o.ReviewedBefore) { + var ret bool + return ret + } + return *o.ReviewedBefore +} + +// GetReviewedBeforeOk returns a tuple with the ReviewedBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetReviewedBeforeOk() (*bool, bool) { + if o == nil || IsNil(o.ReviewedBefore) { + return nil, false + } + return o.ReviewedBefore, true +} + +// HasReviewedBefore returns a boolean if a field has been set. +func (o *CommentLogData) HasReviewedBefore() bool { + if o != nil && !IsNil(o.ReviewedBefore) { + return true + } + + return false +} + +// SetReviewedBefore gets a reference to the given bool and assigns it to the ReviewedBefore field. +func (o *CommentLogData) SetReviewedBefore(v bool) { + o.ReviewedBefore = &v +} + +// GetReviewedAfter returns the ReviewedAfter field value if set, zero value otherwise. +func (o *CommentLogData) GetReviewedAfter() bool { + if o == nil || IsNil(o.ReviewedAfter) { + var ret bool + return ret + } + return *o.ReviewedAfter +} + +// GetReviewedAfterOk returns a tuple with the ReviewedAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetReviewedAfterOk() (*bool, bool) { + if o == nil || IsNil(o.ReviewedAfter) { + return nil, false + } + return o.ReviewedAfter, true +} + +// HasReviewedAfter returns a boolean if a field has been set. +func (o *CommentLogData) HasReviewedAfter() bool { + if o != nil && !IsNil(o.ReviewedAfter) { + return true + } + + return false +} + +// SetReviewedAfter gets a reference to the given bool and assigns it to the ReviewedAfter field. +func (o *CommentLogData) SetReviewedAfter(v bool) { + o.ReviewedAfter = &v +} + +// GetTextBefore returns the TextBefore field value if set, zero value otherwise. +func (o *CommentLogData) GetTextBefore() string { + if o == nil || IsNil(o.TextBefore) { + var ret string + return ret + } + return *o.TextBefore +} + +// GetTextBeforeOk returns a tuple with the TextBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetTextBeforeOk() (*string, bool) { + if o == nil || IsNil(o.TextBefore) { + return nil, false + } + return o.TextBefore, true +} + +// HasTextBefore returns a boolean if a field has been set. +func (o *CommentLogData) HasTextBefore() bool { + if o != nil && !IsNil(o.TextBefore) { + return true + } + + return false +} + +// SetTextBefore gets a reference to the given string and assigns it to the TextBefore field. +func (o *CommentLogData) SetTextBefore(v string) { + o.TextBefore = &v +} + +// GetTextAfter returns the TextAfter field value if set, zero value otherwise. +func (o *CommentLogData) GetTextAfter() string { + if o == nil || IsNil(o.TextAfter) { + var ret string + return ret + } + return *o.TextAfter +} + +// GetTextAfterOk returns a tuple with the TextAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetTextAfterOk() (*string, bool) { + if o == nil || IsNil(o.TextAfter) { + return nil, false + } + return o.TextAfter, true +} + +// HasTextAfter returns a boolean if a field has been set. +func (o *CommentLogData) HasTextAfter() bool { + if o != nil && !IsNil(o.TextAfter) { + return true + } + + return false +} + +// SetTextAfter gets a reference to the given string and assigns it to the TextAfter field. +func (o *CommentLogData) SetTextAfter(v string) { + o.TextAfter = &v +} + +// GetExpireBefore returns the ExpireBefore field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CommentLogData) GetExpireBefore() time.Time { + if o == nil || IsNil(o.ExpireBefore.Get()) { + var ret time.Time + return ret + } + return *o.ExpireBefore.Get() +} + +// GetExpireBeforeOk returns a tuple with the ExpireBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CommentLogData) GetExpireBeforeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpireBefore.Get(), o.ExpireBefore.IsSet() +} + +// HasExpireBefore returns a boolean if a field has been set. +func (o *CommentLogData) HasExpireBefore() bool { + if o != nil && o.ExpireBefore.IsSet() { + return true + } + + return false +} + +// SetExpireBefore gets a reference to the given NullableTime and assigns it to the ExpireBefore field. +func (o *CommentLogData) SetExpireBefore(v time.Time) { + o.ExpireBefore.Set(&v) +} +// SetExpireBeforeNil sets the value for ExpireBefore to be an explicit nil +func (o *CommentLogData) SetExpireBeforeNil() { + o.ExpireBefore.Set(nil) +} + +// UnsetExpireBefore ensures that no value is present for ExpireBefore, not even an explicit nil +func (o *CommentLogData) UnsetExpireBefore() { + o.ExpireBefore.Unset() +} + +// GetExpireAfter returns the ExpireAfter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CommentLogData) GetExpireAfter() time.Time { + if o == nil || IsNil(o.ExpireAfter.Get()) { + var ret time.Time + return ret + } + return *o.ExpireAfter.Get() +} + +// GetExpireAfterOk returns a tuple with the ExpireAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CommentLogData) GetExpireAfterOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpireAfter.Get(), o.ExpireAfter.IsSet() +} + +// HasExpireAfter returns a boolean if a field has been set. +func (o *CommentLogData) HasExpireAfter() bool { + if o != nil && o.ExpireAfter.IsSet() { + return true + } + + return false +} + +// SetExpireAfter gets a reference to the given NullableTime and assigns it to the ExpireAfter field. +func (o *CommentLogData) SetExpireAfter(v time.Time) { + o.ExpireAfter.Set(&v) +} +// SetExpireAfterNil sets the value for ExpireAfter to be an explicit nil +func (o *CommentLogData) SetExpireAfterNil() { + o.ExpireAfter.Set(nil) +} + +// UnsetExpireAfter ensures that no value is present for ExpireAfter, not even an explicit nil +func (o *CommentLogData) UnsetExpireAfter() { + o.ExpireAfter.Unset() +} + +// GetFlagCountBefore returns the FlagCountBefore field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CommentLogData) GetFlagCountBefore() float64 { + if o == nil || IsNil(o.FlagCountBefore.Get()) { + var ret float64 + return ret + } + return *o.FlagCountBefore.Get() +} + +// GetFlagCountBeforeOk returns a tuple with the FlagCountBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CommentLogData) GetFlagCountBeforeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.FlagCountBefore.Get(), o.FlagCountBefore.IsSet() +} + +// HasFlagCountBefore returns a boolean if a field has been set. +func (o *CommentLogData) HasFlagCountBefore() bool { + if o != nil && o.FlagCountBefore.IsSet() { + return true + } + + return false +} + +// SetFlagCountBefore gets a reference to the given NullableFloat64 and assigns it to the FlagCountBefore field. +func (o *CommentLogData) SetFlagCountBefore(v float64) { + o.FlagCountBefore.Set(&v) +} +// SetFlagCountBeforeNil sets the value for FlagCountBefore to be an explicit nil +func (o *CommentLogData) SetFlagCountBeforeNil() { + o.FlagCountBefore.Set(nil) +} + +// UnsetFlagCountBefore ensures that no value is present for FlagCountBefore, not even an explicit nil +func (o *CommentLogData) UnsetFlagCountBefore() { + o.FlagCountBefore.Unset() +} + +// GetTrustFactorBefore returns the TrustFactorBefore field value if set, zero value otherwise. +func (o *CommentLogData) GetTrustFactorBefore() float64 { + if o == nil || IsNil(o.TrustFactorBefore) { + var ret float64 + return ret + } + return *o.TrustFactorBefore +} + +// GetTrustFactorBeforeOk returns a tuple with the TrustFactorBefore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetTrustFactorBeforeOk() (*float64, bool) { + if o == nil || IsNil(o.TrustFactorBefore) { + return nil, false + } + return o.TrustFactorBefore, true +} + +// HasTrustFactorBefore returns a boolean if a field has been set. +func (o *CommentLogData) HasTrustFactorBefore() bool { + if o != nil && !IsNil(o.TrustFactorBefore) { + return true + } + + return false +} + +// SetTrustFactorBefore gets a reference to the given float64 and assigns it to the TrustFactorBefore field. +func (o *CommentLogData) SetTrustFactorBefore(v float64) { + o.TrustFactorBefore = &v +} + +// GetTrustFactorAfter returns the TrustFactorAfter field value if set, zero value otherwise. +func (o *CommentLogData) GetTrustFactorAfter() float64 { + if o == nil || IsNil(o.TrustFactorAfter) { + var ret float64 + return ret + } + return *o.TrustFactorAfter +} + +// GetTrustFactorAfterOk returns a tuple with the TrustFactorAfter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetTrustFactorAfterOk() (*float64, bool) { + if o == nil || IsNil(o.TrustFactorAfter) { + return nil, false + } + return o.TrustFactorAfter, true +} + +// HasTrustFactorAfter returns a boolean if a field has been set. +func (o *CommentLogData) HasTrustFactorAfter() bool { + if o != nil && !IsNil(o.TrustFactorAfter) { + return true + } + + return false +} + +// SetTrustFactorAfter gets a reference to the given float64 and assigns it to the TrustFactorAfter field. +func (o *CommentLogData) SetTrustFactorAfter(v float64) { + o.TrustFactorAfter = &v +} + +// GetReferencedCommentId returns the ReferencedCommentId field value if set, zero value otherwise. +func (o *CommentLogData) GetReferencedCommentId() string { + if o == nil || IsNil(o.ReferencedCommentId) { + var ret string + return ret + } + return *o.ReferencedCommentId +} + +// GetReferencedCommentIdOk returns a tuple with the ReferencedCommentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogData) GetReferencedCommentIdOk() (*string, bool) { + if o == nil || IsNil(o.ReferencedCommentId) { + return nil, false + } + return o.ReferencedCommentId, true +} + +// HasReferencedCommentId returns a boolean if a field has been set. +func (o *CommentLogData) HasReferencedCommentId() bool { + if o != nil && !IsNil(o.ReferencedCommentId) { + return true + } + + return false +} + +// SetReferencedCommentId gets a reference to the given string and assigns it to the ReferencedCommentId field. +func (o *CommentLogData) SetReferencedCommentId(v string) { + o.ReferencedCommentId = &v +} + +func (o CommentLogData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CommentLogData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ClearContent) { + toSerialize["clearContent"] = o.ClearContent + } + if !IsNil(o.IsDeletedUser) { + toSerialize["isDeletedUser"] = o.IsDeletedUser + } + if !IsNil(o.Phrase) { + toSerialize["phrase"] = o.Phrase + } + if !IsNil(o.BadWord) { + toSerialize["badWord"] = o.BadWord + } + if !IsNil(o.Word) { + toSerialize["word"] = o.Word + } + if !IsNil(o.Locale) { + toSerialize["locale"] = o.Locale + } + if !IsNil(o.TenantBadgeId) { + toSerialize["tenantBadgeId"] = o.TenantBadgeId + } + if !IsNil(o.BadgeId) { + toSerialize["badgeId"] = o.BadgeId + } + if !IsNil(o.WasLoggedIn) { + toSerialize["wasLoggedIn"] = o.WasLoggedIn + } + if !IsNil(o.FoundUser) { + toSerialize["foundUser"] = o.FoundUser + } + if !IsNil(o.Verified) { + toSerialize["verified"] = o.Verified + } + if !IsNil(o.Engine) { + toSerialize["engine"] = o.Engine + } + if !IsNil(o.EngineResponse) { + toSerialize["engineResponse"] = o.EngineResponse + } + if !IsNil(o.EngineTokens) { + toSerialize["engineTokens"] = o.EngineTokens + } + if !IsNil(o.TrustFactor) { + toSerialize["trustFactor"] = o.TrustFactor + } + if !IsNil(o.Rule) { + toSerialize["rule"] = o.Rule + } + if !IsNil(o.UserId) { + toSerialize["userId"] = o.UserId + } + if !IsNil(o.Subscribers) { + toSerialize["subscribers"] = o.Subscribers + } + if !IsNil(o.NotificationCount) { + toSerialize["notificationCount"] = o.NotificationCount + } + if o.VotesBefore.IsSet() { + toSerialize["votesBefore"] = o.VotesBefore.Get() + } + if o.VotesUpBefore.IsSet() { + toSerialize["votesUpBefore"] = o.VotesUpBefore.Get() + } + if o.VotesDownBefore.IsSet() { + toSerialize["votesDownBefore"] = o.VotesDownBefore.Get() + } + if o.VotesAfter.IsSet() { + toSerialize["votesAfter"] = o.VotesAfter.Get() + } + if o.VotesUpAfter.IsSet() { + toSerialize["votesUpAfter"] = o.VotesUpAfter.Get() + } + if o.VotesDownAfter.IsSet() { + toSerialize["votesDownAfter"] = o.VotesDownAfter.Get() + } + if !IsNil(o.RepeatAction) { + toSerialize["repeatAction"] = o.RepeatAction + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + if o.OtherData != nil { + toSerialize["otherData"] = o.OtherData + } + if !IsNil(o.SpamBefore) { + toSerialize["spamBefore"] = o.SpamBefore + } + if !IsNil(o.SpamAfter) { + toSerialize["spamAfter"] = o.SpamAfter + } + if !IsNil(o.PermanentFlag) { + toSerialize["permanentFlag"] = o.PermanentFlag + } + if !IsNil(o.ApprovedBefore) { + toSerialize["approvedBefore"] = o.ApprovedBefore + } + if !IsNil(o.ApprovedAfter) { + toSerialize["approvedAfter"] = o.ApprovedAfter + } + if !IsNil(o.ReviewedBefore) { + toSerialize["reviewedBefore"] = o.ReviewedBefore + } + if !IsNil(o.ReviewedAfter) { + toSerialize["reviewedAfter"] = o.ReviewedAfter + } + if !IsNil(o.TextBefore) { + toSerialize["textBefore"] = o.TextBefore + } + if !IsNil(o.TextAfter) { + toSerialize["textAfter"] = o.TextAfter + } + if o.ExpireBefore.IsSet() { + toSerialize["expireBefore"] = o.ExpireBefore.Get() + } + if o.ExpireAfter.IsSet() { + toSerialize["expireAfter"] = o.ExpireAfter.Get() + } + if o.FlagCountBefore.IsSet() { + toSerialize["flagCountBefore"] = o.FlagCountBefore.Get() + } + if !IsNil(o.TrustFactorBefore) { + toSerialize["trustFactorBefore"] = o.TrustFactorBefore + } + if !IsNil(o.TrustFactorAfter) { + toSerialize["trustFactorAfter"] = o.TrustFactorAfter + } + if !IsNil(o.ReferencedCommentId) { + toSerialize["referencedCommentId"] = o.ReferencedCommentId + } + return toSerialize, nil +} + +type NullableCommentLogData struct { + value *CommentLogData + isSet bool +} + +func (v NullableCommentLogData) Get() *CommentLogData { + return v.value +} + +func (v *NullableCommentLogData) Set(val *CommentLogData) { + v.value = val + v.isSet = true +} + +func (v NullableCommentLogData) IsSet() bool { + return v.isSet +} + +func (v *NullableCommentLogData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCommentLogData(val *CommentLogData) *NullableCommentLogData { + return &NullableCommentLogData{value: val, isSet: true} +} + +func (v NullableCommentLogData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCommentLogData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_comment_log_entry.go b/client/model_comment_log_entry.go new file mode 100644 index 0000000..cf4f40e --- /dev/null +++ b/client/model_comment_log_entry.go @@ -0,0 +1,223 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the CommentLogEntry type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CommentLogEntry{} + +// CommentLogEntry struct for CommentLogEntry +type CommentLogEntry struct { + D time.Time `json:"d"` + T CommentLogType `json:"t"` + Da *CommentLogData `json:"da,omitempty"` +} + +type _CommentLogEntry CommentLogEntry + +// NewCommentLogEntry instantiates a new CommentLogEntry 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 NewCommentLogEntry(d time.Time, t CommentLogType) *CommentLogEntry { + this := CommentLogEntry{} + this.D = d + this.T = t + return &this +} + +// NewCommentLogEntryWithDefaults instantiates a new CommentLogEntry 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 NewCommentLogEntryWithDefaults() *CommentLogEntry { + this := CommentLogEntry{} + return &this +} + +// GetD returns the D field value +func (o *CommentLogEntry) GetD() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.D +} + +// GetDOk returns a tuple with the D field value +// and a boolean to check if the value has been set. +func (o *CommentLogEntry) GetDOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.D, true +} + +// SetD sets field value +func (o *CommentLogEntry) SetD(v time.Time) { + o.D = v +} + +// GetT returns the T field value +func (o *CommentLogEntry) GetT() CommentLogType { + if o == nil { + var ret CommentLogType + return ret + } + + return o.T +} + +// GetTOk returns a tuple with the T field value +// and a boolean to check if the value has been set. +func (o *CommentLogEntry) GetTOk() (*CommentLogType, bool) { + if o == nil { + return nil, false + } + return &o.T, true +} + +// SetT sets field value +func (o *CommentLogEntry) SetT(v CommentLogType) { + o.T = v +} + +// GetDa returns the Da field value if set, zero value otherwise. +func (o *CommentLogEntry) GetDa() CommentLogData { + if o == nil || IsNil(o.Da) { + var ret CommentLogData + return ret + } + return *o.Da +} + +// GetDaOk returns a tuple with the Da field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CommentLogEntry) GetDaOk() (*CommentLogData, bool) { + if o == nil || IsNil(o.Da) { + return nil, false + } + return o.Da, true +} + +// HasDa returns a boolean if a field has been set. +func (o *CommentLogEntry) HasDa() bool { + if o != nil && !IsNil(o.Da) { + return true + } + + return false +} + +// SetDa gets a reference to the given CommentLogData and assigns it to the Da field. +func (o *CommentLogEntry) SetDa(v CommentLogData) { + o.Da = &v +} + +func (o CommentLogEntry) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CommentLogEntry) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["d"] = o.D + toSerialize["t"] = o.T + if !IsNil(o.Da) { + toSerialize["da"] = o.Da + } + return toSerialize, nil +} + +func (o *CommentLogEntry) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "d", + "t", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCommentLogEntry := _CommentLogEntry{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCommentLogEntry) + + if err != nil { + return err + } + + *o = CommentLogEntry(varCommentLogEntry) + + return err +} + +type NullableCommentLogEntry struct { + value *CommentLogEntry + isSet bool +} + +func (v NullableCommentLogEntry) Get() *CommentLogEntry { + return v.value +} + +func (v *NullableCommentLogEntry) Set(val *CommentLogEntry) { + v.value = val + v.isSet = true +} + +func (v NullableCommentLogEntry) IsSet() bool { + return v.isSet +} + +func (v *NullableCommentLogEntry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCommentLogEntry(val *CommentLogEntry) *NullableCommentLogEntry { + return &NullableCommentLogEntry{value: val, isSet: true} +} + +func (v NullableCommentLogEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCommentLogEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_comment_log_type.go b/client/model_comment_log_type.go new file mode 100644 index 0000000..15c1d8a --- /dev/null +++ b/client/model_comment_log_type.go @@ -0,0 +1,217 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// CommentLogType the model 'CommentLogType' +type CommentLogType float32 + +// List of CommentLogType +const ( + COMMENTLOGTYPE__0 CommentLogType = 0 + COMMENTLOGTYPE__1 CommentLogType = 1 + COMMENTLOGTYPE__2 CommentLogType = 2 + COMMENTLOGTYPE__3 CommentLogType = 3 + COMMENTLOGTYPE__4 CommentLogType = 4 + COMMENTLOGTYPE__5 CommentLogType = 5 + COMMENTLOGTYPE__6 CommentLogType = 6 + COMMENTLOGTYPE__7 CommentLogType = 7 + COMMENTLOGTYPE__8 CommentLogType = 8 + COMMENTLOGTYPE__9 CommentLogType = 9 + COMMENTLOGTYPE__10 CommentLogType = 10 + COMMENTLOGTYPE__11 CommentLogType = 11 + COMMENTLOGTYPE__12 CommentLogType = 12 + COMMENTLOGTYPE__13 CommentLogType = 13 + COMMENTLOGTYPE__14 CommentLogType = 14 + COMMENTLOGTYPE__15 CommentLogType = 15 + COMMENTLOGTYPE__16 CommentLogType = 16 + COMMENTLOGTYPE__17 CommentLogType = 17 + COMMENTLOGTYPE__18 CommentLogType = 18 + COMMENTLOGTYPE__19 CommentLogType = 19 + COMMENTLOGTYPE__20 CommentLogType = 20 + COMMENTLOGTYPE__21 CommentLogType = 21 + COMMENTLOGTYPE__22 CommentLogType = 22 + COMMENTLOGTYPE__23 CommentLogType = 23 + COMMENTLOGTYPE__24 CommentLogType = 24 + COMMENTLOGTYPE__25 CommentLogType = 25 + COMMENTLOGTYPE__26 CommentLogType = 26 + COMMENTLOGTYPE__27 CommentLogType = 27 + COMMENTLOGTYPE__28 CommentLogType = 28 + COMMENTLOGTYPE__29 CommentLogType = 29 + COMMENTLOGTYPE__30 CommentLogType = 30 + COMMENTLOGTYPE__31 CommentLogType = 31 + COMMENTLOGTYPE__32 CommentLogType = 32 + COMMENTLOGTYPE__33 CommentLogType = 33 + COMMENTLOGTYPE__34 CommentLogType = 34 + COMMENTLOGTYPE__35 CommentLogType = 35 + COMMENTLOGTYPE__36 CommentLogType = 36 + COMMENTLOGTYPE__37 CommentLogType = 37 + COMMENTLOGTYPE__38 CommentLogType = 38 + COMMENTLOGTYPE__39 CommentLogType = 39 + COMMENTLOGTYPE__40 CommentLogType = 40 + COMMENTLOGTYPE__41 CommentLogType = 41 + COMMENTLOGTYPE__42 CommentLogType = 42 + COMMENTLOGTYPE__43 CommentLogType = 43 + COMMENTLOGTYPE__44 CommentLogType = 44 + COMMENTLOGTYPE__45 CommentLogType = 45 + COMMENTLOGTYPE__46 CommentLogType = 46 + COMMENTLOGTYPE__47 CommentLogType = 47 + COMMENTLOGTYPE__48 CommentLogType = 48 + COMMENTLOGTYPE__49 CommentLogType = 49 + COMMENTLOGTYPE__50 CommentLogType = 50 + COMMENTLOGTYPE__51 CommentLogType = 51 + COMMENTLOGTYPE__52 CommentLogType = 52 + COMMENTLOGTYPE__53 CommentLogType = 53 + COMMENTLOGTYPE__54 CommentLogType = 54 +) + +// All allowed values of CommentLogType enum +var AllowedCommentLogTypeEnumValues = []CommentLogType{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, +} + +func (v *CommentLogType) UnmarshalJSON(src []byte) error { + var value float32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CommentLogType(value) + for _, existing := range AllowedCommentLogTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CommentLogType", value) +} + +// NewCommentLogTypeFromValue returns a pointer to a valid CommentLogType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCommentLogTypeFromValue(v float32) (*CommentLogType, error) { + ev := CommentLogType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CommentLogType: valid values are %v", v, AllowedCommentLogTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CommentLogType) IsValid() bool { + for _, existing := range AllowedCommentLogTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CommentLogType value +func (v CommentLogType) Ptr() *CommentLogType { + return &v +} + +type NullableCommentLogType struct { + value *CommentLogType + isSet bool +} + +func (v NullableCommentLogType) Get() *CommentLogType { + return v.value +} + +func (v *NullableCommentLogType) Set(val *CommentLogType) { + v.value = val + v.isSet = true +} + +func (v NullableCommentLogType) IsSet() bool { + return v.isSet +} + +func (v *NullableCommentLogType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCommentLogType(val *CommentLogType) *NullableCommentLogType { + return &NullableCommentLogType{value: val, isSet: true} +} + +func (v NullableCommentLogType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCommentLogType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/client/model_custom_config_parameters.go b/client/model_custom_config_parameters.go index 34de448..71c4a85 100644 --- a/client/model_custom_config_parameters.go +++ b/client/model_custom_config_parameters.go @@ -71,6 +71,7 @@ type CustomConfigParameters struct { NoStyles *bool `json:"noStyles,omitempty"` PageSize NullableInt32 `json:"pageSize,omitempty"` Readonly *bool `json:"readonly,omitempty"` + NoNewRootComments *bool `json:"noNewRootComments,omitempty"` RequireSSO *bool `json:"requireSSO,omitempty"` EnableResizeHandle *bool `json:"enableResizeHandle,omitempty"` RestrictedLinkDomains []string `json:"restrictedLinkDomains,omitempty"` @@ -1906,6 +1907,38 @@ func (o *CustomConfigParameters) SetReadonly(v bool) { o.Readonly = &v } +// GetNoNewRootComments returns the NoNewRootComments field value if set, zero value otherwise. +func (o *CustomConfigParameters) GetNoNewRootComments() bool { + if o == nil || IsNil(o.NoNewRootComments) { + var ret bool + return ret + } + return *o.NoNewRootComments +} + +// GetNoNewRootCommentsOk returns a tuple with the NoNewRootComments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomConfigParameters) GetNoNewRootCommentsOk() (*bool, bool) { + if o == nil || IsNil(o.NoNewRootComments) { + return nil, false + } + return o.NoNewRootComments, true +} + +// HasNoNewRootComments returns a boolean if a field has been set. +func (o *CustomConfigParameters) HasNoNewRootComments() bool { + if o != nil && !IsNil(o.NoNewRootComments) { + return true + } + + return false +} + +// SetNoNewRootComments gets a reference to the given bool and assigns it to the NoNewRootComments field. +func (o *CustomConfigParameters) SetNoNewRootComments(v bool) { + o.NoNewRootComments = &v +} + // GetRequireSSO returns the RequireSSO field value if set, zero value otherwise. func (o *CustomConfigParameters) GetRequireSSO() bool { if o == nil || IsNil(o.RequireSSO) { @@ -2714,6 +2747,9 @@ func (o CustomConfigParameters) ToMap() (map[string]interface{}, error) { if !IsNil(o.Readonly) { toSerialize["readonly"] = o.Readonly } + if !IsNil(o.NoNewRootComments) { + toSerialize["noNewRootComments"] = o.NoNewRootComments + } if !IsNil(o.RequireSSO) { toSerialize["requireSSO"] = o.RequireSSO } diff --git a/client/model_delete_comment_result.go b/client/model_delete_comment_result.go index c2759bb..14b6ee0 100644 --- a/client/model_delete_comment_result.go +++ b/client/model_delete_comment_result.go @@ -22,7 +22,7 @@ var _ MappedNullable = &DeleteCommentResult{} // DeleteCommentResult struct for DeleteCommentResult type DeleteCommentResult struct { Action DeleteCommentAction `json:"action"` - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` } type _DeleteCommentResult DeleteCommentResult @@ -31,7 +31,7 @@ type _DeleteCommentResult DeleteCommentResult // 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 NewDeleteCommentResult(action DeleteCommentAction, status ImportedAPIStatusSUCCESS) *DeleteCommentResult { +func NewDeleteCommentResult(action DeleteCommentAction, status APIStatus) *DeleteCommentResult { this := DeleteCommentResult{} this.Action = action this.Status = status @@ -71,9 +71,9 @@ func (o *DeleteCommentResult) SetAction(v DeleteCommentAction) { } // GetStatus returns the Status field value -func (o *DeleteCommentResult) GetStatus() ImportedAPIStatusSUCCESS { +func (o *DeleteCommentResult) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -82,7 +82,7 @@ func (o *DeleteCommentResult) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *DeleteCommentResult) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *DeleteCommentResult) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -90,7 +90,7 @@ func (o *DeleteCommentResult) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { } // SetStatus sets field value -func (o *DeleteCommentResult) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *DeleteCommentResult) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_deleted_comment_result_comment.go b/client/model_deleted_comment_result_comment.go new file mode 100644 index 0000000..daa5f66 --- /dev/null +++ b/client/model_deleted_comment_result_comment.go @@ -0,0 +1,268 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "bytes" + "fmt" +) + +// checks if the DeletedCommentResultComment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeletedCommentResultComment{} + +// DeletedCommentResultComment struct for DeletedCommentResultComment +type DeletedCommentResultComment struct { + IsDeleted *bool `json:"isDeleted,omitempty"` + CommentHTML string `json:"commentHTML"` + CommenterName string `json:"commenterName"` + UserId NullableString `json:"userId,omitempty"` +} + +type _DeletedCommentResultComment DeletedCommentResultComment + +// NewDeletedCommentResultComment instantiates a new DeletedCommentResultComment 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 NewDeletedCommentResultComment(commentHTML string, commenterName string) *DeletedCommentResultComment { + this := DeletedCommentResultComment{} + this.CommentHTML = commentHTML + this.CommenterName = commenterName + return &this +} + +// NewDeletedCommentResultCommentWithDefaults instantiates a new DeletedCommentResultComment 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 NewDeletedCommentResultCommentWithDefaults() *DeletedCommentResultComment { + this := DeletedCommentResultComment{} + return &this +} + +// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. +func (o *DeletedCommentResultComment) GetIsDeleted() bool { + if o == nil || IsNil(o.IsDeleted) { + var ret bool + return ret + } + return *o.IsDeleted +} + +// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeletedCommentResultComment) GetIsDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeleted) { + return nil, false + } + return o.IsDeleted, true +} + +// HasIsDeleted returns a boolean if a field has been set. +func (o *DeletedCommentResultComment) HasIsDeleted() bool { + if o != nil && !IsNil(o.IsDeleted) { + return true + } + + return false +} + +// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. +func (o *DeletedCommentResultComment) SetIsDeleted(v bool) { + o.IsDeleted = &v +} + +// GetCommentHTML returns the CommentHTML field value +func (o *DeletedCommentResultComment) GetCommentHTML() string { + if o == nil { + var ret string + return ret + } + + return o.CommentHTML +} + +// GetCommentHTMLOk returns a tuple with the CommentHTML field value +// and a boolean to check if the value has been set. +func (o *DeletedCommentResultComment) GetCommentHTMLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommentHTML, true +} + +// SetCommentHTML sets field value +func (o *DeletedCommentResultComment) SetCommentHTML(v string) { + o.CommentHTML = v +} + +// GetCommenterName returns the CommenterName field value +func (o *DeletedCommentResultComment) GetCommenterName() string { + if o == nil { + var ret string + return ret + } + + return o.CommenterName +} + +// GetCommenterNameOk returns a tuple with the CommenterName field value +// and a boolean to check if the value has been set. +func (o *DeletedCommentResultComment) GetCommenterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommenterName, true +} + +// SetCommenterName sets field value +func (o *DeletedCommentResultComment) SetCommenterName(v string) { + o.CommenterName = v +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeletedCommentResultComment) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeletedCommentResultComment) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *DeletedCommentResultComment) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *DeletedCommentResultComment) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *DeletedCommentResultComment) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *DeletedCommentResultComment) UnsetUserId() { + o.UserId.Unset() +} + +func (o DeletedCommentResultComment) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeletedCommentResultComment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsDeleted) { + toSerialize["isDeleted"] = o.IsDeleted + } + toSerialize["commentHTML"] = o.CommentHTML + toSerialize["commenterName"] = o.CommenterName + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + return toSerialize, nil +} + +func (o *DeletedCommentResultComment) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "commentHTML", + "commenterName", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDeletedCommentResultComment := _DeletedCommentResultComment{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varDeletedCommentResultComment) + + if err != nil { + return err + } + + *o = DeletedCommentResultComment(varDeletedCommentResultComment) + + return err +} + +type NullableDeletedCommentResultComment struct { + value *DeletedCommentResultComment + isSet bool +} + +func (v NullableDeletedCommentResultComment) Get() *DeletedCommentResultComment { + return v.value +} + +func (v *NullableDeletedCommentResultComment) Set(val *DeletedCommentResultComment) { + v.value = val + v.isSet = true +} + +func (v NullableDeletedCommentResultComment) IsSet() bool { + return v.isSet +} + +func (v *NullableDeletedCommentResultComment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeletedCommentResultComment(val *DeletedCommentResultComment) *NullableDeletedCommentResultComment { + return &NullableDeletedCommentResultComment{value: val, isSet: true} +} + +func (v NullableDeletedCommentResultComment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeletedCommentResultComment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_f_comment.go b/client/model_f_comment.go index cfaba1d..1bfe7c6 100644 --- a/client/model_f_comment.go +++ b/client/model_f_comment.go @@ -88,7 +88,7 @@ type FComment struct { AutoplayJobId *string `json:"autoplayJobId,omitempty"` AutoplayDelayMS *int64 `json:"autoplayDelayMS,omitempty"` FeedbackIds []string `json:"feedbackIds,omitempty"` - Logs [][]interface{} `json:"logs,omitempty"` + Logs []CommentLogEntry `json:"logs,omitempty"` GroupIds []string `json:"groupIds,omitempty"` ViewCount NullableInt64 `json:"viewCount,omitempty"` RequiresVerification *bool `json:"requiresVerification,omitempty"` @@ -2416,9 +2416,9 @@ func (o *FComment) SetFeedbackIds(v []string) { } // GetLogs returns the Logs field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FComment) GetLogs() [][]interface{} { +func (o *FComment) GetLogs() []CommentLogEntry { if o == nil { - var ret [][]interface{} + var ret []CommentLogEntry return ret } return o.Logs @@ -2427,7 +2427,7 @@ func (o *FComment) GetLogs() [][]interface{} { // GetLogsOk returns a tuple with the Logs field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FComment) GetLogsOk() ([][]interface{}, bool) { +func (o *FComment) GetLogsOk() ([]CommentLogEntry, bool) { if o == nil || IsNil(o.Logs) { return nil, false } @@ -2443,8 +2443,8 @@ func (o *FComment) HasLogs() bool { return false } -// SetLogs gets a reference to the given [][]interface{} and assigns it to the Logs field. -func (o *FComment) SetLogs(v [][]interface{}) { +// SetLogs gets a reference to the given []CommentLogEntry and assigns it to the Logs field. +func (o *FComment) SetLogs(v []CommentLogEntry) { o.Logs = v } diff --git a/client/model_get_audit_logs_response.go b/client/model_get_audit_logs_response.go index 1273ad7..de1af88 100644 --- a/client/model_get_audit_logs_response.go +++ b/client/model_get_audit_logs_response.go @@ -22,7 +22,7 @@ var _ MappedNullable = &GetAuditLogsResponse{} // GetAuditLogsResponse struct for GetAuditLogsResponse type GetAuditLogsResponse struct { Status APIStatus `json:"status"` - AuditLogs []PickTenantAuditLogTenantAuditLogKeys `json:"auditLogs"` + AuditLogs []APIAuditLog `json:"auditLogs"` } type _GetAuditLogsResponse GetAuditLogsResponse @@ -31,7 +31,7 @@ type _GetAuditLogsResponse GetAuditLogsResponse // 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 NewGetAuditLogsResponse(status APIStatus, auditLogs []PickTenantAuditLogTenantAuditLogKeys) *GetAuditLogsResponse { +func NewGetAuditLogsResponse(status APIStatus, auditLogs []APIAuditLog) *GetAuditLogsResponse { this := GetAuditLogsResponse{} this.Status = status this.AuditLogs = auditLogs @@ -71,9 +71,9 @@ func (o *GetAuditLogsResponse) SetStatus(v APIStatus) { } // GetAuditLogs returns the AuditLogs field value -func (o *GetAuditLogsResponse) GetAuditLogs() []PickTenantAuditLogTenantAuditLogKeys { +func (o *GetAuditLogsResponse) GetAuditLogs() []APIAuditLog { if o == nil { - var ret []PickTenantAuditLogTenantAuditLogKeys + var ret []APIAuditLog return ret } @@ -82,7 +82,7 @@ func (o *GetAuditLogsResponse) GetAuditLogs() []PickTenantAuditLogTenantAuditLog // GetAuditLogsOk returns a tuple with the AuditLogs field value // and a boolean to check if the value has been set. -func (o *GetAuditLogsResponse) GetAuditLogsOk() ([]PickTenantAuditLogTenantAuditLogKeys, bool) { +func (o *GetAuditLogsResponse) GetAuditLogsOk() ([]APIAuditLog, bool) { if o == nil { return nil, false } @@ -90,7 +90,7 @@ func (o *GetAuditLogsResponse) GetAuditLogsOk() ([]PickTenantAuditLogTenantAudit } // SetAuditLogs sets field value -func (o *GetAuditLogsResponse) SetAuditLogs(v []PickTenantAuditLogTenantAuditLogKeys) { +func (o *GetAuditLogsResponse) SetAuditLogs(v []APIAuditLog) { o.AuditLogs = v } diff --git a/client/model_get_comment_vote_user_names_success_response.go b/client/model_get_comment_vote_user_names_success_response.go index 9a6f30e..8df2b5c 100644 --- a/client/model_get_comment_vote_user_names_success_response.go +++ b/client/model_get_comment_vote_user_names_success_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &GetCommentVoteUserNamesSuccessResponse{} // GetCommentVoteUserNamesSuccessResponse struct for GetCommentVoteUserNamesSuccessResponse type GetCommentVoteUserNamesSuccessResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` VoteUserNames []string `json:"voteUserNames"` HasMore bool `json:"hasMore"` } @@ -32,7 +32,7 @@ type _GetCommentVoteUserNamesSuccessResponse GetCommentVoteUserNamesSuccessRespo // 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 NewGetCommentVoteUserNamesSuccessResponse(status ImportedAPIStatusSUCCESS, voteUserNames []string, hasMore bool) *GetCommentVoteUserNamesSuccessResponse { +func NewGetCommentVoteUserNamesSuccessResponse(status APIStatus, voteUserNames []string, hasMore bool) *GetCommentVoteUserNamesSuccessResponse { this := GetCommentVoteUserNamesSuccessResponse{} this.Status = status this.VoteUserNames = voteUserNames @@ -49,9 +49,9 @@ func NewGetCommentVoteUserNamesSuccessResponseWithDefaults() *GetCommentVoteUser } // GetStatus returns the Status field value -func (o *GetCommentVoteUserNamesSuccessResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *GetCommentVoteUserNamesSuccessResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -60,7 +60,7 @@ func (o *GetCommentVoteUserNamesSuccessResponse) GetStatus() ImportedAPIStatusSU // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *GetCommentVoteUserNamesSuccessResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *GetCommentVoteUserNamesSuccessResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -68,7 +68,7 @@ func (o *GetCommentVoteUserNamesSuccessResponse) GetStatusOk() (*ImportedAPIStat } // SetStatus sets field value -func (o *GetCommentVoteUserNamesSuccessResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *GetCommentVoteUserNamesSuccessResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_get_event_log_response.go b/client/model_get_event_log_response.go index 7d655be..6960750 100644 --- a/client/model_get_event_log_response.go +++ b/client/model_get_event_log_response.go @@ -22,7 +22,7 @@ var _ MappedNullable = &GetEventLogResponse{} // GetEventLogResponse struct for GetEventLogResponse type GetEventLogResponse struct { Events []EventLogEntry `json:"events"` - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` } type _GetEventLogResponse GetEventLogResponse @@ -31,7 +31,7 @@ type _GetEventLogResponse GetEventLogResponse // 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 NewGetEventLogResponse(events []EventLogEntry, status ImportedAPIStatusSUCCESS) *GetEventLogResponse { +func NewGetEventLogResponse(events []EventLogEntry, status APIStatus) *GetEventLogResponse { this := GetEventLogResponse{} this.Events = events this.Status = status @@ -71,9 +71,9 @@ func (o *GetEventLogResponse) SetEvents(v []EventLogEntry) { } // GetStatus returns the Status field value -func (o *GetEventLogResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *GetEventLogResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -82,7 +82,7 @@ func (o *GetEventLogResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *GetEventLogResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *GetEventLogResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -90,7 +90,7 @@ func (o *GetEventLogResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { } // SetStatus sets field value -func (o *GetEventLogResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *GetEventLogResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_get_my_notifications_response.go b/client/model_get_my_notifications_response.go index 19dbebe..59265af 100644 --- a/client/model_get_my_notifications_response.go +++ b/client/model_get_my_notifications_response.go @@ -26,7 +26,7 @@ type GetMyNotificationsResponse struct { IsSubscribed bool `json:"isSubscribed"` HasMore bool `json:"hasMore"` Notifications []RenderableUserNotification `json:"notifications"` - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` } type _GetMyNotificationsResponse GetMyNotificationsResponse @@ -35,7 +35,7 @@ type _GetMyNotificationsResponse GetMyNotificationsResponse // 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 NewGetMyNotificationsResponse(isSubscribed bool, hasMore bool, notifications []RenderableUserNotification, status ImportedAPIStatusSUCCESS) *GetMyNotificationsResponse { +func NewGetMyNotificationsResponse(isSubscribed bool, hasMore bool, notifications []RenderableUserNotification, status APIStatus) *GetMyNotificationsResponse { this := GetMyNotificationsResponse{} this.IsSubscribed = isSubscribed this.HasMore = hasMore @@ -157,9 +157,9 @@ func (o *GetMyNotificationsResponse) SetNotifications(v []RenderableUserNotifica } // GetStatus returns the Status field value -func (o *GetMyNotificationsResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *GetMyNotificationsResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -168,7 +168,7 @@ func (o *GetMyNotificationsResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *GetMyNotificationsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *GetMyNotificationsResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -176,7 +176,7 @@ func (o *GetMyNotificationsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, b } // SetStatus sets field value -func (o *GetMyNotificationsResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *GetMyNotificationsResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_get_public_feed_posts_response.go b/client/model_get_public_feed_posts_response.go index 4b0b95a..9cefbd4 100644 --- a/client/model_get_public_feed_posts_response.go +++ b/client/model_get_public_feed_posts_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &GetPublicFeedPostsResponse{} // GetPublicFeedPostsResponse struct for GetPublicFeedPostsResponse type GetPublicFeedPostsResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` FeedPosts []FeedPost `json:"feedPosts"` User NullableUserSessionInfo `json:"user,omitempty"` } @@ -32,7 +32,7 @@ type _GetPublicFeedPostsResponse GetPublicFeedPostsResponse // 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 NewGetPublicFeedPostsResponse(status ImportedAPIStatusSUCCESS, feedPosts []FeedPost) *GetPublicFeedPostsResponse { +func NewGetPublicFeedPostsResponse(status APIStatus, feedPosts []FeedPost) *GetPublicFeedPostsResponse { this := GetPublicFeedPostsResponse{} this.Status = status this.FeedPosts = feedPosts @@ -48,9 +48,9 @@ func NewGetPublicFeedPostsResponseWithDefaults() *GetPublicFeedPostsResponse { } // GetStatus returns the Status field value -func (o *GetPublicFeedPostsResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *GetPublicFeedPostsResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -59,7 +59,7 @@ func (o *GetPublicFeedPostsResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *GetPublicFeedPostsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *GetPublicFeedPostsResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -67,7 +67,7 @@ func (o *GetPublicFeedPostsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, b } // SetStatus sets field value -func (o *GetPublicFeedPostsResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *GetPublicFeedPostsResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_get_user_notification_count_response.go b/client/model_get_user_notification_count_response.go index f0aef74..0a3149c 100644 --- a/client/model_get_user_notification_count_response.go +++ b/client/model_get_user_notification_count_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &GetUserNotificationCountResponse{} // GetUserNotificationCountResponse struct for GetUserNotificationCountResponse type GetUserNotificationCountResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` Count int64 `json:"count"` } @@ -31,7 +31,7 @@ type _GetUserNotificationCountResponse GetUserNotificationCountResponse // 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 NewGetUserNotificationCountResponse(status ImportedAPIStatusSUCCESS, count int64) *GetUserNotificationCountResponse { +func NewGetUserNotificationCountResponse(status APIStatus, count int64) *GetUserNotificationCountResponse { this := GetUserNotificationCountResponse{} this.Status = status this.Count = count @@ -47,9 +47,9 @@ func NewGetUserNotificationCountResponseWithDefaults() *GetUserNotificationCount } // GetStatus returns the Status field value -func (o *GetUserNotificationCountResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *GetUserNotificationCountResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -58,7 +58,7 @@ func (o *GetUserNotificationCountResponse) GetStatus() ImportedAPIStatusSUCCESS // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *GetUserNotificationCountResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *GetUserNotificationCountResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -66,7 +66,7 @@ func (o *GetUserNotificationCountResponse) GetStatusOk() (*ImportedAPIStatusSUCC } // SetStatus sets field value -func (o *GetUserNotificationCountResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *GetUserNotificationCountResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_get_user_presence_statuses_response.go b/client/model_get_user_presence_statuses_response.go index 5995b60..0a743f8 100644 --- a/client/model_get_user_presence_statuses_response.go +++ b/client/model_get_user_presence_statuses_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &GetUserPresenceStatusesResponse{} // GetUserPresenceStatusesResponse struct for GetUserPresenceStatusesResponse type GetUserPresenceStatusesResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` // Construct a type with a set of properties K of type T UserIdsOnline map[string]bool `json:"userIdsOnline"` } @@ -32,7 +32,7 @@ type _GetUserPresenceStatusesResponse GetUserPresenceStatusesResponse // 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 NewGetUserPresenceStatusesResponse(status ImportedAPIStatusSUCCESS, userIdsOnline map[string]bool) *GetUserPresenceStatusesResponse { +func NewGetUserPresenceStatusesResponse(status APIStatus, userIdsOnline map[string]bool) *GetUserPresenceStatusesResponse { this := GetUserPresenceStatusesResponse{} this.Status = status this.UserIdsOnline = userIdsOnline @@ -48,9 +48,9 @@ func NewGetUserPresenceStatusesResponseWithDefaults() *GetUserPresenceStatusesRe } // GetStatus returns the Status field value -func (o *GetUserPresenceStatusesResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *GetUserPresenceStatusesResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -59,7 +59,7 @@ func (o *GetUserPresenceStatusesResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *GetUserPresenceStatusesResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *GetUserPresenceStatusesResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -67,7 +67,7 @@ func (o *GetUserPresenceStatusesResponse) GetStatusOk() (*ImportedAPIStatusSUCCE } // SetStatus sets field value -func (o *GetUserPresenceStatusesResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *GetUserPresenceStatusesResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_header_state.go b/client/model_header_state.go index 5002f1f..5a082ad 100644 --- a/client/model_header_state.go +++ b/client/model_header_state.go @@ -21,7 +21,7 @@ var _ MappedNullable = &HeaderState{} // HeaderState struct for HeaderState type HeaderState struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` NotificationType map[string]interface{} `json:"NotificationType"` UserId string `json:"userId"` UserIdWS string `json:"userIdWS"` @@ -34,7 +34,7 @@ type _HeaderState HeaderState // 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 NewHeaderState(status ImportedAPIStatusSUCCESS, notificationType map[string]interface{}, userId string, userIdWS string, notificationCounts []NotificationAndCount) *HeaderState { +func NewHeaderState(status APIStatus, notificationType map[string]interface{}, userId string, userIdWS string, notificationCounts []NotificationAndCount) *HeaderState { this := HeaderState{} this.Status = status this.NotificationType = notificationType @@ -53,9 +53,9 @@ func NewHeaderStateWithDefaults() *HeaderState { } // GetStatus returns the Status field value -func (o *HeaderState) GetStatus() ImportedAPIStatusSUCCESS { +func (o *HeaderState) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -64,7 +64,7 @@ func (o *HeaderState) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *HeaderState) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *HeaderState) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -72,7 +72,7 @@ func (o *HeaderState) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { } // SetStatus sets field value -func (o *HeaderState) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *HeaderState) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_ignored_response.go b/client/model_ignored_response.go index 38f88e5..454379a 100644 --- a/client/model_ignored_response.go +++ b/client/model_ignored_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &IgnoredResponse{} // IgnoredResponse struct for IgnoredResponse type IgnoredResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` Note string `json:"note"` } @@ -31,7 +31,7 @@ type _IgnoredResponse IgnoredResponse // 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 NewIgnoredResponse(status ImportedAPIStatusSUCCESS, note string) *IgnoredResponse { +func NewIgnoredResponse(status APIStatus, note string) *IgnoredResponse { this := IgnoredResponse{} this.Status = status this.Note = note @@ -47,9 +47,9 @@ func NewIgnoredResponseWithDefaults() *IgnoredResponse { } // GetStatus returns the Status field value -func (o *IgnoredResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *IgnoredResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -58,7 +58,7 @@ func (o *IgnoredResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *IgnoredResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *IgnoredResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -66,7 +66,7 @@ func (o *IgnoredResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { } // SetStatus sets field value -func (o *IgnoredResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *IgnoredResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_imported_api_status_failed.go b/client/model_imported_api_status_failed.go deleted file mode 100644 index 57e82b7..0000000 --- a/client/model_imported_api_status_failed.go +++ /dev/null @@ -1,109 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - -// ImportedAPIStatusFAILED the model 'ImportedAPIStatusFAILED' -type ImportedAPIStatusFAILED string - -// List of ImportedAPIStatus.FAILED -const ( - IMPORTEDAPISTATUSFAILED_FAILED ImportedAPIStatusFAILED = "failed" -) - -// All allowed values of ImportedAPIStatusFAILED enum -var AllowedImportedAPIStatusFAILEDEnumValues = []ImportedAPIStatusFAILED{ - "failed", -} - -func (v *ImportedAPIStatusFAILED) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ImportedAPIStatusFAILED(value) - for _, existing := range AllowedImportedAPIStatusFAILEDEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ImportedAPIStatusFAILED", value) -} - -// NewImportedAPIStatusFAILEDFromValue returns a pointer to a valid ImportedAPIStatusFAILED -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewImportedAPIStatusFAILEDFromValue(v string) (*ImportedAPIStatusFAILED, error) { - ev := ImportedAPIStatusFAILED(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ImportedAPIStatusFAILED: valid values are %v", v, AllowedImportedAPIStatusFAILEDEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ImportedAPIStatusFAILED) IsValid() bool { - for _, existing := range AllowedImportedAPIStatusFAILEDEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ImportedAPIStatus.FAILED value -func (v ImportedAPIStatusFAILED) Ptr() *ImportedAPIStatusFAILED { - return &v -} - -type NullableImportedAPIStatusFAILED struct { - value *ImportedAPIStatusFAILED - isSet bool -} - -func (v NullableImportedAPIStatusFAILED) Get() *ImportedAPIStatusFAILED { - return v.value -} - -func (v *NullableImportedAPIStatusFAILED) Set(val *ImportedAPIStatusFAILED) { - v.value = val - v.isSet = true -} - -func (v NullableImportedAPIStatusFAILED) IsSet() bool { - return v.isSet -} - -func (v *NullableImportedAPIStatusFAILED) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableImportedAPIStatusFAILED(val *ImportedAPIStatusFAILED) *NullableImportedAPIStatusFAILED { - return &NullableImportedAPIStatusFAILED{value: val, isSet: true} -} - -func (v NullableImportedAPIStatusFAILED) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableImportedAPIStatusFAILED) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - diff --git a/client/model_imported_api_status_success.go b/client/model_imported_api_status_success.go deleted file mode 100644 index 0ce129f..0000000 --- a/client/model_imported_api_status_success.go +++ /dev/null @@ -1,109 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - -// ImportedAPIStatusSUCCESS the model 'ImportedAPIStatusSUCCESS' -type ImportedAPIStatusSUCCESS string - -// List of ImportedAPIStatus.SUCCESS -const ( - IMPORTEDAPISTATUSSUCCESS_SUCCESS ImportedAPIStatusSUCCESS = "success" -) - -// All allowed values of ImportedAPIStatusSUCCESS enum -var AllowedImportedAPIStatusSUCCESSEnumValues = []ImportedAPIStatusSUCCESS{ - "success", -} - -func (v *ImportedAPIStatusSUCCESS) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ImportedAPIStatusSUCCESS(value) - for _, existing := range AllowedImportedAPIStatusSUCCESSEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ImportedAPIStatusSUCCESS", value) -} - -// NewImportedAPIStatusSUCCESSFromValue returns a pointer to a valid ImportedAPIStatusSUCCESS -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewImportedAPIStatusSUCCESSFromValue(v string) (*ImportedAPIStatusSUCCESS, error) { - ev := ImportedAPIStatusSUCCESS(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ImportedAPIStatusSUCCESS: valid values are %v", v, AllowedImportedAPIStatusSUCCESSEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ImportedAPIStatusSUCCESS) IsValid() bool { - for _, existing := range AllowedImportedAPIStatusSUCCESSEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to ImportedAPIStatus.SUCCESS value -func (v ImportedAPIStatusSUCCESS) Ptr() *ImportedAPIStatusSUCCESS { - return &v -} - -type NullableImportedAPIStatusSUCCESS struct { - value *ImportedAPIStatusSUCCESS - isSet bool -} - -func (v NullableImportedAPIStatusSUCCESS) Get() *ImportedAPIStatusSUCCESS { - return v.value -} - -func (v *NullableImportedAPIStatusSUCCESS) Set(val *ImportedAPIStatusSUCCESS) { - v.value = val - v.isSet = true -} - -func (v NullableImportedAPIStatusSUCCESS) IsSet() bool { - return v.isSet -} - -func (v *NullableImportedAPIStatusSUCCESS) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableImportedAPIStatusSUCCESS(val *ImportedAPIStatusSUCCESS) *NullableImportedAPIStatusSUCCESS { - return &NullableImportedAPIStatusSUCCESS{value: val, isSet: true} -} - -func (v NullableImportedAPIStatusSUCCESS) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableImportedAPIStatusSUCCESS) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - diff --git a/client/model_patch_page_api_response.go b/client/model_patch_page_api_response.go index 95282de..8f86b72 100644 --- a/client/model_patch_page_api_response.go +++ b/client/model_patch_page_api_response.go @@ -23,6 +23,7 @@ var _ MappedNullable = &PatchPageAPIResponse{} type PatchPageAPIResponse struct { Reason *string `json:"reason,omitempty"` Code *string `json:"code,omitempty"` + CommentsUpdated *int64 `json:"commentsUpdated,omitempty"` Page *APIPage `json:"page,omitempty"` Status string `json:"status"` } @@ -111,6 +112,38 @@ func (o *PatchPageAPIResponse) SetCode(v string) { o.Code = &v } +// GetCommentsUpdated returns the CommentsUpdated field value if set, zero value otherwise. +func (o *PatchPageAPIResponse) GetCommentsUpdated() int64 { + if o == nil || IsNil(o.CommentsUpdated) { + var ret int64 + return ret + } + return *o.CommentsUpdated +} + +// GetCommentsUpdatedOk returns a tuple with the CommentsUpdated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchPageAPIResponse) GetCommentsUpdatedOk() (*int64, bool) { + if o == nil || IsNil(o.CommentsUpdated) { + return nil, false + } + return o.CommentsUpdated, true +} + +// HasCommentsUpdated returns a boolean if a field has been set. +func (o *PatchPageAPIResponse) HasCommentsUpdated() bool { + if o != nil && !IsNil(o.CommentsUpdated) { + return true + } + + return false +} + +// SetCommentsUpdated gets a reference to the given int64 and assigns it to the CommentsUpdated field. +func (o *PatchPageAPIResponse) SetCommentsUpdated(v int64) { + o.CommentsUpdated = &v +} + // GetPage returns the Page field value if set, zero value otherwise. func (o *PatchPageAPIResponse) GetPage() APIPage { if o == nil || IsNil(o.Page) { @@ -183,6 +216,9 @@ func (o PatchPageAPIResponse) ToMap() (map[string]interface{}, error) { if !IsNil(o.Code) { toSerialize["code"] = o.Code } + if !IsNil(o.CommentsUpdated) { + toSerialize["commentsUpdated"] = o.CommentsUpdated + } if !IsNil(o.Page) { toSerialize["page"] = o.Page } diff --git a/client/model_pick_api_comment_updatable_comment_fields_.go b/client/model_pick_api_comment_updatable_comment_fields_.go deleted file mode 100644 index 3f3fb05..0000000 --- a/client/model_pick_api_comment_updatable_comment_fields_.go +++ /dev/null @@ -1,1471 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "time" - "bytes" - "fmt" -) - -// checks if the PickAPICommentUpdatableCommentFields type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PickAPICommentUpdatableCommentFields{} - -// PickAPICommentUpdatableCommentFields From T, pick a set of properties whose keys are in the union K -type PickAPICommentUpdatableCommentFields struct { - Date time.Time `json:"date"` - UrlId string `json:"urlId"` - UrlIdRaw *string `json:"urlIdRaw,omitempty"` - Url string `json:"url"` - PageTitle *string `json:"pageTitle,omitempty"` - UserId *string `json:"userId,omitempty"` - CommenterEmail *string `json:"commenterEmail,omitempty"` - CommenterName string `json:"commenterName"` - CommenterLink *string `json:"commenterLink,omitempty"` - Comment string `json:"comment"` - CommentHTML string `json:"commentHTML"` - ParentId *string `json:"parentId,omitempty"` - LocalDateString *string `json:"localDateString,omitempty"` - LocalDateHours *int32 `json:"localDateHours,omitempty"` - Votes *int32 `json:"votes,omitempty"` - VotesUp *int32 `json:"votesUp,omitempty"` - VotesDown *int32 `json:"votesDown,omitempty"` - ExpireAt *time.Time `json:"expireAt,omitempty"` - Verified bool `json:"verified"` - VerifiedDate *time.Time `json:"verifiedDate,omitempty"` - NotificationSentForParent *bool `json:"notificationSentForParent,omitempty"` - NotificationSentForParentTenant *bool `json:"notificationSentForParentTenant,omitempty"` - Reviewed *bool `json:"reviewed,omitempty"` - ExternalId *string `json:"externalId,omitempty"` - ExternalParentId *string `json:"externalParentId,omitempty"` - AvatarSrc *string `json:"avatarSrc,omitempty"` - IsSpam *bool `json:"isSpam,omitempty"` - Approved bool `json:"approved"` - IsDeleted *bool `json:"isDeleted,omitempty"` - IsDeletedUser *bool `json:"isDeletedUser,omitempty"` - IsByAdmin *bool `json:"isByAdmin,omitempty"` - IsByModerator *bool `json:"isByModerator,omitempty"` - IsPinned *bool `json:"isPinned,omitempty"` - IsLocked *bool `json:"isLocked,omitempty"` - FlagCount *int32 `json:"flagCount,omitempty"` - DisplayLabel *string `json:"displayLabel,omitempty"` - Meta *PickFCommentAPICommentFieldsKeysMeta `json:"meta,omitempty"` - ModerationGroupIds []string `json:"moderationGroupIds,omitempty"` - FeedbackIds []string `json:"feedbackIds,omitempty"` -} - -type _PickAPICommentUpdatableCommentFields PickAPICommentUpdatableCommentFields - -// NewPickAPICommentUpdatableCommentFields instantiates a new PickAPICommentUpdatableCommentFields 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 NewPickAPICommentUpdatableCommentFields(date time.Time, urlId string, url string, commenterName string, comment string, commentHTML string, verified bool, approved bool) *PickAPICommentUpdatableCommentFields { - this := PickAPICommentUpdatableCommentFields{} - this.Date = date - this.UrlId = urlId - this.Url = url - this.CommenterName = commenterName - this.Comment = comment - this.CommentHTML = commentHTML - this.Verified = verified - this.Approved = approved - return &this -} - -// NewPickAPICommentUpdatableCommentFieldsWithDefaults instantiates a new PickAPICommentUpdatableCommentFields 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 NewPickAPICommentUpdatableCommentFieldsWithDefaults() *PickAPICommentUpdatableCommentFields { - this := PickAPICommentUpdatableCommentFields{} - return &this -} - -// GetDate returns the Date field value -func (o *PickAPICommentUpdatableCommentFields) GetDate() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.Date -} - -// GetDateOk returns a tuple with the Date field value -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetDateOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.Date, true -} - -// SetDate sets field value -func (o *PickAPICommentUpdatableCommentFields) SetDate(v time.Time) { - o.Date = v -} - -// GetUrlId returns the UrlId field value -func (o *PickAPICommentUpdatableCommentFields) GetUrlId() string { - if o == nil { - var ret string - return ret - } - - return o.UrlId -} - -// GetUrlIdOk returns a tuple with the UrlId field value -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetUrlIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.UrlId, true -} - -// SetUrlId sets field value -func (o *PickAPICommentUpdatableCommentFields) SetUrlId(v string) { - o.UrlId = v -} - -// GetUrlIdRaw returns the UrlIdRaw field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetUrlIdRaw() string { - if o == nil || IsNil(o.UrlIdRaw) { - var ret string - return ret - } - return *o.UrlIdRaw -} - -// GetUrlIdRawOk returns a tuple with the UrlIdRaw field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetUrlIdRawOk() (*string, bool) { - if o == nil || IsNil(o.UrlIdRaw) { - return nil, false - } - return o.UrlIdRaw, true -} - -// HasUrlIdRaw returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasUrlIdRaw() bool { - if o != nil && !IsNil(o.UrlIdRaw) { - return true - } - - return false -} - -// SetUrlIdRaw gets a reference to the given string and assigns it to the UrlIdRaw field. -func (o *PickAPICommentUpdatableCommentFields) SetUrlIdRaw(v string) { - o.UrlIdRaw = &v -} - -// GetUrl returns the Url field value -func (o *PickAPICommentUpdatableCommentFields) GetUrl() string { - if o == nil { - var ret string - return ret - } - - return o.Url -} - -// GetUrlOk returns a tuple with the Url field value -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *PickAPICommentUpdatableCommentFields) SetUrl(v string) { - o.Url = v -} - -// GetPageTitle returns the PageTitle field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetPageTitle() string { - if o == nil || IsNil(o.PageTitle) { - var ret string - return ret - } - return *o.PageTitle -} - -// GetPageTitleOk returns a tuple with the PageTitle field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetPageTitleOk() (*string, bool) { - if o == nil || IsNil(o.PageTitle) { - return nil, false - } - return o.PageTitle, true -} - -// HasPageTitle returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasPageTitle() bool { - if o != nil && !IsNil(o.PageTitle) { - return true - } - - return false -} - -// SetPageTitle gets a reference to the given string and assigns it to the PageTitle field. -func (o *PickAPICommentUpdatableCommentFields) SetPageTitle(v string) { - o.PageTitle = &v -} - -// GetUserId returns the UserId field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetUserId() string { - if o == nil || IsNil(o.UserId) { - var ret string - return ret - } - return *o.UserId -} - -// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetUserIdOk() (*string, bool) { - if o == nil || IsNil(o.UserId) { - return nil, false - } - return o.UserId, true -} - -// HasUserId returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasUserId() bool { - if o != nil && !IsNil(o.UserId) { - return true - } - - return false -} - -// SetUserId gets a reference to the given string and assigns it to the UserId field. -func (o *PickAPICommentUpdatableCommentFields) SetUserId(v string) { - o.UserId = &v -} - -// GetCommenterEmail returns the CommenterEmail field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetCommenterEmail() string { - if o == nil || IsNil(o.CommenterEmail) { - var ret string - return ret - } - return *o.CommenterEmail -} - -// GetCommenterEmailOk returns a tuple with the CommenterEmail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetCommenterEmailOk() (*string, bool) { - if o == nil || IsNil(o.CommenterEmail) { - return nil, false - } - return o.CommenterEmail, true -} - -// HasCommenterEmail returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasCommenterEmail() bool { - if o != nil && !IsNil(o.CommenterEmail) { - return true - } - - return false -} - -// SetCommenterEmail gets a reference to the given string and assigns it to the CommenterEmail field. -func (o *PickAPICommentUpdatableCommentFields) SetCommenterEmail(v string) { - o.CommenterEmail = &v -} - -// GetCommenterName returns the CommenterName field value -func (o *PickAPICommentUpdatableCommentFields) GetCommenterName() string { - if o == nil { - var ret string - return ret - } - - return o.CommenterName -} - -// GetCommenterNameOk returns a tuple with the CommenterName field value -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetCommenterNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommenterName, true -} - -// SetCommenterName sets field value -func (o *PickAPICommentUpdatableCommentFields) SetCommenterName(v string) { - o.CommenterName = v -} - -// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetCommenterLink() string { - if o == nil || IsNil(o.CommenterLink) { - var ret string - return ret - } - return *o.CommenterLink -} - -// GetCommenterLinkOk returns a tuple with the CommenterLink field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetCommenterLinkOk() (*string, bool) { - if o == nil || IsNil(o.CommenterLink) { - return nil, false - } - return o.CommenterLink, true -} - -// HasCommenterLink returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasCommenterLink() bool { - if o != nil && !IsNil(o.CommenterLink) { - return true - } - - return false -} - -// SetCommenterLink gets a reference to the given string and assigns it to the CommenterLink field. -func (o *PickAPICommentUpdatableCommentFields) SetCommenterLink(v string) { - o.CommenterLink = &v -} - -// GetComment returns the Comment field value -func (o *PickAPICommentUpdatableCommentFields) GetComment() string { - if o == nil { - var ret string - return ret - } - - return o.Comment -} - -// GetCommentOk returns a tuple with the Comment field value -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetCommentOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Comment, true -} - -// SetComment sets field value -func (o *PickAPICommentUpdatableCommentFields) SetComment(v string) { - o.Comment = v -} - -// GetCommentHTML returns the CommentHTML field value -func (o *PickAPICommentUpdatableCommentFields) GetCommentHTML() string { - if o == nil { - var ret string - return ret - } - - return o.CommentHTML -} - -// GetCommentHTMLOk returns a tuple with the CommentHTML field value -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetCommentHTMLOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommentHTML, true -} - -// SetCommentHTML sets field value -func (o *PickAPICommentUpdatableCommentFields) SetCommentHTML(v string) { - o.CommentHTML = v -} - -// GetParentId returns the ParentId field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetParentId() string { - if o == nil || IsNil(o.ParentId) { - var ret string - return ret - } - return *o.ParentId -} - -// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetParentIdOk() (*string, bool) { - if o == nil || IsNil(o.ParentId) { - return nil, false - } - return o.ParentId, true -} - -// HasParentId returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasParentId() bool { - if o != nil && !IsNil(o.ParentId) { - return true - } - - return false -} - -// SetParentId gets a reference to the given string and assigns it to the ParentId field. -func (o *PickAPICommentUpdatableCommentFields) SetParentId(v string) { - o.ParentId = &v -} - -// GetLocalDateString returns the LocalDateString field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetLocalDateString() string { - if o == nil || IsNil(o.LocalDateString) { - var ret string - return ret - } - return *o.LocalDateString -} - -// GetLocalDateStringOk returns a tuple with the LocalDateString field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetLocalDateStringOk() (*string, bool) { - if o == nil || IsNil(o.LocalDateString) { - return nil, false - } - return o.LocalDateString, true -} - -// HasLocalDateString returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasLocalDateString() bool { - if o != nil && !IsNil(o.LocalDateString) { - return true - } - - return false -} - -// SetLocalDateString gets a reference to the given string and assigns it to the LocalDateString field. -func (o *PickAPICommentUpdatableCommentFields) SetLocalDateString(v string) { - o.LocalDateString = &v -} - -// GetLocalDateHours returns the LocalDateHours field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetLocalDateHours() int32 { - if o == nil || IsNil(o.LocalDateHours) { - var ret int32 - return ret - } - return *o.LocalDateHours -} - -// GetLocalDateHoursOk returns a tuple with the LocalDateHours field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetLocalDateHoursOk() (*int32, bool) { - if o == nil || IsNil(o.LocalDateHours) { - return nil, false - } - return o.LocalDateHours, true -} - -// HasLocalDateHours returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasLocalDateHours() bool { - if o != nil && !IsNil(o.LocalDateHours) { - return true - } - - return false -} - -// SetLocalDateHours gets a reference to the given int32 and assigns it to the LocalDateHours field. -func (o *PickAPICommentUpdatableCommentFields) SetLocalDateHours(v int32) { - o.LocalDateHours = &v -} - -// GetVotes returns the Votes field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetVotes() int32 { - if o == nil || IsNil(o.Votes) { - var ret int32 - return ret - } - return *o.Votes -} - -// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetVotesOk() (*int32, bool) { - if o == nil || IsNil(o.Votes) { - return nil, false - } - return o.Votes, true -} - -// HasVotes returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasVotes() bool { - if o != nil && !IsNil(o.Votes) { - return true - } - - return false -} - -// SetVotes gets a reference to the given int32 and assigns it to the Votes field. -func (o *PickAPICommentUpdatableCommentFields) SetVotes(v int32) { - o.Votes = &v -} - -// GetVotesUp returns the VotesUp field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetVotesUp() int32 { - if o == nil || IsNil(o.VotesUp) { - var ret int32 - return ret - } - return *o.VotesUp -} - -// GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetVotesUpOk() (*int32, bool) { - if o == nil || IsNil(o.VotesUp) { - return nil, false - } - return o.VotesUp, true -} - -// HasVotesUp returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasVotesUp() bool { - if o != nil && !IsNil(o.VotesUp) { - return true - } - - return false -} - -// SetVotesUp gets a reference to the given int32 and assigns it to the VotesUp field. -func (o *PickAPICommentUpdatableCommentFields) SetVotesUp(v int32) { - o.VotesUp = &v -} - -// GetVotesDown returns the VotesDown field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetVotesDown() int32 { - if o == nil || IsNil(o.VotesDown) { - var ret int32 - return ret - } - return *o.VotesDown -} - -// GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetVotesDownOk() (*int32, bool) { - if o == nil || IsNil(o.VotesDown) { - return nil, false - } - return o.VotesDown, true -} - -// HasVotesDown returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasVotesDown() bool { - if o != nil && !IsNil(o.VotesDown) { - return true - } - - return false -} - -// SetVotesDown gets a reference to the given int32 and assigns it to the VotesDown field. -func (o *PickAPICommentUpdatableCommentFields) SetVotesDown(v int32) { - o.VotesDown = &v -} - -// GetExpireAt returns the ExpireAt field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetExpireAt() time.Time { - if o == nil || IsNil(o.ExpireAt) { - var ret time.Time - return ret - } - return *o.ExpireAt -} - -// GetExpireAtOk returns a tuple with the ExpireAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetExpireAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.ExpireAt) { - return nil, false - } - return o.ExpireAt, true -} - -// HasExpireAt returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasExpireAt() bool { - if o != nil && !IsNil(o.ExpireAt) { - return true - } - - return false -} - -// SetExpireAt gets a reference to the given time.Time and assigns it to the ExpireAt field. -func (o *PickAPICommentUpdatableCommentFields) SetExpireAt(v time.Time) { - o.ExpireAt = &v -} - -// GetVerified returns the Verified field value -func (o *PickAPICommentUpdatableCommentFields) GetVerified() bool { - if o == nil { - var ret bool - return ret - } - - return o.Verified -} - -// GetVerifiedOk returns a tuple with the Verified field value -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetVerifiedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Verified, true -} - -// SetVerified sets field value -func (o *PickAPICommentUpdatableCommentFields) SetVerified(v bool) { - o.Verified = v -} - -// GetVerifiedDate returns the VerifiedDate field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetVerifiedDate() time.Time { - if o == nil || IsNil(o.VerifiedDate) { - var ret time.Time - return ret - } - return *o.VerifiedDate -} - -// GetVerifiedDateOk returns a tuple with the VerifiedDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetVerifiedDateOk() (*time.Time, bool) { - if o == nil || IsNil(o.VerifiedDate) { - return nil, false - } - return o.VerifiedDate, true -} - -// HasVerifiedDate returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasVerifiedDate() bool { - if o != nil && !IsNil(o.VerifiedDate) { - return true - } - - return false -} - -// SetVerifiedDate gets a reference to the given time.Time and assigns it to the VerifiedDate field. -func (o *PickAPICommentUpdatableCommentFields) SetVerifiedDate(v time.Time) { - o.VerifiedDate = &v -} - -// GetNotificationSentForParent returns the NotificationSentForParent field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetNotificationSentForParent() bool { - if o == nil || IsNil(o.NotificationSentForParent) { - var ret bool - return ret - } - return *o.NotificationSentForParent -} - -// GetNotificationSentForParentOk returns a tuple with the NotificationSentForParent field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetNotificationSentForParentOk() (*bool, bool) { - if o == nil || IsNil(o.NotificationSentForParent) { - return nil, false - } - return o.NotificationSentForParent, true -} - -// HasNotificationSentForParent returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasNotificationSentForParent() bool { - if o != nil && !IsNil(o.NotificationSentForParent) { - return true - } - - return false -} - -// SetNotificationSentForParent gets a reference to the given bool and assigns it to the NotificationSentForParent field. -func (o *PickAPICommentUpdatableCommentFields) SetNotificationSentForParent(v bool) { - o.NotificationSentForParent = &v -} - -// GetNotificationSentForParentTenant returns the NotificationSentForParentTenant field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetNotificationSentForParentTenant() bool { - if o == nil || IsNil(o.NotificationSentForParentTenant) { - var ret bool - return ret - } - return *o.NotificationSentForParentTenant -} - -// GetNotificationSentForParentTenantOk returns a tuple with the NotificationSentForParentTenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetNotificationSentForParentTenantOk() (*bool, bool) { - if o == nil || IsNil(o.NotificationSentForParentTenant) { - return nil, false - } - return o.NotificationSentForParentTenant, true -} - -// HasNotificationSentForParentTenant returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasNotificationSentForParentTenant() bool { - if o != nil && !IsNil(o.NotificationSentForParentTenant) { - return true - } - - return false -} - -// SetNotificationSentForParentTenant gets a reference to the given bool and assigns it to the NotificationSentForParentTenant field. -func (o *PickAPICommentUpdatableCommentFields) SetNotificationSentForParentTenant(v bool) { - o.NotificationSentForParentTenant = &v -} - -// GetReviewed returns the Reviewed field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetReviewed() bool { - if o == nil || IsNil(o.Reviewed) { - var ret bool - return ret - } - return *o.Reviewed -} - -// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetReviewedOk() (*bool, bool) { - if o == nil || IsNil(o.Reviewed) { - return nil, false - } - return o.Reviewed, true -} - -// HasReviewed returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasReviewed() bool { - if o != nil && !IsNil(o.Reviewed) { - return true - } - - return false -} - -// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. -func (o *PickAPICommentUpdatableCommentFields) SetReviewed(v bool) { - o.Reviewed = &v -} - -// GetExternalId returns the ExternalId field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetExternalId() string { - if o == nil || IsNil(o.ExternalId) { - var ret string - return ret - } - return *o.ExternalId -} - -// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetExternalIdOk() (*string, bool) { - if o == nil || IsNil(o.ExternalId) { - return nil, false - } - return o.ExternalId, true -} - -// HasExternalId returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasExternalId() bool { - if o != nil && !IsNil(o.ExternalId) { - return true - } - - return false -} - -// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. -func (o *PickAPICommentUpdatableCommentFields) SetExternalId(v string) { - o.ExternalId = &v -} - -// GetExternalParentId returns the ExternalParentId field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetExternalParentId() string { - if o == nil || IsNil(o.ExternalParentId) { - var ret string - return ret - } - return *o.ExternalParentId -} - -// GetExternalParentIdOk returns a tuple with the ExternalParentId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetExternalParentIdOk() (*string, bool) { - if o == nil || IsNil(o.ExternalParentId) { - return nil, false - } - return o.ExternalParentId, true -} - -// HasExternalParentId returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasExternalParentId() bool { - if o != nil && !IsNil(o.ExternalParentId) { - return true - } - - return false -} - -// SetExternalParentId gets a reference to the given string and assigns it to the ExternalParentId field. -func (o *PickAPICommentUpdatableCommentFields) SetExternalParentId(v string) { - o.ExternalParentId = &v -} - -// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetAvatarSrc() string { - if o == nil || IsNil(o.AvatarSrc) { - var ret string - return ret - } - return *o.AvatarSrc -} - -// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetAvatarSrcOk() (*string, bool) { - if o == nil || IsNil(o.AvatarSrc) { - return nil, false - } - return o.AvatarSrc, true -} - -// HasAvatarSrc returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasAvatarSrc() bool { - if o != nil && !IsNil(o.AvatarSrc) { - return true - } - - return false -} - -// SetAvatarSrc gets a reference to the given string and assigns it to the AvatarSrc field. -func (o *PickAPICommentUpdatableCommentFields) SetAvatarSrc(v string) { - o.AvatarSrc = &v -} - -// GetIsSpam returns the IsSpam field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetIsSpam() bool { - if o == nil || IsNil(o.IsSpam) { - var ret bool - return ret - } - return *o.IsSpam -} - -// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetIsSpamOk() (*bool, bool) { - if o == nil || IsNil(o.IsSpam) { - return nil, false - } - return o.IsSpam, true -} - -// HasIsSpam returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasIsSpam() bool { - if o != nil && !IsNil(o.IsSpam) { - return true - } - - return false -} - -// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. -func (o *PickAPICommentUpdatableCommentFields) SetIsSpam(v bool) { - o.IsSpam = &v -} - -// GetApproved returns the Approved field value -func (o *PickAPICommentUpdatableCommentFields) GetApproved() bool { - if o == nil { - var ret bool - return ret - } - - return o.Approved -} - -// GetApprovedOk returns a tuple with the Approved field value -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetApprovedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Approved, true -} - -// SetApproved sets field value -func (o *PickAPICommentUpdatableCommentFields) SetApproved(v bool) { - o.Approved = v -} - -// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetIsDeleted() bool { - if o == nil || IsNil(o.IsDeleted) { - var ret bool - return ret - } - return *o.IsDeleted -} - -// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetIsDeletedOk() (*bool, bool) { - if o == nil || IsNil(o.IsDeleted) { - return nil, false - } - return o.IsDeleted, true -} - -// HasIsDeleted returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasIsDeleted() bool { - if o != nil && !IsNil(o.IsDeleted) { - return true - } - - return false -} - -// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. -func (o *PickAPICommentUpdatableCommentFields) SetIsDeleted(v bool) { - o.IsDeleted = &v -} - -// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetIsDeletedUser() bool { - if o == nil || IsNil(o.IsDeletedUser) { - var ret bool - return ret - } - return *o.IsDeletedUser -} - -// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetIsDeletedUserOk() (*bool, bool) { - if o == nil || IsNil(o.IsDeletedUser) { - return nil, false - } - return o.IsDeletedUser, true -} - -// HasIsDeletedUser returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasIsDeletedUser() bool { - if o != nil && !IsNil(o.IsDeletedUser) { - return true - } - - return false -} - -// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. -func (o *PickAPICommentUpdatableCommentFields) SetIsDeletedUser(v bool) { - o.IsDeletedUser = &v -} - -// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetIsByAdmin() bool { - if o == nil || IsNil(o.IsByAdmin) { - var ret bool - return ret - } - return *o.IsByAdmin -} - -// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetIsByAdminOk() (*bool, bool) { - if o == nil || IsNil(o.IsByAdmin) { - return nil, false - } - return o.IsByAdmin, true -} - -// HasIsByAdmin returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasIsByAdmin() bool { - if o != nil && !IsNil(o.IsByAdmin) { - return true - } - - return false -} - -// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. -func (o *PickAPICommentUpdatableCommentFields) SetIsByAdmin(v bool) { - o.IsByAdmin = &v -} - -// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetIsByModerator() bool { - if o == nil || IsNil(o.IsByModerator) { - var ret bool - return ret - } - return *o.IsByModerator -} - -// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetIsByModeratorOk() (*bool, bool) { - if o == nil || IsNil(o.IsByModerator) { - return nil, false - } - return o.IsByModerator, true -} - -// HasIsByModerator returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasIsByModerator() bool { - if o != nil && !IsNil(o.IsByModerator) { - return true - } - - return false -} - -// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. -func (o *PickAPICommentUpdatableCommentFields) SetIsByModerator(v bool) { - o.IsByModerator = &v -} - -// GetIsPinned returns the IsPinned field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetIsPinned() bool { - if o == nil || IsNil(o.IsPinned) { - var ret bool - return ret - } - return *o.IsPinned -} - -// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetIsPinnedOk() (*bool, bool) { - if o == nil || IsNil(o.IsPinned) { - return nil, false - } - return o.IsPinned, true -} - -// HasIsPinned returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasIsPinned() bool { - if o != nil && !IsNil(o.IsPinned) { - return true - } - - return false -} - -// SetIsPinned gets a reference to the given bool and assigns it to the IsPinned field. -func (o *PickAPICommentUpdatableCommentFields) SetIsPinned(v bool) { - o.IsPinned = &v -} - -// GetIsLocked returns the IsLocked field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetIsLocked() bool { - if o == nil || IsNil(o.IsLocked) { - var ret bool - return ret - } - return *o.IsLocked -} - -// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetIsLockedOk() (*bool, bool) { - if o == nil || IsNil(o.IsLocked) { - return nil, false - } - return o.IsLocked, true -} - -// HasIsLocked returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasIsLocked() bool { - if o != nil && !IsNil(o.IsLocked) { - return true - } - - return false -} - -// SetIsLocked gets a reference to the given bool and assigns it to the IsLocked field. -func (o *PickAPICommentUpdatableCommentFields) SetIsLocked(v bool) { - o.IsLocked = &v -} - -// GetFlagCount returns the FlagCount field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetFlagCount() int32 { - if o == nil || IsNil(o.FlagCount) { - var ret int32 - return ret - } - return *o.FlagCount -} - -// GetFlagCountOk returns a tuple with the FlagCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetFlagCountOk() (*int32, bool) { - if o == nil || IsNil(o.FlagCount) { - return nil, false - } - return o.FlagCount, true -} - -// HasFlagCount returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasFlagCount() bool { - if o != nil && !IsNil(o.FlagCount) { - return true - } - - return false -} - -// SetFlagCount gets a reference to the given int32 and assigns it to the FlagCount field. -func (o *PickAPICommentUpdatableCommentFields) SetFlagCount(v int32) { - o.FlagCount = &v -} - -// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetDisplayLabel() string { - if o == nil || IsNil(o.DisplayLabel) { - var ret string - return ret - } - return *o.DisplayLabel -} - -// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetDisplayLabelOk() (*string, bool) { - if o == nil || IsNil(o.DisplayLabel) { - return nil, false - } - return o.DisplayLabel, true -} - -// HasDisplayLabel returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasDisplayLabel() bool { - if o != nil && !IsNil(o.DisplayLabel) { - return true - } - - return false -} - -// SetDisplayLabel gets a reference to the given string and assigns it to the DisplayLabel field. -func (o *PickAPICommentUpdatableCommentFields) SetDisplayLabel(v string) { - o.DisplayLabel = &v -} - -// GetMeta returns the Meta field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetMeta() PickFCommentAPICommentFieldsKeysMeta { - if o == nil || IsNil(o.Meta) { - var ret PickFCommentAPICommentFieldsKeysMeta - return ret - } - return *o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetMetaOk() (*PickFCommentAPICommentFieldsKeysMeta, bool) { - if o == nil || IsNil(o.Meta) { - return nil, false - } - return o.Meta, true -} - -// HasMeta returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasMeta() bool { - if o != nil && !IsNil(o.Meta) { - return true - } - - return false -} - -// SetMeta gets a reference to the given PickFCommentAPICommentFieldsKeysMeta and assigns it to the Meta field. -func (o *PickAPICommentUpdatableCommentFields) SetMeta(v PickFCommentAPICommentFieldsKeysMeta) { - o.Meta = &v -} - -// GetModerationGroupIds returns the ModerationGroupIds field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetModerationGroupIds() []string { - if o == nil || IsNil(o.ModerationGroupIds) { - var ret []string - return ret - } - return o.ModerationGroupIds -} - -// GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetModerationGroupIdsOk() ([]string, bool) { - if o == nil || IsNil(o.ModerationGroupIds) { - return nil, false - } - return o.ModerationGroupIds, true -} - -// HasModerationGroupIds returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasModerationGroupIds() bool { - if o != nil && !IsNil(o.ModerationGroupIds) { - return true - } - - return false -} - -// SetModerationGroupIds gets a reference to the given []string and assigns it to the ModerationGroupIds field. -func (o *PickAPICommentUpdatableCommentFields) SetModerationGroupIds(v []string) { - o.ModerationGroupIds = v -} - -// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. -func (o *PickAPICommentUpdatableCommentFields) GetFeedbackIds() []string { - if o == nil || IsNil(o.FeedbackIds) { - var ret []string - return ret - } - return o.FeedbackIds -} - -// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickAPICommentUpdatableCommentFields) GetFeedbackIdsOk() ([]string, bool) { - if o == nil || IsNil(o.FeedbackIds) { - return nil, false - } - return o.FeedbackIds, true -} - -// HasFeedbackIds returns a boolean if a field has been set. -func (o *PickAPICommentUpdatableCommentFields) HasFeedbackIds() bool { - if o != nil && !IsNil(o.FeedbackIds) { - return true - } - - return false -} - -// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. -func (o *PickAPICommentUpdatableCommentFields) SetFeedbackIds(v []string) { - o.FeedbackIds = v -} - -func (o PickAPICommentUpdatableCommentFields) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PickAPICommentUpdatableCommentFields) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["date"] = o.Date - toSerialize["urlId"] = o.UrlId - if !IsNil(o.UrlIdRaw) { - toSerialize["urlIdRaw"] = o.UrlIdRaw - } - toSerialize["url"] = o.Url - if !IsNil(o.PageTitle) { - toSerialize["pageTitle"] = o.PageTitle - } - if !IsNil(o.UserId) { - toSerialize["userId"] = o.UserId - } - if !IsNil(o.CommenterEmail) { - toSerialize["commenterEmail"] = o.CommenterEmail - } - toSerialize["commenterName"] = o.CommenterName - if !IsNil(o.CommenterLink) { - toSerialize["commenterLink"] = o.CommenterLink - } - toSerialize["comment"] = o.Comment - toSerialize["commentHTML"] = o.CommentHTML - if !IsNil(o.ParentId) { - toSerialize["parentId"] = o.ParentId - } - if !IsNil(o.LocalDateString) { - toSerialize["localDateString"] = o.LocalDateString - } - if !IsNil(o.LocalDateHours) { - toSerialize["localDateHours"] = o.LocalDateHours - } - if !IsNil(o.Votes) { - toSerialize["votes"] = o.Votes - } - if !IsNil(o.VotesUp) { - toSerialize["votesUp"] = o.VotesUp - } - if !IsNil(o.VotesDown) { - toSerialize["votesDown"] = o.VotesDown - } - if !IsNil(o.ExpireAt) { - toSerialize["expireAt"] = o.ExpireAt - } - toSerialize["verified"] = o.Verified - if !IsNil(o.VerifiedDate) { - toSerialize["verifiedDate"] = o.VerifiedDate - } - if !IsNil(o.NotificationSentForParent) { - toSerialize["notificationSentForParent"] = o.NotificationSentForParent - } - if !IsNil(o.NotificationSentForParentTenant) { - toSerialize["notificationSentForParentTenant"] = o.NotificationSentForParentTenant - } - if !IsNil(o.Reviewed) { - toSerialize["reviewed"] = o.Reviewed - } - if !IsNil(o.ExternalId) { - toSerialize["externalId"] = o.ExternalId - } - if !IsNil(o.ExternalParentId) { - toSerialize["externalParentId"] = o.ExternalParentId - } - if !IsNil(o.AvatarSrc) { - toSerialize["avatarSrc"] = o.AvatarSrc - } - if !IsNil(o.IsSpam) { - toSerialize["isSpam"] = o.IsSpam - } - toSerialize["approved"] = o.Approved - if !IsNil(o.IsDeleted) { - toSerialize["isDeleted"] = o.IsDeleted - } - if !IsNil(o.IsDeletedUser) { - toSerialize["isDeletedUser"] = o.IsDeletedUser - } - if !IsNil(o.IsByAdmin) { - toSerialize["isByAdmin"] = o.IsByAdmin - } - if !IsNil(o.IsByModerator) { - toSerialize["isByModerator"] = o.IsByModerator - } - if !IsNil(o.IsPinned) { - toSerialize["isPinned"] = o.IsPinned - } - if !IsNil(o.IsLocked) { - toSerialize["isLocked"] = o.IsLocked - } - if !IsNil(o.FlagCount) { - toSerialize["flagCount"] = o.FlagCount - } - if !IsNil(o.DisplayLabel) { - toSerialize["displayLabel"] = o.DisplayLabel - } - if !IsNil(o.Meta) { - toSerialize["meta"] = o.Meta - } - if !IsNil(o.ModerationGroupIds) { - toSerialize["moderationGroupIds"] = o.ModerationGroupIds - } - if !IsNil(o.FeedbackIds) { - toSerialize["feedbackIds"] = o.FeedbackIds - } - return toSerialize, nil -} - -func (o *PickAPICommentUpdatableCommentFields) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "date", - "urlId", - "url", - "commenterName", - "comment", - "commentHTML", - "verified", - "approved", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPickAPICommentUpdatableCommentFields := _PickAPICommentUpdatableCommentFields{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPickAPICommentUpdatableCommentFields) - - if err != nil { - return err - } - - *o = PickAPICommentUpdatableCommentFields(varPickAPICommentUpdatableCommentFields) - - return err -} - -type NullablePickAPICommentUpdatableCommentFields struct { - value *PickAPICommentUpdatableCommentFields - isSet bool -} - -func (v NullablePickAPICommentUpdatableCommentFields) Get() *PickAPICommentUpdatableCommentFields { - return v.value -} - -func (v *NullablePickAPICommentUpdatableCommentFields) Set(val *PickAPICommentUpdatableCommentFields) { - v.value = val - v.isSet = true -} - -func (v NullablePickAPICommentUpdatableCommentFields) IsSet() bool { - return v.isSet -} - -func (v *NullablePickAPICommentUpdatableCommentFields) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePickAPICommentUpdatableCommentFields(val *PickAPICommentUpdatableCommentFields) *NullablePickAPICommentUpdatableCommentFields { - return &NullablePickAPICommentUpdatableCommentFields{value: val, isSet: true} -} - -func (v NullablePickAPICommentUpdatableCommentFields) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePickAPICommentUpdatableCommentFields) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_pick_f_comment_api_comment_fields_keys__meta.go b/client/model_pick_f_comment_api_comment_fields_keys__meta.go deleted file mode 100644 index 3c1e831..0000000 --- a/client/model_pick_f_comment_api_comment_fields_keys__meta.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" -) - -// checks if the PickFCommentAPICommentFieldsKeysMeta type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PickFCommentAPICommentFieldsKeysMeta{} - -// PickFCommentAPICommentFieldsKeysMeta struct for PickFCommentAPICommentFieldsKeysMeta -type PickFCommentAPICommentFieldsKeysMeta struct { - WpUserId *string `json:"wpUserId,omitempty"` - WpPostId *string `json:"wpPostId,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _PickFCommentAPICommentFieldsKeysMeta PickFCommentAPICommentFieldsKeysMeta - -// NewPickFCommentAPICommentFieldsKeysMeta instantiates a new PickFCommentAPICommentFieldsKeysMeta 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 NewPickFCommentAPICommentFieldsKeysMeta() *PickFCommentAPICommentFieldsKeysMeta { - this := PickFCommentAPICommentFieldsKeysMeta{} - return &this -} - -// NewPickFCommentAPICommentFieldsKeysMetaWithDefaults instantiates a new PickFCommentAPICommentFieldsKeysMeta 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 NewPickFCommentAPICommentFieldsKeysMetaWithDefaults() *PickFCommentAPICommentFieldsKeysMeta { - this := PickFCommentAPICommentFieldsKeysMeta{} - return &this -} - -// GetWpUserId returns the WpUserId field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeysMeta) GetWpUserId() string { - if o == nil || IsNil(o.WpUserId) { - var ret string - return ret - } - return *o.WpUserId -} - -// GetWpUserIdOk returns a tuple with the WpUserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeysMeta) GetWpUserIdOk() (*string, bool) { - if o == nil || IsNil(o.WpUserId) { - return nil, false - } - return o.WpUserId, true -} - -// HasWpUserId returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeysMeta) HasWpUserId() bool { - if o != nil && !IsNil(o.WpUserId) { - return true - } - - return false -} - -// SetWpUserId gets a reference to the given string and assigns it to the WpUserId field. -func (o *PickFCommentAPICommentFieldsKeysMeta) SetWpUserId(v string) { - o.WpUserId = &v -} - -// GetWpPostId returns the WpPostId field value if set, zero value otherwise. -func (o *PickFCommentAPICommentFieldsKeysMeta) GetWpPostId() string { - if o == nil || IsNil(o.WpPostId) { - var ret string - return ret - } - return *o.WpPostId -} - -// GetWpPostIdOk returns a tuple with the WpPostId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentAPICommentFieldsKeysMeta) GetWpPostIdOk() (*string, bool) { - if o == nil || IsNil(o.WpPostId) { - return nil, false - } - return o.WpPostId, true -} - -// HasWpPostId returns a boolean if a field has been set. -func (o *PickFCommentAPICommentFieldsKeysMeta) HasWpPostId() bool { - if o != nil && !IsNil(o.WpPostId) { - return true - } - - return false -} - -// SetWpPostId gets a reference to the given string and assigns it to the WpPostId field. -func (o *PickFCommentAPICommentFieldsKeysMeta) SetWpPostId(v string) { - o.WpPostId = &v -} - -func (o PickFCommentAPICommentFieldsKeysMeta) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PickFCommentAPICommentFieldsKeysMeta) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.WpUserId) { - toSerialize["wpUserId"] = o.WpUserId - } - if !IsNil(o.WpPostId) { - toSerialize["wpPostId"] = o.WpPostId - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *PickFCommentAPICommentFieldsKeysMeta) UnmarshalJSON(data []byte) (err error) { - varPickFCommentAPICommentFieldsKeysMeta := _PickFCommentAPICommentFieldsKeysMeta{} - - err = json.Unmarshal(data, &varPickFCommentAPICommentFieldsKeysMeta) - - if err != nil { - return err - } - - *o = PickFCommentAPICommentFieldsKeysMeta(varPickFCommentAPICommentFieldsKeysMeta) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "wpUserId") - delete(additionalProperties, "wpPostId") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullablePickFCommentAPICommentFieldsKeysMeta struct { - value *PickFCommentAPICommentFieldsKeysMeta - isSet bool -} - -func (v NullablePickFCommentAPICommentFieldsKeysMeta) Get() *PickFCommentAPICommentFieldsKeysMeta { - return v.value -} - -func (v *NullablePickFCommentAPICommentFieldsKeysMeta) Set(val *PickFCommentAPICommentFieldsKeysMeta) { - v.value = val - v.isSet = true -} - -func (v NullablePickFCommentAPICommentFieldsKeysMeta) IsSet() bool { - return v.isSet -} - -func (v *NullablePickFCommentAPICommentFieldsKeysMeta) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePickFCommentAPICommentFieldsKeysMeta(val *PickFCommentAPICommentFieldsKeysMeta) *NullablePickFCommentAPICommentFieldsKeysMeta { - return &NullablePickFCommentAPICommentFieldsKeysMeta{value: val, isSet: true} -} - -func (v NullablePickFCommentAPICommentFieldsKeysMeta) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePickFCommentAPICommentFieldsKeysMeta) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_pick_f_comment_is_deleted_or_comment_html_or_commenter_name_or_user_id_.go b/client/model_pick_f_comment_is_deleted_or_comment_html_or_commenter_name_or_user_id_.go deleted file mode 100644 index ce0eff6..0000000 --- a/client/model_pick_f_comment_is_deleted_or_comment_html_or_commenter_name_or_user_id_.go +++ /dev/null @@ -1,258 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "bytes" - "fmt" -) - -// checks if the PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId{} - -// PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId From T, pick a set of properties whose keys are in the union K -type PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId struct { - UserId *string `json:"userId,omitempty"` - CommenterName string `json:"commenterName"` - CommentHTML string `json:"commentHTML"` - IsDeleted *bool `json:"isDeleted,omitempty"` -} - -type _PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId - -// NewPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId instantiates a new PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId 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 NewPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId(commenterName string, commentHTML string) *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId { - this := PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId{} - this.CommenterName = commenterName - this.CommentHTML = commentHTML - return &this -} - -// NewPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserIdWithDefaults instantiates a new PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId 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 NewPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserIdWithDefaults() *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId { - this := PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId{} - return &this -} - -// GetUserId returns the UserId field value if set, zero value otherwise. -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetUserId() string { - if o == nil || IsNil(o.UserId) { - var ret string - return ret - } - return *o.UserId -} - -// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetUserIdOk() (*string, bool) { - if o == nil || IsNil(o.UserId) { - return nil, false - } - return o.UserId, true -} - -// HasUserId returns a boolean if a field has been set. -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) HasUserId() bool { - if o != nil && !IsNil(o.UserId) { - return true - } - - return false -} - -// SetUserId gets a reference to the given string and assigns it to the UserId field. -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) SetUserId(v string) { - o.UserId = &v -} - -// GetCommenterName returns the CommenterName field value -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetCommenterName() string { - if o == nil { - var ret string - return ret - } - - return o.CommenterName -} - -// GetCommenterNameOk returns a tuple with the CommenterName field value -// and a boolean to check if the value has been set. -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetCommenterNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommenterName, true -} - -// SetCommenterName sets field value -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) SetCommenterName(v string) { - o.CommenterName = v -} - -// GetCommentHTML returns the CommentHTML field value -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetCommentHTML() string { - if o == nil { - var ret string - return ret - } - - return o.CommentHTML -} - -// GetCommentHTMLOk returns a tuple with the CommentHTML field value -// and a boolean to check if the value has been set. -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetCommentHTMLOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommentHTML, true -} - -// SetCommentHTML sets field value -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) SetCommentHTML(v string) { - o.CommentHTML = v -} - -// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetIsDeleted() bool { - if o == nil || IsNil(o.IsDeleted) { - var ret bool - return ret - } - return *o.IsDeleted -} - -// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) GetIsDeletedOk() (*bool, bool) { - if o == nil || IsNil(o.IsDeleted) { - return nil, false - } - return o.IsDeleted, true -} - -// HasIsDeleted returns a boolean if a field has been set. -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) HasIsDeleted() bool { - if o != nil && !IsNil(o.IsDeleted) { - return true - } - - return false -} - -// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) SetIsDeleted(v bool) { - o.IsDeleted = &v -} - -func (o PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.UserId) { - toSerialize["userId"] = o.UserId - } - toSerialize["commenterName"] = o.CommenterName - toSerialize["commentHTML"] = o.CommentHTML - if !IsNil(o.IsDeleted) { - toSerialize["isDeleted"] = o.IsDeleted - } - return toSerialize, nil -} - -func (o *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "commenterName", - "commentHTML", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId := _PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) - - if err != nil { - return err - } - - *o = PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId(varPickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) - - return err -} - -type NullablePickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId struct { - value *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId - isSet bool -} - -func (v NullablePickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) Get() *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId { - return v.value -} - -func (v *NullablePickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) Set(val *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) { - v.value = val - v.isSet = true -} - -func (v NullablePickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) IsSet() bool { - return v.isSet -} - -func (v *NullablePickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId(val *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) *NullablePickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId { - return &NullablePickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId{value: val, isSet: true} -} - -func (v NullablePickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_pick_f_comment_public_comment_fields_keys_.go b/client/model_pick_f_comment_public_comment_fields_keys_.go deleted file mode 100644 index 44424ce..0000000 --- a/client/model_pick_f_comment_public_comment_fields_keys_.go +++ /dev/null @@ -1,1099 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "time" - "bytes" - "fmt" -) - -// checks if the PickFCommentPublicCommentFieldsKeys type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PickFCommentPublicCommentFieldsKeys{} - -// PickFCommentPublicCommentFieldsKeys From T, pick a set of properties whose keys are in the union K -type PickFCommentPublicCommentFieldsKeys struct { - Date time.Time `json:"date"` - Id string `json:"_id"` - UserId *string `json:"userId,omitempty"` - AnonUserId *string `json:"anonUserId,omitempty"` - CommenterName string `json:"commenterName"` - CommenterLink *string `json:"commenterLink,omitempty"` - CommentHTML string `json:"commentHTML"` - ParentId *string `json:"parentId,omitempty"` - Votes *int32 `json:"votes,omitempty"` - VotesUp *int32 `json:"votesUp,omitempty"` - VotesDown *int32 `json:"votesDown,omitempty"` - Verified bool `json:"verified"` - AvatarSrc *string `json:"avatarSrc,omitempty"` - IsSpam *bool `json:"isSpam,omitempty"` - HasImages *bool `json:"hasImages,omitempty"` - IsDeleted *bool `json:"isDeleted,omitempty"` - IsDeletedUser *bool `json:"isDeletedUser,omitempty"` - IsByAdmin *bool `json:"isByAdmin,omitempty"` - IsByModerator *bool `json:"isByModerator,omitempty"` - IsPinned *bool `json:"isPinned,omitempty"` - IsLocked *bool `json:"isLocked,omitempty"` - Rating *float64 `json:"rating,omitempty"` - DisplayLabel *string `json:"displayLabel,omitempty"` - Badges []CommentUserBadgeInfo `json:"badges,omitempty"` - FeedbackIds []string `json:"feedbackIds,omitempty"` - ViewCount *int64 `json:"viewCount,omitempty"` - RequiresVerification *bool `json:"requiresVerification,omitempty"` - EditKey *string `json:"editKey,omitempty"` -} - -type _PickFCommentPublicCommentFieldsKeys PickFCommentPublicCommentFieldsKeys - -// NewPickFCommentPublicCommentFieldsKeys instantiates a new PickFCommentPublicCommentFieldsKeys 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 NewPickFCommentPublicCommentFieldsKeys(date time.Time, id string, commenterName string, commentHTML string, verified bool) *PickFCommentPublicCommentFieldsKeys { - this := PickFCommentPublicCommentFieldsKeys{} - this.Date = date - this.Id = id - this.CommenterName = commenterName - this.CommentHTML = commentHTML - this.Verified = verified - return &this -} - -// NewPickFCommentPublicCommentFieldsKeysWithDefaults instantiates a new PickFCommentPublicCommentFieldsKeys 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 NewPickFCommentPublicCommentFieldsKeysWithDefaults() *PickFCommentPublicCommentFieldsKeys { - this := PickFCommentPublicCommentFieldsKeys{} - return &this -} - -// GetDate returns the Date field value -func (o *PickFCommentPublicCommentFieldsKeys) GetDate() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.Date -} - -// GetDateOk returns a tuple with the Date field value -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetDateOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.Date, true -} - -// SetDate sets field value -func (o *PickFCommentPublicCommentFieldsKeys) SetDate(v time.Time) { - o.Date = v -} - -// GetId returns the Id field value -func (o *PickFCommentPublicCommentFieldsKeys) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *PickFCommentPublicCommentFieldsKeys) SetId(v string) { - o.Id = v -} - -// GetUserId returns the UserId field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetUserId() string { - if o == nil || IsNil(o.UserId) { - var ret string - return ret - } - return *o.UserId -} - -// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetUserIdOk() (*string, bool) { - if o == nil || IsNil(o.UserId) { - return nil, false - } - return o.UserId, true -} - -// HasUserId returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasUserId() bool { - if o != nil && !IsNil(o.UserId) { - return true - } - - return false -} - -// SetUserId gets a reference to the given string and assigns it to the UserId field. -func (o *PickFCommentPublicCommentFieldsKeys) SetUserId(v string) { - o.UserId = &v -} - -// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetAnonUserId() string { - if o == nil || IsNil(o.AnonUserId) { - var ret string - return ret - } - return *o.AnonUserId -} - -// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetAnonUserIdOk() (*string, bool) { - if o == nil || IsNil(o.AnonUserId) { - return nil, false - } - return o.AnonUserId, true -} - -// HasAnonUserId returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasAnonUserId() bool { - if o != nil && !IsNil(o.AnonUserId) { - return true - } - - return false -} - -// SetAnonUserId gets a reference to the given string and assigns it to the AnonUserId field. -func (o *PickFCommentPublicCommentFieldsKeys) SetAnonUserId(v string) { - o.AnonUserId = &v -} - -// GetCommenterName returns the CommenterName field value -func (o *PickFCommentPublicCommentFieldsKeys) GetCommenterName() string { - if o == nil { - var ret string - return ret - } - - return o.CommenterName -} - -// GetCommenterNameOk returns a tuple with the CommenterName field value -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetCommenterNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommenterName, true -} - -// SetCommenterName sets field value -func (o *PickFCommentPublicCommentFieldsKeys) SetCommenterName(v string) { - o.CommenterName = v -} - -// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetCommenterLink() string { - if o == nil || IsNil(o.CommenterLink) { - var ret string - return ret - } - return *o.CommenterLink -} - -// GetCommenterLinkOk returns a tuple with the CommenterLink field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetCommenterLinkOk() (*string, bool) { - if o == nil || IsNil(o.CommenterLink) { - return nil, false - } - return o.CommenterLink, true -} - -// HasCommenterLink returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasCommenterLink() bool { - if o != nil && !IsNil(o.CommenterLink) { - return true - } - - return false -} - -// SetCommenterLink gets a reference to the given string and assigns it to the CommenterLink field. -func (o *PickFCommentPublicCommentFieldsKeys) SetCommenterLink(v string) { - o.CommenterLink = &v -} - -// GetCommentHTML returns the CommentHTML field value -func (o *PickFCommentPublicCommentFieldsKeys) GetCommentHTML() string { - if o == nil { - var ret string - return ret - } - - return o.CommentHTML -} - -// GetCommentHTMLOk returns a tuple with the CommentHTML field value -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetCommentHTMLOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommentHTML, true -} - -// SetCommentHTML sets field value -func (o *PickFCommentPublicCommentFieldsKeys) SetCommentHTML(v string) { - o.CommentHTML = v -} - -// GetParentId returns the ParentId field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetParentId() string { - if o == nil || IsNil(o.ParentId) { - var ret string - return ret - } - return *o.ParentId -} - -// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetParentIdOk() (*string, bool) { - if o == nil || IsNil(o.ParentId) { - return nil, false - } - return o.ParentId, true -} - -// HasParentId returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasParentId() bool { - if o != nil && !IsNil(o.ParentId) { - return true - } - - return false -} - -// SetParentId gets a reference to the given string and assigns it to the ParentId field. -func (o *PickFCommentPublicCommentFieldsKeys) SetParentId(v string) { - o.ParentId = &v -} - -// GetVotes returns the Votes field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetVotes() int32 { - if o == nil || IsNil(o.Votes) { - var ret int32 - return ret - } - return *o.Votes -} - -// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetVotesOk() (*int32, bool) { - if o == nil || IsNil(o.Votes) { - return nil, false - } - return o.Votes, true -} - -// HasVotes returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasVotes() bool { - if o != nil && !IsNil(o.Votes) { - return true - } - - return false -} - -// SetVotes gets a reference to the given int32 and assigns it to the Votes field. -func (o *PickFCommentPublicCommentFieldsKeys) SetVotes(v int32) { - o.Votes = &v -} - -// GetVotesUp returns the VotesUp field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetVotesUp() int32 { - if o == nil || IsNil(o.VotesUp) { - var ret int32 - return ret - } - return *o.VotesUp -} - -// GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetVotesUpOk() (*int32, bool) { - if o == nil || IsNil(o.VotesUp) { - return nil, false - } - return o.VotesUp, true -} - -// HasVotesUp returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasVotesUp() bool { - if o != nil && !IsNil(o.VotesUp) { - return true - } - - return false -} - -// SetVotesUp gets a reference to the given int32 and assigns it to the VotesUp field. -func (o *PickFCommentPublicCommentFieldsKeys) SetVotesUp(v int32) { - o.VotesUp = &v -} - -// GetVotesDown returns the VotesDown field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetVotesDown() int32 { - if o == nil || IsNil(o.VotesDown) { - var ret int32 - return ret - } - return *o.VotesDown -} - -// GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetVotesDownOk() (*int32, bool) { - if o == nil || IsNil(o.VotesDown) { - return nil, false - } - return o.VotesDown, true -} - -// HasVotesDown returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasVotesDown() bool { - if o != nil && !IsNil(o.VotesDown) { - return true - } - - return false -} - -// SetVotesDown gets a reference to the given int32 and assigns it to the VotesDown field. -func (o *PickFCommentPublicCommentFieldsKeys) SetVotesDown(v int32) { - o.VotesDown = &v -} - -// GetVerified returns the Verified field value -func (o *PickFCommentPublicCommentFieldsKeys) GetVerified() bool { - if o == nil { - var ret bool - return ret - } - - return o.Verified -} - -// GetVerifiedOk returns a tuple with the Verified field value -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetVerifiedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Verified, true -} - -// SetVerified sets field value -func (o *PickFCommentPublicCommentFieldsKeys) SetVerified(v bool) { - o.Verified = v -} - -// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetAvatarSrc() string { - if o == nil || IsNil(o.AvatarSrc) { - var ret string - return ret - } - return *o.AvatarSrc -} - -// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetAvatarSrcOk() (*string, bool) { - if o == nil || IsNil(o.AvatarSrc) { - return nil, false - } - return o.AvatarSrc, true -} - -// HasAvatarSrc returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasAvatarSrc() bool { - if o != nil && !IsNil(o.AvatarSrc) { - return true - } - - return false -} - -// SetAvatarSrc gets a reference to the given string and assigns it to the AvatarSrc field. -func (o *PickFCommentPublicCommentFieldsKeys) SetAvatarSrc(v string) { - o.AvatarSrc = &v -} - -// GetIsSpam returns the IsSpam field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsSpam() bool { - if o == nil || IsNil(o.IsSpam) { - var ret bool - return ret - } - return *o.IsSpam -} - -// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsSpamOk() (*bool, bool) { - if o == nil || IsNil(o.IsSpam) { - return nil, false - } - return o.IsSpam, true -} - -// HasIsSpam returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasIsSpam() bool { - if o != nil && !IsNil(o.IsSpam) { - return true - } - - return false -} - -// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. -func (o *PickFCommentPublicCommentFieldsKeys) SetIsSpam(v bool) { - o.IsSpam = &v -} - -// GetHasImages returns the HasImages field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetHasImages() bool { - if o == nil || IsNil(o.HasImages) { - var ret bool - return ret - } - return *o.HasImages -} - -// GetHasImagesOk returns a tuple with the HasImages field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetHasImagesOk() (*bool, bool) { - if o == nil || IsNil(o.HasImages) { - return nil, false - } - return o.HasImages, true -} - -// HasHasImages returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasHasImages() bool { - if o != nil && !IsNil(o.HasImages) { - return true - } - - return false -} - -// SetHasImages gets a reference to the given bool and assigns it to the HasImages field. -func (o *PickFCommentPublicCommentFieldsKeys) SetHasImages(v bool) { - o.HasImages = &v -} - -// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsDeleted() bool { - if o == nil || IsNil(o.IsDeleted) { - var ret bool - return ret - } - return *o.IsDeleted -} - -// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsDeletedOk() (*bool, bool) { - if o == nil || IsNil(o.IsDeleted) { - return nil, false - } - return o.IsDeleted, true -} - -// HasIsDeleted returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasIsDeleted() bool { - if o != nil && !IsNil(o.IsDeleted) { - return true - } - - return false -} - -// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. -func (o *PickFCommentPublicCommentFieldsKeys) SetIsDeleted(v bool) { - o.IsDeleted = &v -} - -// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsDeletedUser() bool { - if o == nil || IsNil(o.IsDeletedUser) { - var ret bool - return ret - } - return *o.IsDeletedUser -} - -// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsDeletedUserOk() (*bool, bool) { - if o == nil || IsNil(o.IsDeletedUser) { - return nil, false - } - return o.IsDeletedUser, true -} - -// HasIsDeletedUser returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasIsDeletedUser() bool { - if o != nil && !IsNil(o.IsDeletedUser) { - return true - } - - return false -} - -// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. -func (o *PickFCommentPublicCommentFieldsKeys) SetIsDeletedUser(v bool) { - o.IsDeletedUser = &v -} - -// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsByAdmin() bool { - if o == nil || IsNil(o.IsByAdmin) { - var ret bool - return ret - } - return *o.IsByAdmin -} - -// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsByAdminOk() (*bool, bool) { - if o == nil || IsNil(o.IsByAdmin) { - return nil, false - } - return o.IsByAdmin, true -} - -// HasIsByAdmin returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasIsByAdmin() bool { - if o != nil && !IsNil(o.IsByAdmin) { - return true - } - - return false -} - -// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. -func (o *PickFCommentPublicCommentFieldsKeys) SetIsByAdmin(v bool) { - o.IsByAdmin = &v -} - -// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsByModerator() bool { - if o == nil || IsNil(o.IsByModerator) { - var ret bool - return ret - } - return *o.IsByModerator -} - -// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsByModeratorOk() (*bool, bool) { - if o == nil || IsNil(o.IsByModerator) { - return nil, false - } - return o.IsByModerator, true -} - -// HasIsByModerator returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasIsByModerator() bool { - if o != nil && !IsNil(o.IsByModerator) { - return true - } - - return false -} - -// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. -func (o *PickFCommentPublicCommentFieldsKeys) SetIsByModerator(v bool) { - o.IsByModerator = &v -} - -// GetIsPinned returns the IsPinned field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsPinned() bool { - if o == nil || IsNil(o.IsPinned) { - var ret bool - return ret - } - return *o.IsPinned -} - -// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsPinnedOk() (*bool, bool) { - if o == nil || IsNil(o.IsPinned) { - return nil, false - } - return o.IsPinned, true -} - -// HasIsPinned returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasIsPinned() bool { - if o != nil && !IsNil(o.IsPinned) { - return true - } - - return false -} - -// SetIsPinned gets a reference to the given bool and assigns it to the IsPinned field. -func (o *PickFCommentPublicCommentFieldsKeys) SetIsPinned(v bool) { - o.IsPinned = &v -} - -// GetIsLocked returns the IsLocked field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsLocked() bool { - if o == nil || IsNil(o.IsLocked) { - var ret bool - return ret - } - return *o.IsLocked -} - -// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetIsLockedOk() (*bool, bool) { - if o == nil || IsNil(o.IsLocked) { - return nil, false - } - return o.IsLocked, true -} - -// HasIsLocked returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasIsLocked() bool { - if o != nil && !IsNil(o.IsLocked) { - return true - } - - return false -} - -// SetIsLocked gets a reference to the given bool and assigns it to the IsLocked field. -func (o *PickFCommentPublicCommentFieldsKeys) SetIsLocked(v bool) { - o.IsLocked = &v -} - -// GetRating returns the Rating field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetRating() float64 { - if o == nil || IsNil(o.Rating) { - var ret float64 - return ret - } - return *o.Rating -} - -// GetRatingOk returns a tuple with the Rating field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetRatingOk() (*float64, bool) { - if o == nil || IsNil(o.Rating) { - return nil, false - } - return o.Rating, true -} - -// HasRating returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasRating() bool { - if o != nil && !IsNil(o.Rating) { - return true - } - - return false -} - -// SetRating gets a reference to the given float64 and assigns it to the Rating field. -func (o *PickFCommentPublicCommentFieldsKeys) SetRating(v float64) { - o.Rating = &v -} - -// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetDisplayLabel() string { - if o == nil || IsNil(o.DisplayLabel) { - var ret string - return ret - } - return *o.DisplayLabel -} - -// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetDisplayLabelOk() (*string, bool) { - if o == nil || IsNil(o.DisplayLabel) { - return nil, false - } - return o.DisplayLabel, true -} - -// HasDisplayLabel returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasDisplayLabel() bool { - if o != nil && !IsNil(o.DisplayLabel) { - return true - } - - return false -} - -// SetDisplayLabel gets a reference to the given string and assigns it to the DisplayLabel field. -func (o *PickFCommentPublicCommentFieldsKeys) SetDisplayLabel(v string) { - o.DisplayLabel = &v -} - -// GetBadges returns the Badges field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetBadges() []CommentUserBadgeInfo { - if o == nil || IsNil(o.Badges) { - var ret []CommentUserBadgeInfo - return ret - } - return o.Badges -} - -// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { - if o == nil || IsNil(o.Badges) { - return nil, false - } - return o.Badges, true -} - -// HasBadges returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasBadges() bool { - if o != nil && !IsNil(o.Badges) { - return true - } - - return false -} - -// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. -func (o *PickFCommentPublicCommentFieldsKeys) SetBadges(v []CommentUserBadgeInfo) { - o.Badges = v -} - -// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetFeedbackIds() []string { - if o == nil || IsNil(o.FeedbackIds) { - var ret []string - return ret - } - return o.FeedbackIds -} - -// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetFeedbackIdsOk() ([]string, bool) { - if o == nil || IsNil(o.FeedbackIds) { - return nil, false - } - return o.FeedbackIds, true -} - -// HasFeedbackIds returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasFeedbackIds() bool { - if o != nil && !IsNil(o.FeedbackIds) { - return true - } - - return false -} - -// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. -func (o *PickFCommentPublicCommentFieldsKeys) SetFeedbackIds(v []string) { - o.FeedbackIds = v -} - -// GetViewCount returns the ViewCount field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetViewCount() int64 { - if o == nil || IsNil(o.ViewCount) { - var ret int64 - 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 *PickFCommentPublicCommentFieldsKeys) GetViewCountOk() (*int64, 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 *PickFCommentPublicCommentFieldsKeys) HasViewCount() bool { - if o != nil && !IsNil(o.ViewCount) { - return true - } - - return false -} - -// SetViewCount gets a reference to the given int64 and assigns it to the ViewCount field. -func (o *PickFCommentPublicCommentFieldsKeys) SetViewCount(v int64) { - o.ViewCount = &v -} - -// GetRequiresVerification returns the RequiresVerification field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetRequiresVerification() bool { - if o == nil || IsNil(o.RequiresVerification) { - var ret bool - return ret - } - return *o.RequiresVerification -} - -// GetRequiresVerificationOk returns a tuple with the RequiresVerification field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetRequiresVerificationOk() (*bool, bool) { - if o == nil || IsNil(o.RequiresVerification) { - return nil, false - } - return o.RequiresVerification, true -} - -// HasRequiresVerification returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasRequiresVerification() bool { - if o != nil && !IsNil(o.RequiresVerification) { - return true - } - - return false -} - -// SetRequiresVerification gets a reference to the given bool and assigns it to the RequiresVerification field. -func (o *PickFCommentPublicCommentFieldsKeys) SetRequiresVerification(v bool) { - o.RequiresVerification = &v -} - -// GetEditKey returns the EditKey field value if set, zero value otherwise. -func (o *PickFCommentPublicCommentFieldsKeys) GetEditKey() string { - if o == nil || IsNil(o.EditKey) { - var ret string - return ret - } - return *o.EditKey -} - -// GetEditKeyOk returns a tuple with the EditKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickFCommentPublicCommentFieldsKeys) GetEditKeyOk() (*string, bool) { - if o == nil || IsNil(o.EditKey) { - return nil, false - } - return o.EditKey, true -} - -// HasEditKey returns a boolean if a field has been set. -func (o *PickFCommentPublicCommentFieldsKeys) HasEditKey() bool { - if o != nil && !IsNil(o.EditKey) { - return true - } - - return false -} - -// SetEditKey gets a reference to the given string and assigns it to the EditKey field. -func (o *PickFCommentPublicCommentFieldsKeys) SetEditKey(v string) { - o.EditKey = &v -} - -func (o PickFCommentPublicCommentFieldsKeys) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PickFCommentPublicCommentFieldsKeys) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["date"] = o.Date - toSerialize["_id"] = o.Id - if !IsNil(o.UserId) { - toSerialize["userId"] = o.UserId - } - if !IsNil(o.AnonUserId) { - toSerialize["anonUserId"] = o.AnonUserId - } - toSerialize["commenterName"] = o.CommenterName - if !IsNil(o.CommenterLink) { - toSerialize["commenterLink"] = o.CommenterLink - } - toSerialize["commentHTML"] = o.CommentHTML - if !IsNil(o.ParentId) { - toSerialize["parentId"] = o.ParentId - } - if !IsNil(o.Votes) { - toSerialize["votes"] = o.Votes - } - if !IsNil(o.VotesUp) { - toSerialize["votesUp"] = o.VotesUp - } - if !IsNil(o.VotesDown) { - toSerialize["votesDown"] = o.VotesDown - } - toSerialize["verified"] = o.Verified - if !IsNil(o.AvatarSrc) { - toSerialize["avatarSrc"] = o.AvatarSrc - } - if !IsNil(o.IsSpam) { - toSerialize["isSpam"] = o.IsSpam - } - if !IsNil(o.HasImages) { - toSerialize["hasImages"] = o.HasImages - } - if !IsNil(o.IsDeleted) { - toSerialize["isDeleted"] = o.IsDeleted - } - if !IsNil(o.IsDeletedUser) { - toSerialize["isDeletedUser"] = o.IsDeletedUser - } - if !IsNil(o.IsByAdmin) { - toSerialize["isByAdmin"] = o.IsByAdmin - } - if !IsNil(o.IsByModerator) { - toSerialize["isByModerator"] = o.IsByModerator - } - if !IsNil(o.IsPinned) { - toSerialize["isPinned"] = o.IsPinned - } - if !IsNil(o.IsLocked) { - toSerialize["isLocked"] = o.IsLocked - } - if !IsNil(o.Rating) { - toSerialize["rating"] = o.Rating - } - if !IsNil(o.DisplayLabel) { - toSerialize["displayLabel"] = o.DisplayLabel - } - if !IsNil(o.Badges) { - toSerialize["badges"] = o.Badges - } - if !IsNil(o.FeedbackIds) { - toSerialize["feedbackIds"] = o.FeedbackIds - } - if !IsNil(o.ViewCount) { - toSerialize["viewCount"] = o.ViewCount - } - if !IsNil(o.RequiresVerification) { - toSerialize["requiresVerification"] = o.RequiresVerification - } - if !IsNil(o.EditKey) { - toSerialize["editKey"] = o.EditKey - } - return toSerialize, nil -} - -func (o *PickFCommentPublicCommentFieldsKeys) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "date", - "_id", - "commenterName", - "commentHTML", - "verified", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPickFCommentPublicCommentFieldsKeys := _PickFCommentPublicCommentFieldsKeys{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPickFCommentPublicCommentFieldsKeys) - - if err != nil { - return err - } - - *o = PickFCommentPublicCommentFieldsKeys(varPickFCommentPublicCommentFieldsKeys) - - return err -} - -type NullablePickFCommentPublicCommentFieldsKeys struct { - value *PickFCommentPublicCommentFieldsKeys - isSet bool -} - -func (v NullablePickFCommentPublicCommentFieldsKeys) Get() *PickFCommentPublicCommentFieldsKeys { - return v.value -} - -func (v *NullablePickFCommentPublicCommentFieldsKeys) Set(val *PickFCommentPublicCommentFieldsKeys) { - v.value = val - v.isSet = true -} - -func (v NullablePickFCommentPublicCommentFieldsKeys) IsSet() bool { - return v.isSet -} - -func (v *NullablePickFCommentPublicCommentFieldsKeys) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePickFCommentPublicCommentFieldsKeys(val *PickFCommentPublicCommentFieldsKeys) *NullablePickFCommentPublicCommentFieldsKeys { - return &NullablePickFCommentPublicCommentFieldsKeys{value: val, isSet: true} -} - -func (v NullablePickFCommentPublicCommentFieldsKeys) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePickFCommentPublicCommentFieldsKeys) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_pick_omit_f_comment_date__public_comment_pub_sub_fields_keys_.go b/client/model_pick_omit_f_comment_date__public_comment_pub_sub_fields_keys_.go deleted file mode 100644 index fed3f4f..0000000 --- a/client/model_pick_omit_f_comment_date__public_comment_pub_sub_fields_keys_.go +++ /dev/null @@ -1,1523 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "time" - "bytes" - "fmt" -) - -// checks if the PickOmitFCommentDatePublicCommentPubSubFieldsKeys type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PickOmitFCommentDatePublicCommentPubSubFieldsKeys{} - -// PickOmitFCommentDatePublicCommentPubSubFieldsKeys From T, pick a set of properties whose keys are in the union K -type PickOmitFCommentDatePublicCommentPubSubFieldsKeys struct { - Date interface{} `json:"date"` - Id string `json:"_id"` - TenantId string `json:"tenantId"` - UrlId string `json:"urlId"` - Url string `json:"url"` - PageTitle *string `json:"pageTitle,omitempty"` - UserId *string `json:"userId,omitempty"` - AnonUserId *string `json:"anonUserId,omitempty"` - CommenterName string `json:"commenterName"` - CommenterLink *string `json:"commenterLink,omitempty"` - Comment string `json:"comment"` - CommentHTML string `json:"commentHTML"` - ParentId *string `json:"parentId,omitempty"` - Votes *int32 `json:"votes,omitempty"` - VotesUp *int32 `json:"votesUp,omitempty"` - VotesDown *int32 `json:"votesDown,omitempty"` - ExpireAt *time.Time `json:"expireAt,omitempty"` - Verified bool `json:"verified"` - Reviewed *bool `json:"reviewed,omitempty"` - AvatarSrc *string `json:"avatarSrc,omitempty"` - IsSpam *bool `json:"isSpam,omitempty"` - HasImages *bool `json:"hasImages,omitempty"` - HasLinks *bool `json:"hasLinks,omitempty"` - HasCode *bool `json:"hasCode,omitempty"` - Approved bool `json:"approved"` - Locale string `json:"locale"` - IsDeleted *bool `json:"isDeleted,omitempty"` - IsDeletedUser *bool `json:"isDeletedUser,omitempty"` - IsBannedUser *bool `json:"isBannedUser,omitempty"` - IsByAdmin *bool `json:"isByAdmin,omitempty"` - IsByModerator *bool `json:"isByModerator,omitempty"` - IsPinned *bool `json:"isPinned,omitempty"` - IsLocked *bool `json:"isLocked,omitempty"` - FlagCount *int32 `json:"flagCount,omitempty"` - Rating *float64 `json:"rating,omitempty"` - DisplayLabel *string `json:"displayLabel,omitempty"` - Badges []CommentUserBadgeInfo `json:"badges,omitempty"` - Domain *string `json:"domain,omitempty"` - FeedbackIds []string `json:"feedbackIds,omitempty"` - GroupIds []string `json:"groupIds,omitempty"` - ViewCount *int64 `json:"viewCount,omitempty"` -} - -type _PickOmitFCommentDatePublicCommentPubSubFieldsKeys PickOmitFCommentDatePublicCommentPubSubFieldsKeys - -// NewPickOmitFCommentDatePublicCommentPubSubFieldsKeys instantiates a new PickOmitFCommentDatePublicCommentPubSubFieldsKeys 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 NewPickOmitFCommentDatePublicCommentPubSubFieldsKeys(date interface{}, id string, tenantId string, urlId string, url string, commenterName string, comment string, commentHTML string, verified bool, approved bool, locale string) *PickOmitFCommentDatePublicCommentPubSubFieldsKeys { - this := PickOmitFCommentDatePublicCommentPubSubFieldsKeys{} - this.Date = date - this.Id = id - this.TenantId = tenantId - this.UrlId = urlId - this.Url = url - this.CommenterName = commenterName - this.Comment = comment - this.CommentHTML = commentHTML - this.Verified = verified - this.Approved = approved - this.Locale = locale - return &this -} - -// NewPickOmitFCommentDatePublicCommentPubSubFieldsKeysWithDefaults instantiates a new PickOmitFCommentDatePublicCommentPubSubFieldsKeys 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 NewPickOmitFCommentDatePublicCommentPubSubFieldsKeysWithDefaults() *PickOmitFCommentDatePublicCommentPubSubFieldsKeys { - this := PickOmitFCommentDatePublicCommentPubSubFieldsKeys{} - return &this -} - -// GetDate returns the Date field value -// If the value is explicit nil, the zero value for interface{} will be returned -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDate() interface{} { - if o == nil { - var ret interface{} - return ret - } - - return o.Date -} - -// GetDateOk returns a tuple with the Date field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDateOk() (*interface{}, bool) { - if o == nil || IsNil(o.Date) { - return nil, false - } - return &o.Date, true -} - -// SetDate sets field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetDate(v interface{}) { - o.Date = v -} - -// GetId returns the Id field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetId(v string) { - o.Id = v -} - -// GetTenantId returns the TenantId field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetTenantId() string { - if o == nil { - var ret string - return ret - } - - return o.TenantId -} - -// GetTenantIdOk returns a tuple with the TenantId field value -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetTenantIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TenantId, true -} - -// SetTenantId sets field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetTenantId(v string) { - o.TenantId = v -} - -// GetUrlId returns the UrlId field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetUrlId() string { - if o == nil { - var ret string - return ret - } - - return o.UrlId -} - -// GetUrlIdOk returns a tuple with the UrlId field value -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetUrlIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.UrlId, true -} - -// SetUrlId sets field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetUrlId(v string) { - o.UrlId = v -} - -// GetUrl returns the Url field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetUrl() string { - if o == nil { - var ret string - return ret - } - - return o.Url -} - -// GetUrlOk returns a tuple with the Url field value -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetUrl(v string) { - o.Url = v -} - -// GetPageTitle returns the PageTitle field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetPageTitle() string { - if o == nil || IsNil(o.PageTitle) { - var ret string - return ret - } - return *o.PageTitle -} - -// GetPageTitleOk returns a tuple with the PageTitle field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetPageTitleOk() (*string, bool) { - if o == nil || IsNil(o.PageTitle) { - return nil, false - } - return o.PageTitle, true -} - -// HasPageTitle returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasPageTitle() bool { - if o != nil && !IsNil(o.PageTitle) { - return true - } - - return false -} - -// SetPageTitle gets a reference to the given string and assigns it to the PageTitle field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetPageTitle(v string) { - o.PageTitle = &v -} - -// GetUserId returns the UserId field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetUserId() string { - if o == nil || IsNil(o.UserId) { - var ret string - return ret - } - return *o.UserId -} - -// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetUserIdOk() (*string, bool) { - if o == nil || IsNil(o.UserId) { - return nil, false - } - return o.UserId, true -} - -// HasUserId returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasUserId() bool { - if o != nil && !IsNil(o.UserId) { - return true - } - - return false -} - -// SetUserId gets a reference to the given string and assigns it to the UserId field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetUserId(v string) { - o.UserId = &v -} - -// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetAnonUserId() string { - if o == nil || IsNil(o.AnonUserId) { - var ret string - return ret - } - return *o.AnonUserId -} - -// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetAnonUserIdOk() (*string, bool) { - if o == nil || IsNil(o.AnonUserId) { - return nil, false - } - return o.AnonUserId, true -} - -// HasAnonUserId returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasAnonUserId() bool { - if o != nil && !IsNil(o.AnonUserId) { - return true - } - - return false -} - -// SetAnonUserId gets a reference to the given string and assigns it to the AnonUserId field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetAnonUserId(v string) { - o.AnonUserId = &v -} - -// GetCommenterName returns the CommenterName field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommenterName() string { - if o == nil { - var ret string - return ret - } - - return o.CommenterName -} - -// GetCommenterNameOk returns a tuple with the CommenterName field value -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommenterNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommenterName, true -} - -// SetCommenterName sets field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetCommenterName(v string) { - o.CommenterName = v -} - -// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommenterLink() string { - if o == nil || IsNil(o.CommenterLink) { - var ret string - return ret - } - return *o.CommenterLink -} - -// GetCommenterLinkOk returns a tuple with the CommenterLink field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommenterLinkOk() (*string, bool) { - if o == nil || IsNil(o.CommenterLink) { - return nil, false - } - return o.CommenterLink, true -} - -// HasCommenterLink returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasCommenterLink() bool { - if o != nil && !IsNil(o.CommenterLink) { - return true - } - - return false -} - -// SetCommenterLink gets a reference to the given string and assigns it to the CommenterLink field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetCommenterLink(v string) { - o.CommenterLink = &v -} - -// GetComment returns the Comment field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetComment() string { - if o == nil { - var ret string - return ret - } - - return o.Comment -} - -// GetCommentOk returns a tuple with the Comment field value -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommentOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Comment, true -} - -// SetComment sets field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetComment(v string) { - o.Comment = v -} - -// GetCommentHTML returns the CommentHTML field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommentHTML() string { - if o == nil { - var ret string - return ret - } - - return o.CommentHTML -} - -// GetCommentHTMLOk returns a tuple with the CommentHTML field value -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetCommentHTMLOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CommentHTML, true -} - -// SetCommentHTML sets field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetCommentHTML(v string) { - o.CommentHTML = v -} - -// GetParentId returns the ParentId field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetParentId() string { - if o == nil || IsNil(o.ParentId) { - var ret string - return ret - } - return *o.ParentId -} - -// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetParentIdOk() (*string, bool) { - if o == nil || IsNil(o.ParentId) { - return nil, false - } - return o.ParentId, true -} - -// HasParentId returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasParentId() bool { - if o != nil && !IsNil(o.ParentId) { - return true - } - - return false -} - -// SetParentId gets a reference to the given string and assigns it to the ParentId field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetParentId(v string) { - o.ParentId = &v -} - -// GetVotes returns the Votes field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotes() int32 { - if o == nil || IsNil(o.Votes) { - var ret int32 - return ret - } - return *o.Votes -} - -// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotesOk() (*int32, bool) { - if o == nil || IsNil(o.Votes) { - return nil, false - } - return o.Votes, true -} - -// HasVotes returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasVotes() bool { - if o != nil && !IsNil(o.Votes) { - return true - } - - return false -} - -// SetVotes gets a reference to the given int32 and assigns it to the Votes field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetVotes(v int32) { - o.Votes = &v -} - -// GetVotesUp returns the VotesUp field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotesUp() int32 { - if o == nil || IsNil(o.VotesUp) { - var ret int32 - return ret - } - return *o.VotesUp -} - -// GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotesUpOk() (*int32, bool) { - if o == nil || IsNil(o.VotesUp) { - return nil, false - } - return o.VotesUp, true -} - -// HasVotesUp returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasVotesUp() bool { - if o != nil && !IsNil(o.VotesUp) { - return true - } - - return false -} - -// SetVotesUp gets a reference to the given int32 and assigns it to the VotesUp field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetVotesUp(v int32) { - o.VotesUp = &v -} - -// GetVotesDown returns the VotesDown field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotesDown() int32 { - if o == nil || IsNil(o.VotesDown) { - var ret int32 - return ret - } - return *o.VotesDown -} - -// GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVotesDownOk() (*int32, bool) { - if o == nil || IsNil(o.VotesDown) { - return nil, false - } - return o.VotesDown, true -} - -// HasVotesDown returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasVotesDown() bool { - if o != nil && !IsNil(o.VotesDown) { - return true - } - - return false -} - -// SetVotesDown gets a reference to the given int32 and assigns it to the VotesDown field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetVotesDown(v int32) { - o.VotesDown = &v -} - -// GetExpireAt returns the ExpireAt field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetExpireAt() time.Time { - if o == nil || IsNil(o.ExpireAt) { - var ret time.Time - return ret - } - return *o.ExpireAt -} - -// GetExpireAtOk returns a tuple with the ExpireAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetExpireAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.ExpireAt) { - return nil, false - } - return o.ExpireAt, true -} - -// HasExpireAt returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasExpireAt() bool { - if o != nil && !IsNil(o.ExpireAt) { - return true - } - - return false -} - -// SetExpireAt gets a reference to the given time.Time and assigns it to the ExpireAt field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetExpireAt(v time.Time) { - o.ExpireAt = &v -} - -// GetVerified returns the Verified field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVerified() bool { - if o == nil { - var ret bool - return ret - } - - return o.Verified -} - -// GetVerifiedOk returns a tuple with the Verified field value -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetVerifiedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Verified, true -} - -// SetVerified sets field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetVerified(v bool) { - o.Verified = v -} - -// GetReviewed returns the Reviewed field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetReviewed() bool { - if o == nil || IsNil(o.Reviewed) { - var ret bool - return ret - } - return *o.Reviewed -} - -// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetReviewedOk() (*bool, bool) { - if o == nil || IsNil(o.Reviewed) { - return nil, false - } - return o.Reviewed, true -} - -// HasReviewed returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasReviewed() bool { - if o != nil && !IsNil(o.Reviewed) { - return true - } - - return false -} - -// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetReviewed(v bool) { - o.Reviewed = &v -} - -// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetAvatarSrc() string { - if o == nil || IsNil(o.AvatarSrc) { - var ret string - return ret - } - return *o.AvatarSrc -} - -// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetAvatarSrcOk() (*string, bool) { - if o == nil || IsNil(o.AvatarSrc) { - return nil, false - } - return o.AvatarSrc, true -} - -// HasAvatarSrc returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasAvatarSrc() bool { - if o != nil && !IsNil(o.AvatarSrc) { - return true - } - - return false -} - -// SetAvatarSrc gets a reference to the given string and assigns it to the AvatarSrc field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetAvatarSrc(v string) { - o.AvatarSrc = &v -} - -// GetIsSpam returns the IsSpam field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsSpam() bool { - if o == nil || IsNil(o.IsSpam) { - var ret bool - return ret - } - return *o.IsSpam -} - -// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsSpamOk() (*bool, bool) { - if o == nil || IsNil(o.IsSpam) { - return nil, false - } - return o.IsSpam, true -} - -// HasIsSpam returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsSpam() bool { - if o != nil && !IsNil(o.IsSpam) { - return true - } - - return false -} - -// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsSpam(v bool) { - o.IsSpam = &v -} - -// GetHasImages returns the HasImages field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasImages() bool { - if o == nil || IsNil(o.HasImages) { - var ret bool - return ret - } - return *o.HasImages -} - -// GetHasImagesOk returns a tuple with the HasImages field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasImagesOk() (*bool, bool) { - if o == nil || IsNil(o.HasImages) { - return nil, false - } - return o.HasImages, true -} - -// HasHasImages returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasHasImages() bool { - if o != nil && !IsNil(o.HasImages) { - return true - } - - return false -} - -// SetHasImages gets a reference to the given bool and assigns it to the HasImages field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetHasImages(v bool) { - o.HasImages = &v -} - -// GetHasLinks returns the HasLinks field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasLinks() bool { - if o == nil || IsNil(o.HasLinks) { - var ret bool - return ret - } - return *o.HasLinks -} - -// GetHasLinksOk returns a tuple with the HasLinks field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasLinksOk() (*bool, bool) { - if o == nil || IsNil(o.HasLinks) { - return nil, false - } - return o.HasLinks, true -} - -// HasHasLinks returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasHasLinks() bool { - if o != nil && !IsNil(o.HasLinks) { - return true - } - - return false -} - -// SetHasLinks gets a reference to the given bool and assigns it to the HasLinks field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetHasLinks(v bool) { - o.HasLinks = &v -} - -// GetHasCode returns the HasCode field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasCode() bool { - if o == nil || IsNil(o.HasCode) { - var ret bool - return ret - } - return *o.HasCode -} - -// GetHasCodeOk returns a tuple with the HasCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetHasCodeOk() (*bool, bool) { - if o == nil || IsNil(o.HasCode) { - return nil, false - } - return o.HasCode, true -} - -// HasHasCode returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasHasCode() bool { - if o != nil && !IsNil(o.HasCode) { - return true - } - - return false -} - -// SetHasCode gets a reference to the given bool and assigns it to the HasCode field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetHasCode(v bool) { - o.HasCode = &v -} - -// GetApproved returns the Approved field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetApproved() bool { - if o == nil { - var ret bool - return ret - } - - return o.Approved -} - -// GetApprovedOk returns a tuple with the Approved field value -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetApprovedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.Approved, true -} - -// SetApproved sets field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetApproved(v bool) { - o.Approved = v -} - -// GetLocale returns the Locale field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetLocale() string { - if o == nil { - var ret string - return ret - } - - return o.Locale -} - -// GetLocaleOk returns a tuple with the Locale field value -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetLocaleOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Locale, true -} - -// SetLocale sets field value -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetLocale(v string) { - o.Locale = v -} - -// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsDeleted() bool { - if o == nil || IsNil(o.IsDeleted) { - var ret bool - return ret - } - return *o.IsDeleted -} - -// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsDeletedOk() (*bool, bool) { - if o == nil || IsNil(o.IsDeleted) { - return nil, false - } - return o.IsDeleted, true -} - -// HasIsDeleted returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsDeleted() bool { - if o != nil && !IsNil(o.IsDeleted) { - return true - } - - return false -} - -// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsDeleted(v bool) { - o.IsDeleted = &v -} - -// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsDeletedUser() bool { - if o == nil || IsNil(o.IsDeletedUser) { - var ret bool - return ret - } - return *o.IsDeletedUser -} - -// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsDeletedUserOk() (*bool, bool) { - if o == nil || IsNil(o.IsDeletedUser) { - return nil, false - } - return o.IsDeletedUser, true -} - -// HasIsDeletedUser returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsDeletedUser() bool { - if o != nil && !IsNil(o.IsDeletedUser) { - return true - } - - return false -} - -// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsDeletedUser(v bool) { - o.IsDeletedUser = &v -} - -// GetIsBannedUser returns the IsBannedUser field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsBannedUser() bool { - if o == nil || IsNil(o.IsBannedUser) { - var ret bool - return ret - } - return *o.IsBannedUser -} - -// GetIsBannedUserOk returns a tuple with the IsBannedUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsBannedUserOk() (*bool, bool) { - if o == nil || IsNil(o.IsBannedUser) { - return nil, false - } - return o.IsBannedUser, true -} - -// HasIsBannedUser returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsBannedUser() bool { - if o != nil && !IsNil(o.IsBannedUser) { - return true - } - - return false -} - -// SetIsBannedUser gets a reference to the given bool and assigns it to the IsBannedUser field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsBannedUser(v bool) { - o.IsBannedUser = &v -} - -// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsByAdmin() bool { - if o == nil || IsNil(o.IsByAdmin) { - var ret bool - return ret - } - return *o.IsByAdmin -} - -// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsByAdminOk() (*bool, bool) { - if o == nil || IsNil(o.IsByAdmin) { - return nil, false - } - return o.IsByAdmin, true -} - -// HasIsByAdmin returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsByAdmin() bool { - if o != nil && !IsNil(o.IsByAdmin) { - return true - } - - return false -} - -// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsByAdmin(v bool) { - o.IsByAdmin = &v -} - -// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsByModerator() bool { - if o == nil || IsNil(o.IsByModerator) { - var ret bool - return ret - } - return *o.IsByModerator -} - -// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsByModeratorOk() (*bool, bool) { - if o == nil || IsNil(o.IsByModerator) { - return nil, false - } - return o.IsByModerator, true -} - -// HasIsByModerator returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsByModerator() bool { - if o != nil && !IsNil(o.IsByModerator) { - return true - } - - return false -} - -// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsByModerator(v bool) { - o.IsByModerator = &v -} - -// GetIsPinned returns the IsPinned field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsPinned() bool { - if o == nil || IsNil(o.IsPinned) { - var ret bool - return ret - } - return *o.IsPinned -} - -// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsPinnedOk() (*bool, bool) { - if o == nil || IsNil(o.IsPinned) { - return nil, false - } - return o.IsPinned, true -} - -// HasIsPinned returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsPinned() bool { - if o != nil && !IsNil(o.IsPinned) { - return true - } - - return false -} - -// SetIsPinned gets a reference to the given bool and assigns it to the IsPinned field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsPinned(v bool) { - o.IsPinned = &v -} - -// GetIsLocked returns the IsLocked field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsLocked() bool { - if o == nil || IsNil(o.IsLocked) { - var ret bool - return ret - } - return *o.IsLocked -} - -// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetIsLockedOk() (*bool, bool) { - if o == nil || IsNil(o.IsLocked) { - return nil, false - } - return o.IsLocked, true -} - -// HasIsLocked returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasIsLocked() bool { - if o != nil && !IsNil(o.IsLocked) { - return true - } - - return false -} - -// SetIsLocked gets a reference to the given bool and assigns it to the IsLocked field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetIsLocked(v bool) { - o.IsLocked = &v -} - -// GetFlagCount returns the FlagCount field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetFlagCount() int32 { - if o == nil || IsNil(o.FlagCount) { - var ret int32 - return ret - } - return *o.FlagCount -} - -// GetFlagCountOk returns a tuple with the FlagCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetFlagCountOk() (*int32, bool) { - if o == nil || IsNil(o.FlagCount) { - return nil, false - } - return o.FlagCount, true -} - -// HasFlagCount returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasFlagCount() bool { - if o != nil && !IsNil(o.FlagCount) { - return true - } - - return false -} - -// SetFlagCount gets a reference to the given int32 and assigns it to the FlagCount field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetFlagCount(v int32) { - o.FlagCount = &v -} - -// GetRating returns the Rating field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetRating() float64 { - if o == nil || IsNil(o.Rating) { - var ret float64 - return ret - } - return *o.Rating -} - -// GetRatingOk returns a tuple with the Rating field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetRatingOk() (*float64, bool) { - if o == nil || IsNil(o.Rating) { - return nil, false - } - return o.Rating, true -} - -// HasRating returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasRating() bool { - if o != nil && !IsNil(o.Rating) { - return true - } - - return false -} - -// SetRating gets a reference to the given float64 and assigns it to the Rating field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetRating(v float64) { - o.Rating = &v -} - -// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDisplayLabel() string { - if o == nil || IsNil(o.DisplayLabel) { - var ret string - return ret - } - return *o.DisplayLabel -} - -// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDisplayLabelOk() (*string, bool) { - if o == nil || IsNil(o.DisplayLabel) { - return nil, false - } - return o.DisplayLabel, true -} - -// HasDisplayLabel returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasDisplayLabel() bool { - if o != nil && !IsNil(o.DisplayLabel) { - return true - } - - return false -} - -// SetDisplayLabel gets a reference to the given string and assigns it to the DisplayLabel field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetDisplayLabel(v string) { - o.DisplayLabel = &v -} - -// GetBadges returns the Badges field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetBadges() []CommentUserBadgeInfo { - if o == nil || IsNil(o.Badges) { - var ret []CommentUserBadgeInfo - return ret - } - return o.Badges -} - -// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { - if o == nil || IsNil(o.Badges) { - return nil, false - } - return o.Badges, true -} - -// HasBadges returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasBadges() bool { - if o != nil && !IsNil(o.Badges) { - return true - } - - return false -} - -// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetBadges(v []CommentUserBadgeInfo) { - o.Badges = v -} - -// GetDomain returns the Domain field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDomain() string { - if o == nil || IsNil(o.Domain) { - var ret string - return ret - } - return *o.Domain -} - -// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetDomainOk() (*string, bool) { - if o == nil || IsNil(o.Domain) { - return nil, false - } - return o.Domain, true -} - -// HasDomain returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasDomain() bool { - if o != nil && !IsNil(o.Domain) { - return true - } - - return false -} - -// SetDomain gets a reference to the given string and assigns it to the Domain field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetDomain(v string) { - o.Domain = &v -} - -// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetFeedbackIds() []string { - if o == nil || IsNil(o.FeedbackIds) { - var ret []string - return ret - } - return o.FeedbackIds -} - -// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetFeedbackIdsOk() ([]string, bool) { - if o == nil || IsNil(o.FeedbackIds) { - return nil, false - } - return o.FeedbackIds, true -} - -// HasFeedbackIds returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasFeedbackIds() bool { - if o != nil && !IsNil(o.FeedbackIds) { - return true - } - - return false -} - -// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetFeedbackIds(v []string) { - o.FeedbackIds = v -} - -// GetGroupIds returns the GroupIds field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetGroupIds() []string { - if o == nil || IsNil(o.GroupIds) { - var ret []string - return ret - } - return o.GroupIds -} - -// GetGroupIdsOk returns a tuple with the GroupIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetGroupIdsOk() ([]string, bool) { - if o == nil || IsNil(o.GroupIds) { - return nil, false - } - return o.GroupIds, true -} - -// HasGroupIds returns a boolean if a field has been set. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasGroupIds() bool { - if o != nil && !IsNil(o.GroupIds) { - return true - } - - return false -} - -// SetGroupIds gets a reference to the given []string and assigns it to the GroupIds field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetGroupIds(v []string) { - o.GroupIds = v -} - -// GetViewCount returns the ViewCount field value if set, zero value otherwise. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetViewCount() int64 { - if o == nil || IsNil(o.ViewCount) { - var ret int64 - 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 *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) GetViewCountOk() (*int64, 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 *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) HasViewCount() bool { - if o != nil && !IsNil(o.ViewCount) { - return true - } - - return false -} - -// SetViewCount gets a reference to the given int64 and assigns it to the ViewCount field. -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) SetViewCount(v int64) { - o.ViewCount = &v -} - -func (o PickOmitFCommentDatePublicCommentPubSubFieldsKeys) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PickOmitFCommentDatePublicCommentPubSubFieldsKeys) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Date != nil { - toSerialize["date"] = o.Date - } - toSerialize["_id"] = o.Id - toSerialize["tenantId"] = o.TenantId - toSerialize["urlId"] = o.UrlId - toSerialize["url"] = o.Url - if !IsNil(o.PageTitle) { - toSerialize["pageTitle"] = o.PageTitle - } - if !IsNil(o.UserId) { - toSerialize["userId"] = o.UserId - } - if !IsNil(o.AnonUserId) { - toSerialize["anonUserId"] = o.AnonUserId - } - toSerialize["commenterName"] = o.CommenterName - if !IsNil(o.CommenterLink) { - toSerialize["commenterLink"] = o.CommenterLink - } - toSerialize["comment"] = o.Comment - toSerialize["commentHTML"] = o.CommentHTML - if !IsNil(o.ParentId) { - toSerialize["parentId"] = o.ParentId - } - if !IsNil(o.Votes) { - toSerialize["votes"] = o.Votes - } - if !IsNil(o.VotesUp) { - toSerialize["votesUp"] = o.VotesUp - } - if !IsNil(o.VotesDown) { - toSerialize["votesDown"] = o.VotesDown - } - if !IsNil(o.ExpireAt) { - toSerialize["expireAt"] = o.ExpireAt - } - toSerialize["verified"] = o.Verified - if !IsNil(o.Reviewed) { - toSerialize["reviewed"] = o.Reviewed - } - if !IsNil(o.AvatarSrc) { - toSerialize["avatarSrc"] = o.AvatarSrc - } - if !IsNil(o.IsSpam) { - toSerialize["isSpam"] = o.IsSpam - } - if !IsNil(o.HasImages) { - toSerialize["hasImages"] = o.HasImages - } - if !IsNil(o.HasLinks) { - toSerialize["hasLinks"] = o.HasLinks - } - if !IsNil(o.HasCode) { - toSerialize["hasCode"] = o.HasCode - } - toSerialize["approved"] = o.Approved - toSerialize["locale"] = o.Locale - if !IsNil(o.IsDeleted) { - toSerialize["isDeleted"] = o.IsDeleted - } - if !IsNil(o.IsDeletedUser) { - toSerialize["isDeletedUser"] = o.IsDeletedUser - } - if !IsNil(o.IsBannedUser) { - toSerialize["isBannedUser"] = o.IsBannedUser - } - if !IsNil(o.IsByAdmin) { - toSerialize["isByAdmin"] = o.IsByAdmin - } - if !IsNil(o.IsByModerator) { - toSerialize["isByModerator"] = o.IsByModerator - } - if !IsNil(o.IsPinned) { - toSerialize["isPinned"] = o.IsPinned - } - if !IsNil(o.IsLocked) { - toSerialize["isLocked"] = o.IsLocked - } - if !IsNil(o.FlagCount) { - toSerialize["flagCount"] = o.FlagCount - } - if !IsNil(o.Rating) { - toSerialize["rating"] = o.Rating - } - if !IsNil(o.DisplayLabel) { - toSerialize["displayLabel"] = o.DisplayLabel - } - if !IsNil(o.Badges) { - toSerialize["badges"] = o.Badges - } - if !IsNil(o.Domain) { - toSerialize["domain"] = o.Domain - } - if !IsNil(o.FeedbackIds) { - toSerialize["feedbackIds"] = o.FeedbackIds - } - if !IsNil(o.GroupIds) { - toSerialize["groupIds"] = o.GroupIds - } - if !IsNil(o.ViewCount) { - toSerialize["viewCount"] = o.ViewCount - } - return toSerialize, nil -} - -func (o *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "date", - "_id", - "tenantId", - "urlId", - "url", - "commenterName", - "comment", - "commentHTML", - "verified", - "approved", - "locale", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPickOmitFCommentDatePublicCommentPubSubFieldsKeys := _PickOmitFCommentDatePublicCommentPubSubFieldsKeys{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPickOmitFCommentDatePublicCommentPubSubFieldsKeys) - - if err != nil { - return err - } - - *o = PickOmitFCommentDatePublicCommentPubSubFieldsKeys(varPickOmitFCommentDatePublicCommentPubSubFieldsKeys) - - return err -} - -type NullablePickOmitFCommentDatePublicCommentPubSubFieldsKeys struct { - value *PickOmitFCommentDatePublicCommentPubSubFieldsKeys - isSet bool -} - -func (v NullablePickOmitFCommentDatePublicCommentPubSubFieldsKeys) Get() *PickOmitFCommentDatePublicCommentPubSubFieldsKeys { - return v.value -} - -func (v *NullablePickOmitFCommentDatePublicCommentPubSubFieldsKeys) Set(val *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) { - v.value = val - v.isSet = true -} - -func (v NullablePickOmitFCommentDatePublicCommentPubSubFieldsKeys) IsSet() bool { - return v.isSet -} - -func (v *NullablePickOmitFCommentDatePublicCommentPubSubFieldsKeys) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePickOmitFCommentDatePublicCommentPubSubFieldsKeys(val *PickOmitFCommentDatePublicCommentPubSubFieldsKeys) *NullablePickOmitFCommentDatePublicCommentPubSubFieldsKeys { - return &NullablePickOmitFCommentDatePublicCommentPubSubFieldsKeys{value: val, isSet: true} -} - -func (v NullablePickOmitFCommentDatePublicCommentPubSubFieldsKeys) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePickOmitFCommentDatePublicCommentPubSubFieldsKeys) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_pub_sub_comment.go b/client/model_pub_sub_comment.go index a467f08..421103e 100644 --- a/client/model_pub_sub_comment.go +++ b/client/model_pub_sub_comment.go @@ -22,49 +22,49 @@ var _ MappedNullable = &PubSubComment{} // PubSubComment struct for PubSubComment type PubSubComment struct { - Date string `json:"date"` Id string `json:"_id"` TenantId string `json:"tenantId"` + UserId NullableString `json:"userId,omitempty"` UrlId string `json:"urlId"` - Url string `json:"url"` - PageTitle *string `json:"pageTitle,omitempty"` - UserId *string `json:"userId,omitempty"` - AnonUserId *string `json:"anonUserId,omitempty"` CommenterName string `json:"commenterName"` - CommenterLink *string `json:"commenterLink,omitempty"` - Comment string `json:"comment"` + CommenterLink NullableString `json:"commenterLink,omitempty"` CommentHTML string `json:"commentHTML"` - ParentId *string `json:"parentId,omitempty"` - Votes *int32 `json:"votes,omitempty"` - VotesUp *int32 `json:"votesUp,omitempty"` - VotesDown *int32 `json:"votesDown,omitempty"` - ExpireAt *time.Time `json:"expireAt,omitempty"` + Comment string `json:"comment"` + ParentId NullableString `json:"parentId,omitempty"` + Votes NullableInt32 `json:"votes,omitempty"` + VotesUp NullableInt32 `json:"votesUp,omitempty"` + VotesDown NullableInt32 `json:"votesDown,omitempty"` Verified bool `json:"verified"` - Reviewed *bool `json:"reviewed,omitempty"` - AvatarSrc *string `json:"avatarSrc,omitempty"` - IsSpam *bool `json:"isSpam,omitempty"` + AvatarSrc NullableString `json:"avatarSrc,omitempty"` HasImages *bool `json:"hasImages,omitempty"` HasLinks *bool `json:"hasLinks,omitempty"` - HasCode *bool `json:"hasCode,omitempty"` - Approved bool `json:"approved"` - Locale string `json:"locale"` - IsDeleted *bool `json:"isDeleted,omitempty"` - IsDeletedUser *bool `json:"isDeletedUser,omitempty"` - IsBannedUser *bool `json:"isBannedUser,omitempty"` IsByAdmin *bool `json:"isByAdmin,omitempty"` IsByModerator *bool `json:"isByModerator,omitempty"` - IsPinned *bool `json:"isPinned,omitempty"` - IsLocked *bool `json:"isLocked,omitempty"` - FlagCount *int32 `json:"flagCount,omitempty"` - Rating *float64 `json:"rating,omitempty"` - DisplayLabel *string `json:"displayLabel,omitempty"` + IsPinned NullableBool `json:"isPinned,omitempty"` + IsLocked NullableBool `json:"isLocked,omitempty"` + DisplayLabel NullableString `json:"displayLabel,omitempty"` + Rating NullableFloat64 `json:"rating,omitempty"` Badges []CommentUserBadgeInfo `json:"badges,omitempty"` - Domain *string `json:"domain,omitempty"` + ViewCount NullableInt64 `json:"viewCount,omitempty"` + IsDeleted *bool `json:"isDeleted,omitempty"` + IsDeletedUser *bool `json:"isDeletedUser,omitempty"` + IsSpam *bool `json:"isSpam,omitempty"` + AnonUserId NullableString `json:"anonUserId,omitempty"` FeedbackIds []string `json:"feedbackIds,omitempty"` + FlagCount NullableInt32 `json:"flagCount,omitempty"` + Domain NullableString `json:"domain,omitempty"` + Url string `json:"url"` + PageTitle NullableString `json:"pageTitle,omitempty"` + ExpireAt NullableTime `json:"expireAt,omitempty"` + Reviewed *bool `json:"reviewed,omitempty"` + HasCode *bool `json:"hasCode,omitempty"` + Approved bool `json:"approved"` + Locale NullableString `json:"locale"` + IsBannedUser *bool `json:"isBannedUser,omitempty"` GroupIds []string `json:"groupIds,omitempty"` - ViewCount *int64 `json:"viewCount,omitempty"` IsLive *bool `json:"isLive,omitempty"` Hidden *bool `json:"hidden,omitempty"` + Date string `json:"date"` } type _PubSubComment PubSubComment @@ -73,19 +73,19 @@ type _PubSubComment PubSubComment // 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 NewPubSubComment(date string, id string, tenantId string, urlId string, url string, commenterName string, comment string, commentHTML string, verified bool, approved bool, locale string) *PubSubComment { +func NewPubSubComment(id string, tenantId string, urlId string, commenterName string, commentHTML string, comment string, verified bool, url string, approved bool, locale NullableString, date string) *PubSubComment { this := PubSubComment{} - this.Date = date this.Id = id this.TenantId = tenantId this.UrlId = urlId - this.Url = url this.CommenterName = commenterName - this.Comment = comment this.CommentHTML = commentHTML + this.Comment = comment this.Verified = verified + this.Url = url this.Approved = approved this.Locale = locale + this.Date = date return &this } @@ -97,30 +97,6 @@ func NewPubSubCommentWithDefaults() *PubSubComment { return &this } -// GetDate returns the Date field value -func (o *PubSubComment) GetDate() string { - if o == nil { - var ret string - return ret - } - - return o.Date -} - -// GetDateOk returns a tuple with the Date field value -// and a boolean to check if the value has been set. -func (o *PubSubComment) GetDateOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Date, true -} - -// SetDate sets field value -func (o *PubSubComment) SetDate(v string) { - o.Date = v -} - // GetId returns the Id field value func (o *PubSubComment) GetId() string { if o == nil { @@ -169,148 +145,70 @@ func (o *PubSubComment) SetTenantId(v string) { o.TenantId = v } -// GetUrlId returns the UrlId field value -func (o *PubSubComment) GetUrlId() string { - if o == nil { - var ret string - return ret - } - - return o.UrlId -} - -// GetUrlIdOk returns a tuple with the UrlId field value -// and a boolean to check if the value has been set. -func (o *PubSubComment) GetUrlIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.UrlId, true -} - -// SetUrlId sets field value -func (o *PubSubComment) SetUrlId(v string) { - o.UrlId = v -} - -// GetUrl returns the Url field value -func (o *PubSubComment) GetUrl() string { - if o == nil { - var ret string - return ret - } - - return o.Url -} - -// GetUrlOk returns a tuple with the Url field value -// and a boolean to check if the value has been set. -func (o *PubSubComment) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *PubSubComment) SetUrl(v string) { - o.Url = v -} - -// GetPageTitle returns the PageTitle field value if set, zero value otherwise. -func (o *PubSubComment) GetPageTitle() string { - if o == nil || IsNil(o.PageTitle) { - var ret string - return ret - } - return *o.PageTitle -} - -// GetPageTitleOk returns a tuple with the PageTitle field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PubSubComment) GetPageTitleOk() (*string, bool) { - if o == nil || IsNil(o.PageTitle) { - return nil, false - } - return o.PageTitle, true -} - -// HasPageTitle returns a boolean if a field has been set. -func (o *PubSubComment) HasPageTitle() bool { - if o != nil && !IsNil(o.PageTitle) { - return true - } - - return false -} - -// SetPageTitle gets a reference to the given string and assigns it to the PageTitle field. -func (o *PubSubComment) SetPageTitle(v string) { - o.PageTitle = &v -} - -// GetUserId returns the UserId field value if set, zero value otherwise. +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PubSubComment) GetUserId() string { - if o == nil || IsNil(o.UserId) { + if o == nil || IsNil(o.UserId.Get()) { var ret string return ret } - return *o.UserId + return *o.UserId.Get() } // GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PubSubComment) GetUserIdOk() (*string, bool) { - if o == nil || IsNil(o.UserId) { + if o == nil { return nil, false } - return o.UserId, true + return o.UserId.Get(), o.UserId.IsSet() } // HasUserId returns a boolean if a field has been set. func (o *PubSubComment) HasUserId() bool { - if o != nil && !IsNil(o.UserId) { + if o != nil && o.UserId.IsSet() { return true } return false } -// SetUserId gets a reference to the given string and assigns it to the UserId field. +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. func (o *PubSubComment) SetUserId(v string) { - o.UserId = &v + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *PubSubComment) SetUserIdNil() { + o.UserId.Set(nil) } -// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise. -func (o *PubSubComment) GetAnonUserId() string { - if o == nil || IsNil(o.AnonUserId) { +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *PubSubComment) UnsetUserId() { + o.UserId.Unset() +} + +// GetUrlId returns the UrlId field value +func (o *PubSubComment) GetUrlId() string { + if o == nil { var ret string return ret } - return *o.AnonUserId + + return o.UrlId } -// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise +// GetUrlIdOk returns a tuple with the UrlId field value // and a boolean to check if the value has been set. -func (o *PubSubComment) GetAnonUserIdOk() (*string, bool) { - if o == nil || IsNil(o.AnonUserId) { +func (o *PubSubComment) GetUrlIdOk() (*string, bool) { + if o == nil { return nil, false } - return o.AnonUserId, true -} - -// HasAnonUserId returns a boolean if a field has been set. -func (o *PubSubComment) HasAnonUserId() bool { - if o != nil && !IsNil(o.AnonUserId) { - return true - } - - return false + return &o.UrlId, true } -// SetAnonUserId gets a reference to the given string and assigns it to the AnonUserId field. -func (o *PubSubComment) SetAnonUserId(v string) { - o.AnonUserId = &v +// SetUrlId sets field value +func (o *PubSubComment) SetUrlId(v string) { + o.UrlId = v } // GetCommenterName returns the CommenterName field value @@ -337,244 +235,262 @@ func (o *PubSubComment) SetCommenterName(v string) { o.CommenterName = v } -// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise. +// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PubSubComment) GetCommenterLink() string { - if o == nil || IsNil(o.CommenterLink) { + if o == nil || IsNil(o.CommenterLink.Get()) { var ret string return ret } - return *o.CommenterLink + return *o.CommenterLink.Get() } // GetCommenterLinkOk returns a tuple with the CommenterLink field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PubSubComment) GetCommenterLinkOk() (*string, bool) { - if o == nil || IsNil(o.CommenterLink) { + if o == nil { return nil, false } - return o.CommenterLink, true + return o.CommenterLink.Get(), o.CommenterLink.IsSet() } // HasCommenterLink returns a boolean if a field has been set. func (o *PubSubComment) HasCommenterLink() bool { - if o != nil && !IsNil(o.CommenterLink) { + if o != nil && o.CommenterLink.IsSet() { return true } return false } -// SetCommenterLink gets a reference to the given string and assigns it to the CommenterLink field. +// SetCommenterLink gets a reference to the given NullableString and assigns it to the CommenterLink field. func (o *PubSubComment) SetCommenterLink(v string) { - o.CommenterLink = &v + o.CommenterLink.Set(&v) +} +// SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil +func (o *PubSubComment) SetCommenterLinkNil() { + o.CommenterLink.Set(nil) } -// GetComment returns the Comment field value -func (o *PubSubComment) GetComment() string { +// UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +func (o *PubSubComment) UnsetCommenterLink() { + o.CommenterLink.Unset() +} + +// GetCommentHTML returns the CommentHTML field value +func (o *PubSubComment) GetCommentHTML() string { if o == nil { var ret string return ret } - return o.Comment + return o.CommentHTML } -// GetCommentOk returns a tuple with the Comment field value +// GetCommentHTMLOk returns a tuple with the CommentHTML field value // and a boolean to check if the value has been set. -func (o *PubSubComment) GetCommentOk() (*string, bool) { +func (o *PubSubComment) GetCommentHTMLOk() (*string, bool) { if o == nil { return nil, false } - return &o.Comment, true + return &o.CommentHTML, true } -// SetComment sets field value -func (o *PubSubComment) SetComment(v string) { - o.Comment = v +// SetCommentHTML sets field value +func (o *PubSubComment) SetCommentHTML(v string) { + o.CommentHTML = v } -// GetCommentHTML returns the CommentHTML field value -func (o *PubSubComment) GetCommentHTML() string { +// GetComment returns the Comment field value +func (o *PubSubComment) GetComment() string { if o == nil { var ret string return ret } - return o.CommentHTML + return o.Comment } -// GetCommentHTMLOk returns a tuple with the CommentHTML field value +// GetCommentOk returns a tuple with the Comment field value // and a boolean to check if the value has been set. -func (o *PubSubComment) GetCommentHTMLOk() (*string, bool) { +func (o *PubSubComment) GetCommentOk() (*string, bool) { if o == nil { return nil, false } - return &o.CommentHTML, true + return &o.Comment, true } -// SetCommentHTML sets field value -func (o *PubSubComment) SetCommentHTML(v string) { - o.CommentHTML = v +// SetComment sets field value +func (o *PubSubComment) SetComment(v string) { + o.Comment = v } -// GetParentId returns the ParentId field value if set, zero value otherwise. +// GetParentId returns the ParentId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PubSubComment) GetParentId() string { - if o == nil || IsNil(o.ParentId) { + if o == nil || IsNil(o.ParentId.Get()) { var ret string return ret } - return *o.ParentId + return *o.ParentId.Get() } // GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PubSubComment) GetParentIdOk() (*string, bool) { - if o == nil || IsNil(o.ParentId) { + if o == nil { return nil, false } - return o.ParentId, true + return o.ParentId.Get(), o.ParentId.IsSet() } // HasParentId returns a boolean if a field has been set. func (o *PubSubComment) HasParentId() bool { - if o != nil && !IsNil(o.ParentId) { + if o != nil && o.ParentId.IsSet() { return true } return false } -// SetParentId gets a reference to the given string and assigns it to the ParentId field. +// SetParentId gets a reference to the given NullableString and assigns it to the ParentId field. func (o *PubSubComment) SetParentId(v string) { - o.ParentId = &v + o.ParentId.Set(&v) +} +// SetParentIdNil sets the value for ParentId to be an explicit nil +func (o *PubSubComment) SetParentIdNil() { + o.ParentId.Set(nil) } -// GetVotes returns the Votes field value if set, zero value otherwise. +// UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +func (o *PubSubComment) UnsetParentId() { + o.ParentId.Unset() +} + +// GetVotes returns the Votes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PubSubComment) GetVotes() int32 { - if o == nil || IsNil(o.Votes) { + if o == nil || IsNil(o.Votes.Get()) { var ret int32 return ret } - return *o.Votes + return *o.Votes.Get() } // GetVotesOk returns a tuple with the Votes field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PubSubComment) GetVotesOk() (*int32, bool) { - if o == nil || IsNil(o.Votes) { + if o == nil { return nil, false } - return o.Votes, true + return o.Votes.Get(), o.Votes.IsSet() } // HasVotes returns a boolean if a field has been set. func (o *PubSubComment) HasVotes() bool { - if o != nil && !IsNil(o.Votes) { + if o != nil && o.Votes.IsSet() { return true } return false } -// SetVotes gets a reference to the given int32 and assigns it to the Votes field. +// SetVotes gets a reference to the given NullableInt32 and assigns it to the Votes field. func (o *PubSubComment) SetVotes(v int32) { - o.Votes = &v + o.Votes.Set(&v) +} +// SetVotesNil sets the value for Votes to be an explicit nil +func (o *PubSubComment) SetVotesNil() { + o.Votes.Set(nil) } -// GetVotesUp returns the VotesUp field value if set, zero value otherwise. +// UnsetVotes ensures that no value is present for Votes, not even an explicit nil +func (o *PubSubComment) UnsetVotes() { + o.Votes.Unset() +} + +// GetVotesUp returns the VotesUp field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PubSubComment) GetVotesUp() int32 { - if o == nil || IsNil(o.VotesUp) { + if o == nil || IsNil(o.VotesUp.Get()) { var ret int32 return ret } - return *o.VotesUp + return *o.VotesUp.Get() } // GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PubSubComment) GetVotesUpOk() (*int32, bool) { - if o == nil || IsNil(o.VotesUp) { + if o == nil { return nil, false } - return o.VotesUp, true + return o.VotesUp.Get(), o.VotesUp.IsSet() } // HasVotesUp returns a boolean if a field has been set. func (o *PubSubComment) HasVotesUp() bool { - if o != nil && !IsNil(o.VotesUp) { + if o != nil && o.VotesUp.IsSet() { return true } return false } -// SetVotesUp gets a reference to the given int32 and assigns it to the VotesUp field. +// SetVotesUp gets a reference to the given NullableInt32 and assigns it to the VotesUp field. func (o *PubSubComment) SetVotesUp(v int32) { - o.VotesUp = &v + o.VotesUp.Set(&v) +} +// SetVotesUpNil sets the value for VotesUp to be an explicit nil +func (o *PubSubComment) SetVotesUpNil() { + o.VotesUp.Set(nil) } -// GetVotesDown returns the VotesDown field value if set, zero value otherwise. +// UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil +func (o *PubSubComment) UnsetVotesUp() { + o.VotesUp.Unset() +} + +// GetVotesDown returns the VotesDown field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PubSubComment) GetVotesDown() int32 { - if o == nil || IsNil(o.VotesDown) { + if o == nil || IsNil(o.VotesDown.Get()) { var ret int32 return ret } - return *o.VotesDown + return *o.VotesDown.Get() } // GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PubSubComment) GetVotesDownOk() (*int32, bool) { - if o == nil || IsNil(o.VotesDown) { + if o == nil { return nil, false } - return o.VotesDown, true + return o.VotesDown.Get(), o.VotesDown.IsSet() } // HasVotesDown returns a boolean if a field has been set. func (o *PubSubComment) HasVotesDown() bool { - if o != nil && !IsNil(o.VotesDown) { + if o != nil && o.VotesDown.IsSet() { return true } return false } -// SetVotesDown gets a reference to the given int32 and assigns it to the VotesDown field. +// SetVotesDown gets a reference to the given NullableInt32 and assigns it to the VotesDown field. func (o *PubSubComment) SetVotesDown(v int32) { - o.VotesDown = &v -} - -// GetExpireAt returns the ExpireAt field value if set, zero value otherwise. -func (o *PubSubComment) GetExpireAt() time.Time { - if o == nil || IsNil(o.ExpireAt) { - var ret time.Time - return ret - } - return *o.ExpireAt -} - -// GetExpireAtOk returns a tuple with the ExpireAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PubSubComment) GetExpireAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.ExpireAt) { - return nil, false - } - return o.ExpireAt, true + o.VotesDown.Set(&v) } - -// HasExpireAt returns a boolean if a field has been set. -func (o *PubSubComment) HasExpireAt() bool { - if o != nil && !IsNil(o.ExpireAt) { - return true - } - - return false +// SetVotesDownNil sets the value for VotesDown to be an explicit nil +func (o *PubSubComment) SetVotesDownNil() { + o.VotesDown.Set(nil) } -// SetExpireAt gets a reference to the given time.Time and assigns it to the ExpireAt field. -func (o *PubSubComment) SetExpireAt(v time.Time) { - o.ExpireAt = &v +// UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +func (o *PubSubComment) UnsetVotesDown() { + o.VotesDown.Unset() } // GetVerified returns the Verified field value @@ -601,100 +517,46 @@ func (o *PubSubComment) SetVerified(v bool) { o.Verified = v } -// GetReviewed returns the Reviewed field value if set, zero value otherwise. -func (o *PubSubComment) GetReviewed() bool { - if o == nil || IsNil(o.Reviewed) { - var ret bool +// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetAvatarSrc() string { + if o == nil || IsNil(o.AvatarSrc.Get()) { + var ret string return ret } - return *o.Reviewed + return *o.AvatarSrc.Get() } -// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise +// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetReviewedOk() (*bool, bool) { - if o == nil || IsNil(o.Reviewed) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetAvatarSrcOk() (*string, bool) { + if o == nil { return nil, false } - return o.Reviewed, true + return o.AvatarSrc.Get(), o.AvatarSrc.IsSet() } -// HasReviewed returns a boolean if a field has been set. -func (o *PubSubComment) HasReviewed() bool { - if o != nil && !IsNil(o.Reviewed) { +// HasAvatarSrc returns a boolean if a field has been set. +func (o *PubSubComment) HasAvatarSrc() bool { + if o != nil && o.AvatarSrc.IsSet() { return true } return false } -// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. -func (o *PubSubComment) SetReviewed(v bool) { - o.Reviewed = &v +// SetAvatarSrc gets a reference to the given NullableString and assigns it to the AvatarSrc field. +func (o *PubSubComment) SetAvatarSrc(v string) { + o.AvatarSrc.Set(&v) +} +// SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil +func (o *PubSubComment) SetAvatarSrcNil() { + o.AvatarSrc.Set(nil) } -// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise. -func (o *PubSubComment) GetAvatarSrc() string { - if o == nil || IsNil(o.AvatarSrc) { - var ret string - return ret - } - return *o.AvatarSrc -} - -// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PubSubComment) GetAvatarSrcOk() (*string, bool) { - if o == nil || IsNil(o.AvatarSrc) { - return nil, false - } - return o.AvatarSrc, true -} - -// HasAvatarSrc returns a boolean if a field has been set. -func (o *PubSubComment) HasAvatarSrc() bool { - if o != nil && !IsNil(o.AvatarSrc) { - return true - } - - return false -} - -// SetAvatarSrc gets a reference to the given string and assigns it to the AvatarSrc field. -func (o *PubSubComment) SetAvatarSrc(v string) { - o.AvatarSrc = &v -} - -// GetIsSpam returns the IsSpam field value if set, zero value otherwise. -func (o *PubSubComment) GetIsSpam() bool { - if o == nil || IsNil(o.IsSpam) { - var ret bool - return ret - } - return *o.IsSpam -} - -// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PubSubComment) GetIsSpamOk() (*bool, bool) { - if o == nil || IsNil(o.IsSpam) { - return nil, false - } - return o.IsSpam, true -} - -// HasIsSpam returns a boolean if a field has been set. -func (o *PubSubComment) HasIsSpam() bool { - if o != nil && !IsNil(o.IsSpam) { - return true - } - - return false -} - -// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. -func (o *PubSubComment) SetIsSpam(v bool) { - o.IsSpam = &v +// UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +func (o *PubSubComment) UnsetAvatarSrc() { + o.AvatarSrc.Unset() } // GetHasImages returns the HasImages field value if set, zero value otherwise. @@ -761,84 +623,311 @@ func (o *PubSubComment) SetHasLinks(v bool) { o.HasLinks = &v } -// GetHasCode returns the HasCode field value if set, zero value otherwise. -func (o *PubSubComment) GetHasCode() bool { - if o == nil || IsNil(o.HasCode) { +// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. +func (o *PubSubComment) GetIsByAdmin() bool { + if o == nil || IsNil(o.IsByAdmin) { var ret bool return ret } - return *o.HasCode + return *o.IsByAdmin } -// GetHasCodeOk returns a tuple with the HasCode field value if set, nil otherwise +// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetHasCodeOk() (*bool, bool) { - if o == nil || IsNil(o.HasCode) { +func (o *PubSubComment) GetIsByAdminOk() (*bool, bool) { + if o == nil || IsNil(o.IsByAdmin) { return nil, false } - return o.HasCode, true + return o.IsByAdmin, true } -// HasHasCode returns a boolean if a field has been set. -func (o *PubSubComment) HasHasCode() bool { - if o != nil && !IsNil(o.HasCode) { +// HasIsByAdmin returns a boolean if a field has been set. +func (o *PubSubComment) HasIsByAdmin() bool { + if o != nil && !IsNil(o.IsByAdmin) { return true } return false } -// SetHasCode gets a reference to the given bool and assigns it to the HasCode field. -func (o *PubSubComment) SetHasCode(v bool) { - o.HasCode = &v +// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. +func (o *PubSubComment) SetIsByAdmin(v bool) { + o.IsByAdmin = &v } -// GetApproved returns the Approved field value -func (o *PubSubComment) GetApproved() bool { - if o == nil { +// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. +func (o *PubSubComment) GetIsByModerator() bool { + if o == nil || IsNil(o.IsByModerator) { var ret bool return ret } + return *o.IsByModerator +} - return o.Approved +// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubComment) GetIsByModeratorOk() (*bool, bool) { + if o == nil || IsNil(o.IsByModerator) { + return nil, false + } + return o.IsByModerator, true } -// GetApprovedOk returns a tuple with the Approved field value +// HasIsByModerator returns a boolean if a field has been set. +func (o *PubSubComment) HasIsByModerator() bool { + if o != nil && !IsNil(o.IsByModerator) { + return true + } + + return false +} + +// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. +func (o *PubSubComment) SetIsByModerator(v bool) { + o.IsByModerator = &v +} + +// GetIsPinned returns the IsPinned field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetIsPinned() bool { + if o == nil || IsNil(o.IsPinned.Get()) { + var ret bool + return ret + } + return *o.IsPinned.Get() +} + +// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetApprovedOk() (*bool, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetIsPinnedOk() (*bool, bool) { if o == nil { return nil, false } - return &o.Approved, true + return o.IsPinned.Get(), o.IsPinned.IsSet() } -// SetApproved sets field value -func (o *PubSubComment) SetApproved(v bool) { - o.Approved = v +// HasIsPinned returns a boolean if a field has been set. +func (o *PubSubComment) HasIsPinned() bool { + if o != nil && o.IsPinned.IsSet() { + return true + } + + return false } -// GetLocale returns the Locale field value -func (o *PubSubComment) GetLocale() string { +// SetIsPinned gets a reference to the given NullableBool and assigns it to the IsPinned field. +func (o *PubSubComment) SetIsPinned(v bool) { + o.IsPinned.Set(&v) +} +// SetIsPinnedNil sets the value for IsPinned to be an explicit nil +func (o *PubSubComment) SetIsPinnedNil() { + o.IsPinned.Set(nil) +} + +// UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +func (o *PubSubComment) UnsetIsPinned() { + o.IsPinned.Unset() +} + +// GetIsLocked returns the IsLocked field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetIsLocked() bool { + if o == nil || IsNil(o.IsLocked.Get()) { + var ret bool + return ret + } + return *o.IsLocked.Get() +} + +// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetIsLockedOk() (*bool, bool) { if o == nil { + return nil, false + } + return o.IsLocked.Get(), o.IsLocked.IsSet() +} + +// HasIsLocked returns a boolean if a field has been set. +func (o *PubSubComment) HasIsLocked() bool { + if o != nil && o.IsLocked.IsSet() { + return true + } + + return false +} + +// SetIsLocked gets a reference to the given NullableBool and assigns it to the IsLocked field. +func (o *PubSubComment) SetIsLocked(v bool) { + o.IsLocked.Set(&v) +} +// SetIsLockedNil sets the value for IsLocked to be an explicit nil +func (o *PubSubComment) SetIsLockedNil() { + o.IsLocked.Set(nil) +} + +// UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +func (o *PubSubComment) UnsetIsLocked() { + o.IsLocked.Unset() +} + +// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetDisplayLabel() string { + if o == nil || IsNil(o.DisplayLabel.Get()) { var ret string return ret } + return *o.DisplayLabel.Get() +} - return o.Locale +// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetDisplayLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayLabel.Get(), o.DisplayLabel.IsSet() } -// GetLocaleOk returns a tuple with the Locale field value +// HasDisplayLabel returns a boolean if a field has been set. +func (o *PubSubComment) HasDisplayLabel() bool { + if o != nil && o.DisplayLabel.IsSet() { + return true + } + + return false +} + +// SetDisplayLabel gets a reference to the given NullableString and assigns it to the DisplayLabel field. +func (o *PubSubComment) SetDisplayLabel(v string) { + o.DisplayLabel.Set(&v) +} +// SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil +func (o *PubSubComment) SetDisplayLabelNil() { + o.DisplayLabel.Set(nil) +} + +// UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +func (o *PubSubComment) UnsetDisplayLabel() { + o.DisplayLabel.Unset() +} + +// GetRating returns the Rating field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetRating() float64 { + if o == nil || IsNil(o.Rating.Get()) { + var ret float64 + return ret + } + return *o.Rating.Get() +} + +// GetRatingOk returns a tuple with the Rating field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetLocaleOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetRatingOk() (*float64, bool) { if o == nil { return nil, false } - return &o.Locale, true + return o.Rating.Get(), o.Rating.IsSet() } -// SetLocale sets field value -func (o *PubSubComment) SetLocale(v string) { - o.Locale = v +// HasRating returns a boolean if a field has been set. +func (o *PubSubComment) HasRating() bool { + if o != nil && o.Rating.IsSet() { + return true + } + + return false +} + +// SetRating gets a reference to the given NullableFloat64 and assigns it to the Rating field. +func (o *PubSubComment) SetRating(v float64) { + o.Rating.Set(&v) +} +// SetRatingNil sets the value for Rating to be an explicit nil +func (o *PubSubComment) SetRatingNil() { + o.Rating.Set(nil) +} + +// UnsetRating ensures that no value is present for Rating, not even an explicit nil +func (o *PubSubComment) UnsetRating() { + o.Rating.Unset() +} + +// GetBadges returns the Badges field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetBadges() []CommentUserBadgeInfo { + if o == nil { + var ret []CommentUserBadgeInfo + return ret + } + return o.Badges +} + +// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { + if o == nil || IsNil(o.Badges) { + return nil, false + } + return o.Badges, true +} + +// HasBadges returns a boolean if a field has been set. +func (o *PubSubComment) HasBadges() bool { + if o != nil && !IsNil(o.Badges) { + return true + } + + return false +} + +// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. +func (o *PubSubComment) SetBadges(v []CommentUserBadgeInfo) { + o.Badges = v +} + +// GetViewCount returns the ViewCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetViewCount() int64 { + if o == nil || IsNil(o.ViewCount.Get()) { + var ret int64 + return ret + } + return *o.ViewCount.Get() +} + +// GetViewCountOk returns a tuple with the ViewCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetViewCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.ViewCount.Get(), o.ViewCount.IsSet() +} + +// HasViewCount returns a boolean if a field has been set. +func (o *PubSubComment) HasViewCount() bool { + if o != nil && o.ViewCount.IsSet() { + return true + } + + return false +} + +// SetViewCount gets a reference to the given NullableInt64 and assigns it to the ViewCount field. +func (o *PubSubComment) SetViewCount(v int64) { + o.ViewCount.Set(&v) +} +// SetViewCountNil sets the value for ViewCount to be an explicit nil +func (o *PubSubComment) SetViewCountNil() { + o.ViewCount.Set(nil) +} + +// UnsetViewCount ensures that no value is present for ViewCount, not even an explicit nil +func (o *PubSubComment) UnsetViewCount() { + o.ViewCount.Unset() } // GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. @@ -905,361 +994,453 @@ func (o *PubSubComment) SetIsDeletedUser(v bool) { o.IsDeletedUser = &v } -// GetIsBannedUser returns the IsBannedUser field value if set, zero value otherwise. -func (o *PubSubComment) GetIsBannedUser() bool { - if o == nil || IsNil(o.IsBannedUser) { +// GetIsSpam returns the IsSpam field value if set, zero value otherwise. +func (o *PubSubComment) GetIsSpam() bool { + if o == nil || IsNil(o.IsSpam) { var ret bool return ret } - return *o.IsBannedUser + return *o.IsSpam } -// GetIsBannedUserOk returns a tuple with the IsBannedUser field value if set, nil otherwise +// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetIsBannedUserOk() (*bool, bool) { - if o == nil || IsNil(o.IsBannedUser) { +func (o *PubSubComment) GetIsSpamOk() (*bool, bool) { + if o == nil || IsNil(o.IsSpam) { return nil, false } - return o.IsBannedUser, true + return o.IsSpam, true } -// HasIsBannedUser returns a boolean if a field has been set. -func (o *PubSubComment) HasIsBannedUser() bool { - if o != nil && !IsNil(o.IsBannedUser) { +// HasIsSpam returns a boolean if a field has been set. +func (o *PubSubComment) HasIsSpam() bool { + if o != nil && !IsNil(o.IsSpam) { return true } return false } -// SetIsBannedUser gets a reference to the given bool and assigns it to the IsBannedUser field. -func (o *PubSubComment) SetIsBannedUser(v bool) { - o.IsBannedUser = &v +// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. +func (o *PubSubComment) SetIsSpam(v bool) { + o.IsSpam = &v } -// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. -func (o *PubSubComment) GetIsByAdmin() bool { - if o == nil || IsNil(o.IsByAdmin) { - var ret bool +// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetAnonUserId() string { + if o == nil || IsNil(o.AnonUserId.Get()) { + var ret string return ret } - return *o.IsByAdmin + return *o.AnonUserId.Get() } -// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise +// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetIsByAdminOk() (*bool, bool) { - if o == nil || IsNil(o.IsByAdmin) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetAnonUserIdOk() (*string, bool) { + if o == nil { return nil, false } - return o.IsByAdmin, true + return o.AnonUserId.Get(), o.AnonUserId.IsSet() } -// HasIsByAdmin returns a boolean if a field has been set. -func (o *PubSubComment) HasIsByAdmin() bool { - if o != nil && !IsNil(o.IsByAdmin) { +// HasAnonUserId returns a boolean if a field has been set. +func (o *PubSubComment) HasAnonUserId() bool { + if o != nil && o.AnonUserId.IsSet() { return true } return false } -// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. -func (o *PubSubComment) SetIsByAdmin(v bool) { - o.IsByAdmin = &v +// SetAnonUserId gets a reference to the given NullableString and assigns it to the AnonUserId field. +func (o *PubSubComment) SetAnonUserId(v string) { + o.AnonUserId.Set(&v) +} +// SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil +func (o *PubSubComment) SetAnonUserIdNil() { + o.AnonUserId.Set(nil) } -// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. -func (o *PubSubComment) GetIsByModerator() bool { - if o == nil || IsNil(o.IsByModerator) { - var ret bool +// UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +func (o *PubSubComment) UnsetAnonUserId() { + o.AnonUserId.Unset() +} + +// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. +func (o *PubSubComment) GetFeedbackIds() []string { + if o == nil || IsNil(o.FeedbackIds) { + var ret []string return ret } - return *o.IsByModerator + return o.FeedbackIds } -// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise +// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetIsByModeratorOk() (*bool, bool) { - if o == nil || IsNil(o.IsByModerator) { +func (o *PubSubComment) GetFeedbackIdsOk() ([]string, bool) { + if o == nil || IsNil(o.FeedbackIds) { return nil, false } - return o.IsByModerator, true + return o.FeedbackIds, true } -// HasIsByModerator returns a boolean if a field has been set. -func (o *PubSubComment) HasIsByModerator() bool { - if o != nil && !IsNil(o.IsByModerator) { +// HasFeedbackIds returns a boolean if a field has been set. +func (o *PubSubComment) HasFeedbackIds() bool { + if o != nil && !IsNil(o.FeedbackIds) { return true } return false } -// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. -func (o *PubSubComment) SetIsByModerator(v bool) { - o.IsByModerator = &v +// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. +func (o *PubSubComment) SetFeedbackIds(v []string) { + o.FeedbackIds = v } -// GetIsPinned returns the IsPinned field value if set, zero value otherwise. -func (o *PubSubComment) GetIsPinned() bool { - if o == nil || IsNil(o.IsPinned) { - var ret bool +// GetFlagCount returns the FlagCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetFlagCount() int32 { + if o == nil || IsNil(o.FlagCount.Get()) { + var ret int32 return ret } - return *o.IsPinned + return *o.FlagCount.Get() } -// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise +// GetFlagCountOk returns a tuple with the FlagCount field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetIsPinnedOk() (*bool, bool) { - if o == nil || IsNil(o.IsPinned) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetFlagCountOk() (*int32, bool) { + if o == nil { return nil, false } - return o.IsPinned, true + return o.FlagCount.Get(), o.FlagCount.IsSet() } -// HasIsPinned returns a boolean if a field has been set. -func (o *PubSubComment) HasIsPinned() bool { - if o != nil && !IsNil(o.IsPinned) { +// HasFlagCount returns a boolean if a field has been set. +func (o *PubSubComment) HasFlagCount() bool { + if o != nil && o.FlagCount.IsSet() { return true } return false } -// SetIsPinned gets a reference to the given bool and assigns it to the IsPinned field. -func (o *PubSubComment) SetIsPinned(v bool) { - o.IsPinned = &v +// SetFlagCount gets a reference to the given NullableInt32 and assigns it to the FlagCount field. +func (o *PubSubComment) SetFlagCount(v int32) { + o.FlagCount.Set(&v) +} +// SetFlagCountNil sets the value for FlagCount to be an explicit nil +func (o *PubSubComment) SetFlagCountNil() { + o.FlagCount.Set(nil) } -// GetIsLocked returns the IsLocked field value if set, zero value otherwise. -func (o *PubSubComment) GetIsLocked() bool { - if o == nil || IsNil(o.IsLocked) { - var ret bool +// UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil +func (o *PubSubComment) UnsetFlagCount() { + o.FlagCount.Unset() +} + +// GetDomain returns the Domain field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetDomain() string { + if o == nil || IsNil(o.Domain.Get()) { + var ret string return ret } - return *o.IsLocked + return *o.Domain.Get() } -// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetIsLockedOk() (*bool, bool) { - if o == nil || IsNil(o.IsLocked) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetDomainOk() (*string, bool) { + if o == nil { return nil, false } - return o.IsLocked, true + return o.Domain.Get(), o.Domain.IsSet() } -// HasIsLocked returns a boolean if a field has been set. -func (o *PubSubComment) HasIsLocked() bool { - if o != nil && !IsNil(o.IsLocked) { +// HasDomain returns a boolean if a field has been set. +func (o *PubSubComment) HasDomain() bool { + if o != nil && o.Domain.IsSet() { return true } return false } -// SetIsLocked gets a reference to the given bool and assigns it to the IsLocked field. -func (o *PubSubComment) SetIsLocked(v bool) { - o.IsLocked = &v +// SetDomain gets a reference to the given NullableString and assigns it to the Domain field. +func (o *PubSubComment) SetDomain(v string) { + o.Domain.Set(&v) +} +// SetDomainNil sets the value for Domain to be an explicit nil +func (o *PubSubComment) SetDomainNil() { + o.Domain.Set(nil) } -// GetFlagCount returns the FlagCount field value if set, zero value otherwise. -func (o *PubSubComment) GetFlagCount() int32 { - if o == nil || IsNil(o.FlagCount) { - var ret int32 +// UnsetDomain ensures that no value is present for Domain, not even an explicit nil +func (o *PubSubComment) UnsetDomain() { + o.Domain.Unset() +} + +// GetUrl returns the Url field value +func (o *PubSubComment) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *PubSubComment) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *PubSubComment) SetUrl(v string) { + o.Url = v +} + +// GetPageTitle returns the PageTitle field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetPageTitle() string { + if o == nil || IsNil(o.PageTitle.Get()) { + var ret string return ret } - return *o.FlagCount + return *o.PageTitle.Get() } -// GetFlagCountOk returns a tuple with the FlagCount field value if set, nil otherwise +// GetPageTitleOk returns a tuple with the PageTitle field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetFlagCountOk() (*int32, bool) { - if o == nil || IsNil(o.FlagCount) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetPageTitleOk() (*string, bool) { + if o == nil { return nil, false } - return o.FlagCount, true + return o.PageTitle.Get(), o.PageTitle.IsSet() } -// HasFlagCount returns a boolean if a field has been set. -func (o *PubSubComment) HasFlagCount() bool { - if o != nil && !IsNil(o.FlagCount) { +// HasPageTitle returns a boolean if a field has been set. +func (o *PubSubComment) HasPageTitle() bool { + if o != nil && o.PageTitle.IsSet() { return true } return false } -// SetFlagCount gets a reference to the given int32 and assigns it to the FlagCount field. -func (o *PubSubComment) SetFlagCount(v int32) { - o.FlagCount = &v +// SetPageTitle gets a reference to the given NullableString and assigns it to the PageTitle field. +func (o *PubSubComment) SetPageTitle(v string) { + o.PageTitle.Set(&v) +} +// SetPageTitleNil sets the value for PageTitle to be an explicit nil +func (o *PubSubComment) SetPageTitleNil() { + o.PageTitle.Set(nil) } -// GetRating returns the Rating field value if set, zero value otherwise. -func (o *PubSubComment) GetRating() float64 { - if o == nil || IsNil(o.Rating) { - var ret float64 +// UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +func (o *PubSubComment) UnsetPageTitle() { + o.PageTitle.Unset() +} + +// GetExpireAt returns the ExpireAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubComment) GetExpireAt() time.Time { + if o == nil || IsNil(o.ExpireAt.Get()) { + var ret time.Time return ret } - return *o.Rating + return *o.ExpireAt.Get() } -// GetRatingOk returns a tuple with the Rating field value if set, nil otherwise +// GetExpireAtOk returns a tuple with the ExpireAt field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetRatingOk() (*float64, bool) { - if o == nil || IsNil(o.Rating) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetExpireAtOk() (*time.Time, bool) { + if o == nil { return nil, false } - return o.Rating, true + return o.ExpireAt.Get(), o.ExpireAt.IsSet() } -// HasRating returns a boolean if a field has been set. -func (o *PubSubComment) HasRating() bool { - if o != nil && !IsNil(o.Rating) { +// HasExpireAt returns a boolean if a field has been set. +func (o *PubSubComment) HasExpireAt() bool { + if o != nil && o.ExpireAt.IsSet() { return true } return false } -// SetRating gets a reference to the given float64 and assigns it to the Rating field. -func (o *PubSubComment) SetRating(v float64) { - o.Rating = &v +// SetExpireAt gets a reference to the given NullableTime and assigns it to the ExpireAt field. +func (o *PubSubComment) SetExpireAt(v time.Time) { + o.ExpireAt.Set(&v) +} +// SetExpireAtNil sets the value for ExpireAt to be an explicit nil +func (o *PubSubComment) SetExpireAtNil() { + o.ExpireAt.Set(nil) } -// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise. -func (o *PubSubComment) GetDisplayLabel() string { - if o == nil || IsNil(o.DisplayLabel) { - var ret string +// UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +func (o *PubSubComment) UnsetExpireAt() { + o.ExpireAt.Unset() +} + +// GetReviewed returns the Reviewed field value if set, zero value otherwise. +func (o *PubSubComment) GetReviewed() bool { + if o == nil || IsNil(o.Reviewed) { + var ret bool return ret } - return *o.DisplayLabel + return *o.Reviewed } -// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise +// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetDisplayLabelOk() (*string, bool) { - if o == nil || IsNil(o.DisplayLabel) { +func (o *PubSubComment) GetReviewedOk() (*bool, bool) { + if o == nil || IsNil(o.Reviewed) { return nil, false } - return o.DisplayLabel, true + return o.Reviewed, true } -// HasDisplayLabel returns a boolean if a field has been set. -func (o *PubSubComment) HasDisplayLabel() bool { - if o != nil && !IsNil(o.DisplayLabel) { +// HasReviewed returns a boolean if a field has been set. +func (o *PubSubComment) HasReviewed() bool { + if o != nil && !IsNil(o.Reviewed) { return true } return false } -// SetDisplayLabel gets a reference to the given string and assigns it to the DisplayLabel field. -func (o *PubSubComment) SetDisplayLabel(v string) { - o.DisplayLabel = &v +// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. +func (o *PubSubComment) SetReviewed(v bool) { + o.Reviewed = &v } -// GetBadges returns the Badges field value if set, zero value otherwise. -func (o *PubSubComment) GetBadges() []CommentUserBadgeInfo { - if o == nil || IsNil(o.Badges) { - var ret []CommentUserBadgeInfo +// GetHasCode returns the HasCode field value if set, zero value otherwise. +func (o *PubSubComment) GetHasCode() bool { + if o == nil || IsNil(o.HasCode) { + var ret bool return ret } - return o.Badges + return *o.HasCode } -// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise +// GetHasCodeOk returns a tuple with the HasCode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { - if o == nil || IsNil(o.Badges) { +func (o *PubSubComment) GetHasCodeOk() (*bool, bool) { + if o == nil || IsNil(o.HasCode) { return nil, false } - return o.Badges, true + return o.HasCode, true } -// HasBadges returns a boolean if a field has been set. -func (o *PubSubComment) HasBadges() bool { - if o != nil && !IsNil(o.Badges) { +// HasHasCode returns a boolean if a field has been set. +func (o *PubSubComment) HasHasCode() bool { + if o != nil && !IsNil(o.HasCode) { return true } return false } -// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. -func (o *PubSubComment) SetBadges(v []CommentUserBadgeInfo) { - o.Badges = v +// SetHasCode gets a reference to the given bool and assigns it to the HasCode field. +func (o *PubSubComment) SetHasCode(v bool) { + o.HasCode = &v } -// GetDomain returns the Domain field value if set, zero value otherwise. -func (o *PubSubComment) GetDomain() string { - if o == nil || IsNil(o.Domain) { - var ret string +// GetApproved returns the Approved field value +func (o *PubSubComment) GetApproved() bool { + if o == nil { + var ret bool return ret } - return *o.Domain + + return o.Approved } -// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// GetApprovedOk returns a tuple with the Approved field value // and a boolean to check if the value has been set. -func (o *PubSubComment) GetDomainOk() (*string, bool) { - if o == nil || IsNil(o.Domain) { +func (o *PubSubComment) GetApprovedOk() (*bool, bool) { + if o == nil { return nil, false } - return o.Domain, true + return &o.Approved, true } -// HasDomain returns a boolean if a field has been set. -func (o *PubSubComment) HasDomain() bool { - if o != nil && !IsNil(o.Domain) { - return true +// SetApproved sets field value +func (o *PubSubComment) SetApproved(v bool) { + o.Approved = v +} + +// GetLocale returns the Locale field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PubSubComment) GetLocale() string { + if o == nil || o.Locale.Get() == nil { + var ret string + return ret } - return false + return *o.Locale.Get() } -// SetDomain gets a reference to the given string and assigns it to the Domain field. -func (o *PubSubComment) SetDomain(v string) { - o.Domain = &v +// GetLocaleOk returns a tuple with the Locale field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubComment) GetLocaleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Locale.Get(), o.Locale.IsSet() } -// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. -func (o *PubSubComment) GetFeedbackIds() []string { - if o == nil || IsNil(o.FeedbackIds) { - var ret []string +// SetLocale sets field value +func (o *PubSubComment) SetLocale(v string) { + o.Locale.Set(&v) +} + +// GetIsBannedUser returns the IsBannedUser field value if set, zero value otherwise. +func (o *PubSubComment) GetIsBannedUser() bool { + if o == nil || IsNil(o.IsBannedUser) { + var ret bool return ret } - return o.FeedbackIds + return *o.IsBannedUser } -// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise +// GetIsBannedUserOk returns a tuple with the IsBannedUser field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PubSubComment) GetFeedbackIdsOk() ([]string, bool) { - if o == nil || IsNil(o.FeedbackIds) { +func (o *PubSubComment) GetIsBannedUserOk() (*bool, bool) { + if o == nil || IsNil(o.IsBannedUser) { return nil, false } - return o.FeedbackIds, true + return o.IsBannedUser, true } -// HasFeedbackIds returns a boolean if a field has been set. -func (o *PubSubComment) HasFeedbackIds() bool { - if o != nil && !IsNil(o.FeedbackIds) { +// HasIsBannedUser returns a boolean if a field has been set. +func (o *PubSubComment) HasIsBannedUser() bool { + if o != nil && !IsNil(o.IsBannedUser) { return true } return false } -// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. -func (o *PubSubComment) SetFeedbackIds(v []string) { - o.FeedbackIds = v +// SetIsBannedUser gets a reference to the given bool and assigns it to the IsBannedUser field. +func (o *PubSubComment) SetIsBannedUser(v bool) { + o.IsBannedUser = &v } -// GetGroupIds returns the GroupIds field value if set, zero value otherwise. +// GetGroupIds returns the GroupIds field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PubSubComment) GetGroupIds() []string { - if o == nil || IsNil(o.GroupIds) { + if o == nil { var ret []string return ret } @@ -1268,6 +1449,7 @@ func (o *PubSubComment) GetGroupIds() []string { // GetGroupIdsOk returns a tuple with the GroupIds field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PubSubComment) GetGroupIdsOk() ([]string, bool) { if o == nil || IsNil(o.GroupIds) { return nil, false @@ -1289,38 +1471,6 @@ func (o *PubSubComment) SetGroupIds(v []string) { o.GroupIds = v } -// GetViewCount returns the ViewCount field value if set, zero value otherwise. -func (o *PubSubComment) GetViewCount() int64 { - if o == nil || IsNil(o.ViewCount) { - var ret int64 - 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 *PubSubComment) GetViewCountOk() (*int64, 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 *PubSubComment) HasViewCount() bool { - if o != nil && !IsNil(o.ViewCount) { - return true - } - - return false -} - -// SetViewCount gets a reference to the given int64 and assigns it to the ViewCount field. -func (o *PubSubComment) SetViewCount(v int64) { - o.ViewCount = &v -} - // GetIsLive returns the IsLive field value if set, zero value otherwise. func (o *PubSubComment) GetIsLive() bool { if o == nil || IsNil(o.IsLive) { @@ -1385,6 +1535,30 @@ func (o *PubSubComment) SetHidden(v bool) { o.Hidden = &v } +// GetDate returns the Date field value +func (o *PubSubComment) GetDate() string { + if o == nil { + var ret string + return ret + } + + return o.Date +} + +// GetDateOk returns a tuple with the Date field value +// and a boolean to check if the value has been set. +func (o *PubSubComment) GetDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Date, true +} + +// SetDate sets field value +func (o *PubSubComment) SetDate(v string) { + o.Date = v +} + func (o PubSubComment) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -1395,50 +1569,33 @@ func (o PubSubComment) MarshalJSON() ([]byte, error) { func (o PubSubComment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["date"] = o.Date toSerialize["_id"] = o.Id toSerialize["tenantId"] = o.TenantId - toSerialize["urlId"] = o.UrlId - toSerialize["url"] = o.Url - if !IsNil(o.PageTitle) { - toSerialize["pageTitle"] = o.PageTitle - } - if !IsNil(o.UserId) { - toSerialize["userId"] = o.UserId - } - if !IsNil(o.AnonUserId) { - toSerialize["anonUserId"] = o.AnonUserId + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() } + toSerialize["urlId"] = o.UrlId toSerialize["commenterName"] = o.CommenterName - if !IsNil(o.CommenterLink) { - toSerialize["commenterLink"] = o.CommenterLink + if o.CommenterLink.IsSet() { + toSerialize["commenterLink"] = o.CommenterLink.Get() } - toSerialize["comment"] = o.Comment toSerialize["commentHTML"] = o.CommentHTML - if !IsNil(o.ParentId) { - toSerialize["parentId"] = o.ParentId - } - if !IsNil(o.Votes) { - toSerialize["votes"] = o.Votes + toSerialize["comment"] = o.Comment + if o.ParentId.IsSet() { + toSerialize["parentId"] = o.ParentId.Get() } - if !IsNil(o.VotesUp) { - toSerialize["votesUp"] = o.VotesUp + if o.Votes.IsSet() { + toSerialize["votes"] = o.Votes.Get() } - if !IsNil(o.VotesDown) { - toSerialize["votesDown"] = o.VotesDown + if o.VotesUp.IsSet() { + toSerialize["votesUp"] = o.VotesUp.Get() } - if !IsNil(o.ExpireAt) { - toSerialize["expireAt"] = o.ExpireAt + if o.VotesDown.IsSet() { + toSerialize["votesDown"] = o.VotesDown.Get() } toSerialize["verified"] = o.Verified - if !IsNil(o.Reviewed) { - toSerialize["reviewed"] = o.Reviewed - } - if !IsNil(o.AvatarSrc) { - toSerialize["avatarSrc"] = o.AvatarSrc - } - if !IsNil(o.IsSpam) { - toSerialize["isSpam"] = o.IsSpam + if o.AvatarSrc.IsSet() { + toSerialize["avatarSrc"] = o.AvatarSrc.Get() } if !IsNil(o.HasImages) { toSerialize["hasImages"] = o.HasImages @@ -1446,62 +1603,79 @@ func (o PubSubComment) ToMap() (map[string]interface{}, error) { if !IsNil(o.HasLinks) { toSerialize["hasLinks"] = o.HasLinks } - if !IsNil(o.HasCode) { - toSerialize["hasCode"] = o.HasCode + if !IsNil(o.IsByAdmin) { + toSerialize["isByAdmin"] = o.IsByAdmin + } + if !IsNil(o.IsByModerator) { + toSerialize["isByModerator"] = o.IsByModerator + } + if o.IsPinned.IsSet() { + toSerialize["isPinned"] = o.IsPinned.Get() + } + if o.IsLocked.IsSet() { + toSerialize["isLocked"] = o.IsLocked.Get() + } + if o.DisplayLabel.IsSet() { + toSerialize["displayLabel"] = o.DisplayLabel.Get() + } + if o.Rating.IsSet() { + toSerialize["rating"] = o.Rating.Get() + } + if o.Badges != nil { + toSerialize["badges"] = o.Badges + } + if o.ViewCount.IsSet() { + toSerialize["viewCount"] = o.ViewCount.Get() } - toSerialize["approved"] = o.Approved - toSerialize["locale"] = o.Locale if !IsNil(o.IsDeleted) { toSerialize["isDeleted"] = o.IsDeleted } if !IsNil(o.IsDeletedUser) { toSerialize["isDeletedUser"] = o.IsDeletedUser } - if !IsNil(o.IsBannedUser) { - toSerialize["isBannedUser"] = o.IsBannedUser - } - if !IsNil(o.IsByAdmin) { - toSerialize["isByAdmin"] = o.IsByAdmin + if !IsNil(o.IsSpam) { + toSerialize["isSpam"] = o.IsSpam } - if !IsNil(o.IsByModerator) { - toSerialize["isByModerator"] = o.IsByModerator + if o.AnonUserId.IsSet() { + toSerialize["anonUserId"] = o.AnonUserId.Get() } - if !IsNil(o.IsPinned) { - toSerialize["isPinned"] = o.IsPinned + if !IsNil(o.FeedbackIds) { + toSerialize["feedbackIds"] = o.FeedbackIds } - if !IsNil(o.IsLocked) { - toSerialize["isLocked"] = o.IsLocked + if o.FlagCount.IsSet() { + toSerialize["flagCount"] = o.FlagCount.Get() } - if !IsNil(o.FlagCount) { - toSerialize["flagCount"] = o.FlagCount + if o.Domain.IsSet() { + toSerialize["domain"] = o.Domain.Get() } - if !IsNil(o.Rating) { - toSerialize["rating"] = o.Rating + toSerialize["url"] = o.Url + if o.PageTitle.IsSet() { + toSerialize["pageTitle"] = o.PageTitle.Get() } - if !IsNil(o.DisplayLabel) { - toSerialize["displayLabel"] = o.DisplayLabel + if o.ExpireAt.IsSet() { + toSerialize["expireAt"] = o.ExpireAt.Get() } - if !IsNil(o.Badges) { - toSerialize["badges"] = o.Badges + if !IsNil(o.Reviewed) { + toSerialize["reviewed"] = o.Reviewed } - if !IsNil(o.Domain) { - toSerialize["domain"] = o.Domain + if !IsNil(o.HasCode) { + toSerialize["hasCode"] = o.HasCode } - if !IsNil(o.FeedbackIds) { - toSerialize["feedbackIds"] = o.FeedbackIds + toSerialize["approved"] = o.Approved + toSerialize["locale"] = o.Locale.Get() + if !IsNil(o.IsBannedUser) { + toSerialize["isBannedUser"] = o.IsBannedUser } - if !IsNil(o.GroupIds) { + if o.GroupIds != nil { toSerialize["groupIds"] = o.GroupIds } - if !IsNil(o.ViewCount) { - toSerialize["viewCount"] = o.ViewCount - } if !IsNil(o.IsLive) { toSerialize["isLive"] = o.IsLive } if !IsNil(o.Hidden) { toSerialize["hidden"] = o.Hidden } + toSerialize["date"] = o.Date return toSerialize, nil } @@ -1510,17 +1684,17 @@ func (o *PubSubComment) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "date", "_id", "tenantId", "urlId", - "url", "commenterName", - "comment", "commentHTML", + "comment", "verified", + "url", "approved", "locale", + "date", } allProperties := make(map[string]interface{}) diff --git a/client/model_pub_sub_comment_base.go b/client/model_pub_sub_comment_base.go new file mode 100644 index 0000000..cfe953b --- /dev/null +++ b/client/model_pub_sub_comment_base.go @@ -0,0 +1,1665 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the PubSubCommentBase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PubSubCommentBase{} + +// PubSubCommentBase struct for PubSubCommentBase +type PubSubCommentBase struct { + Id string `json:"_id"` + TenantId string `json:"tenantId"` + UserId NullableString `json:"userId,omitempty"` + UrlId string `json:"urlId"` + CommenterName string `json:"commenterName"` + CommenterLink NullableString `json:"commenterLink,omitempty"` + CommentHTML string `json:"commentHTML"` + Comment string `json:"comment"` + ParentId NullableString `json:"parentId,omitempty"` + Votes NullableInt32 `json:"votes,omitempty"` + VotesUp NullableInt32 `json:"votesUp,omitempty"` + VotesDown NullableInt32 `json:"votesDown,omitempty"` + Verified bool `json:"verified"` + AvatarSrc NullableString `json:"avatarSrc,omitempty"` + HasImages *bool `json:"hasImages,omitempty"` + HasLinks *bool `json:"hasLinks,omitempty"` + IsByAdmin *bool `json:"isByAdmin,omitempty"` + IsByModerator *bool `json:"isByModerator,omitempty"` + IsPinned NullableBool `json:"isPinned,omitempty"` + IsLocked NullableBool `json:"isLocked,omitempty"` + DisplayLabel NullableString `json:"displayLabel,omitempty"` + Rating NullableFloat64 `json:"rating,omitempty"` + Badges []CommentUserBadgeInfo `json:"badges,omitempty"` + ViewCount NullableInt64 `json:"viewCount,omitempty"` + IsDeleted *bool `json:"isDeleted,omitempty"` + IsDeletedUser *bool `json:"isDeletedUser,omitempty"` + IsSpam *bool `json:"isSpam,omitempty"` + AnonUserId NullableString `json:"anonUserId,omitempty"` + FeedbackIds []string `json:"feedbackIds,omitempty"` + FlagCount NullableInt32 `json:"flagCount,omitempty"` + Domain NullableString `json:"domain,omitempty"` + Url string `json:"url"` + PageTitle NullableString `json:"pageTitle,omitempty"` + ExpireAt NullableTime `json:"expireAt,omitempty"` + Reviewed *bool `json:"reviewed,omitempty"` + HasCode *bool `json:"hasCode,omitempty"` + Approved bool `json:"approved"` + Locale NullableString `json:"locale"` + IsBannedUser *bool `json:"isBannedUser,omitempty"` + GroupIds []string `json:"groupIds,omitempty"` +} + +type _PubSubCommentBase PubSubCommentBase + +// NewPubSubCommentBase instantiates a new PubSubCommentBase 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 NewPubSubCommentBase(id string, tenantId string, urlId string, commenterName string, commentHTML string, comment string, verified bool, url string, approved bool, locale NullableString) *PubSubCommentBase { + this := PubSubCommentBase{} + this.Id = id + this.TenantId = tenantId + this.UrlId = urlId + this.CommenterName = commenterName + this.CommentHTML = commentHTML + this.Comment = comment + this.Verified = verified + this.Url = url + this.Approved = approved + this.Locale = locale + return &this +} + +// NewPubSubCommentBaseWithDefaults instantiates a new PubSubCommentBase 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 NewPubSubCommentBaseWithDefaults() *PubSubCommentBase { + this := PubSubCommentBase{} + return &this +} + +// GetId returns the Id field value +func (o *PubSubCommentBase) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PubSubCommentBase) SetId(v string) { + o.Id = v +} + +// GetTenantId returns the TenantId field value +func (o *PubSubCommentBase) GetTenantId() string { + if o == nil { + var ret string + return ret + } + + return o.TenantId +} + +// GetTenantIdOk returns a tuple with the TenantId field value +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetTenantIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TenantId, true +} + +// SetTenantId sets field value +func (o *PubSubCommentBase) SetTenantId(v string) { + o.TenantId = v +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *PubSubCommentBase) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *PubSubCommentBase) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *PubSubCommentBase) UnsetUserId() { + o.UserId.Unset() +} + +// GetUrlId returns the UrlId field value +func (o *PubSubCommentBase) GetUrlId() string { + if o == nil { + var ret string + return ret + } + + return o.UrlId +} + +// GetUrlIdOk returns a tuple with the UrlId field value +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetUrlIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UrlId, true +} + +// SetUrlId sets field value +func (o *PubSubCommentBase) SetUrlId(v string) { + o.UrlId = v +} + +// GetCommenterName returns the CommenterName field value +func (o *PubSubCommentBase) GetCommenterName() string { + if o == nil { + var ret string + return ret + } + + return o.CommenterName +} + +// GetCommenterNameOk returns a tuple with the CommenterName field value +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetCommenterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommenterName, true +} + +// SetCommenterName sets field value +func (o *PubSubCommentBase) SetCommenterName(v string) { + o.CommenterName = v +} + +// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetCommenterLink() string { + if o == nil || IsNil(o.CommenterLink.Get()) { + var ret string + return ret + } + return *o.CommenterLink.Get() +} + +// GetCommenterLinkOk returns a tuple with the CommenterLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetCommenterLinkOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommenterLink.Get(), o.CommenterLink.IsSet() +} + +// HasCommenterLink returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasCommenterLink() bool { + if o != nil && o.CommenterLink.IsSet() { + return true + } + + return false +} + +// SetCommenterLink gets a reference to the given NullableString and assigns it to the CommenterLink field. +func (o *PubSubCommentBase) SetCommenterLink(v string) { + o.CommenterLink.Set(&v) +} +// SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil +func (o *PubSubCommentBase) SetCommenterLinkNil() { + o.CommenterLink.Set(nil) +} + +// UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +func (o *PubSubCommentBase) UnsetCommenterLink() { + o.CommenterLink.Unset() +} + +// GetCommentHTML returns the CommentHTML field value +func (o *PubSubCommentBase) GetCommentHTML() string { + if o == nil { + var ret string + return ret + } + + return o.CommentHTML +} + +// GetCommentHTMLOk returns a tuple with the CommentHTML field value +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetCommentHTMLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommentHTML, true +} + +// SetCommentHTML sets field value +func (o *PubSubCommentBase) SetCommentHTML(v string) { + o.CommentHTML = v +} + +// GetComment returns the Comment field value +func (o *PubSubCommentBase) GetComment() string { + if o == nil { + var ret string + return ret + } + + return o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Comment, true +} + +// SetComment sets field value +func (o *PubSubCommentBase) SetComment(v string) { + o.Comment = v +} + +// GetParentId returns the ParentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetParentId() string { + if o == nil || IsNil(o.ParentId.Get()) { + var ret string + return ret + } + return *o.ParentId.Get() +} + +// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetParentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ParentId.Get(), o.ParentId.IsSet() +} + +// HasParentId returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasParentId() bool { + if o != nil && o.ParentId.IsSet() { + return true + } + + return false +} + +// SetParentId gets a reference to the given NullableString and assigns it to the ParentId field. +func (o *PubSubCommentBase) SetParentId(v string) { + o.ParentId.Set(&v) +} +// SetParentIdNil sets the value for ParentId to be an explicit nil +func (o *PubSubCommentBase) SetParentIdNil() { + o.ParentId.Set(nil) +} + +// UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +func (o *PubSubCommentBase) UnsetParentId() { + o.ParentId.Unset() +} + +// GetVotes returns the Votes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetVotes() int32 { + if o == nil || IsNil(o.Votes.Get()) { + var ret int32 + return ret + } + return *o.Votes.Get() +} + +// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetVotesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Votes.Get(), o.Votes.IsSet() +} + +// HasVotes returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasVotes() bool { + if o != nil && o.Votes.IsSet() { + return true + } + + return false +} + +// SetVotes gets a reference to the given NullableInt32 and assigns it to the Votes field. +func (o *PubSubCommentBase) SetVotes(v int32) { + o.Votes.Set(&v) +} +// SetVotesNil sets the value for Votes to be an explicit nil +func (o *PubSubCommentBase) SetVotesNil() { + o.Votes.Set(nil) +} + +// UnsetVotes ensures that no value is present for Votes, not even an explicit nil +func (o *PubSubCommentBase) UnsetVotes() { + o.Votes.Unset() +} + +// GetVotesUp returns the VotesUp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetVotesUp() int32 { + if o == nil || IsNil(o.VotesUp.Get()) { + var ret int32 + return ret + } + return *o.VotesUp.Get() +} + +// GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetVotesUpOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.VotesUp.Get(), o.VotesUp.IsSet() +} + +// HasVotesUp returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasVotesUp() bool { + if o != nil && o.VotesUp.IsSet() { + return true + } + + return false +} + +// SetVotesUp gets a reference to the given NullableInt32 and assigns it to the VotesUp field. +func (o *PubSubCommentBase) SetVotesUp(v int32) { + o.VotesUp.Set(&v) +} +// SetVotesUpNil sets the value for VotesUp to be an explicit nil +func (o *PubSubCommentBase) SetVotesUpNil() { + o.VotesUp.Set(nil) +} + +// UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil +func (o *PubSubCommentBase) UnsetVotesUp() { + o.VotesUp.Unset() +} + +// GetVotesDown returns the VotesDown field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetVotesDown() int32 { + if o == nil || IsNil(o.VotesDown.Get()) { + var ret int32 + return ret + } + return *o.VotesDown.Get() +} + +// GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetVotesDownOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.VotesDown.Get(), o.VotesDown.IsSet() +} + +// HasVotesDown returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasVotesDown() bool { + if o != nil && o.VotesDown.IsSet() { + return true + } + + return false +} + +// SetVotesDown gets a reference to the given NullableInt32 and assigns it to the VotesDown field. +func (o *PubSubCommentBase) SetVotesDown(v int32) { + o.VotesDown.Set(&v) +} +// SetVotesDownNil sets the value for VotesDown to be an explicit nil +func (o *PubSubCommentBase) SetVotesDownNil() { + o.VotesDown.Set(nil) +} + +// UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +func (o *PubSubCommentBase) UnsetVotesDown() { + o.VotesDown.Unset() +} + +// GetVerified returns the Verified field value +func (o *PubSubCommentBase) GetVerified() bool { + if o == nil { + var ret bool + return ret + } + + return o.Verified +} + +// GetVerifiedOk returns a tuple with the Verified field value +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetVerifiedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Verified, true +} + +// SetVerified sets field value +func (o *PubSubCommentBase) SetVerified(v bool) { + o.Verified = v +} + +// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetAvatarSrc() string { + if o == nil || IsNil(o.AvatarSrc.Get()) { + var ret string + return ret + } + return *o.AvatarSrc.Get() +} + +// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetAvatarSrcOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AvatarSrc.Get(), o.AvatarSrc.IsSet() +} + +// HasAvatarSrc returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasAvatarSrc() bool { + if o != nil && o.AvatarSrc.IsSet() { + return true + } + + return false +} + +// SetAvatarSrc gets a reference to the given NullableString and assigns it to the AvatarSrc field. +func (o *PubSubCommentBase) SetAvatarSrc(v string) { + o.AvatarSrc.Set(&v) +} +// SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil +func (o *PubSubCommentBase) SetAvatarSrcNil() { + o.AvatarSrc.Set(nil) +} + +// UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +func (o *PubSubCommentBase) UnsetAvatarSrc() { + o.AvatarSrc.Unset() +} + +// GetHasImages returns the HasImages field value if set, zero value otherwise. +func (o *PubSubCommentBase) GetHasImages() bool { + if o == nil || IsNil(o.HasImages) { + var ret bool + return ret + } + return *o.HasImages +} + +// GetHasImagesOk returns a tuple with the HasImages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetHasImagesOk() (*bool, bool) { + if o == nil || IsNil(o.HasImages) { + return nil, false + } + return o.HasImages, true +} + +// HasHasImages returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasHasImages() bool { + if o != nil && !IsNil(o.HasImages) { + return true + } + + return false +} + +// SetHasImages gets a reference to the given bool and assigns it to the HasImages field. +func (o *PubSubCommentBase) SetHasImages(v bool) { + o.HasImages = &v +} + +// GetHasLinks returns the HasLinks field value if set, zero value otherwise. +func (o *PubSubCommentBase) GetHasLinks() bool { + if o == nil || IsNil(o.HasLinks) { + var ret bool + return ret + } + return *o.HasLinks +} + +// GetHasLinksOk returns a tuple with the HasLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetHasLinksOk() (*bool, bool) { + if o == nil || IsNil(o.HasLinks) { + return nil, false + } + return o.HasLinks, true +} + +// HasHasLinks returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasHasLinks() bool { + if o != nil && !IsNil(o.HasLinks) { + return true + } + + return false +} + +// SetHasLinks gets a reference to the given bool and assigns it to the HasLinks field. +func (o *PubSubCommentBase) SetHasLinks(v bool) { + o.HasLinks = &v +} + +// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. +func (o *PubSubCommentBase) GetIsByAdmin() bool { + if o == nil || IsNil(o.IsByAdmin) { + var ret bool + return ret + } + return *o.IsByAdmin +} + +// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetIsByAdminOk() (*bool, bool) { + if o == nil || IsNil(o.IsByAdmin) { + return nil, false + } + return o.IsByAdmin, true +} + +// HasIsByAdmin returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasIsByAdmin() bool { + if o != nil && !IsNil(o.IsByAdmin) { + return true + } + + return false +} + +// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. +func (o *PubSubCommentBase) SetIsByAdmin(v bool) { + o.IsByAdmin = &v +} + +// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. +func (o *PubSubCommentBase) GetIsByModerator() bool { + if o == nil || IsNil(o.IsByModerator) { + var ret bool + return ret + } + return *o.IsByModerator +} + +// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetIsByModeratorOk() (*bool, bool) { + if o == nil || IsNil(o.IsByModerator) { + return nil, false + } + return o.IsByModerator, true +} + +// HasIsByModerator returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasIsByModerator() bool { + if o != nil && !IsNil(o.IsByModerator) { + return true + } + + return false +} + +// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. +func (o *PubSubCommentBase) SetIsByModerator(v bool) { + o.IsByModerator = &v +} + +// GetIsPinned returns the IsPinned field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetIsPinned() bool { + if o == nil || IsNil(o.IsPinned.Get()) { + var ret bool + return ret + } + return *o.IsPinned.Get() +} + +// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetIsPinnedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsPinned.Get(), o.IsPinned.IsSet() +} + +// HasIsPinned returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasIsPinned() bool { + if o != nil && o.IsPinned.IsSet() { + return true + } + + return false +} + +// SetIsPinned gets a reference to the given NullableBool and assigns it to the IsPinned field. +func (o *PubSubCommentBase) SetIsPinned(v bool) { + o.IsPinned.Set(&v) +} +// SetIsPinnedNil sets the value for IsPinned to be an explicit nil +func (o *PubSubCommentBase) SetIsPinnedNil() { + o.IsPinned.Set(nil) +} + +// UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +func (o *PubSubCommentBase) UnsetIsPinned() { + o.IsPinned.Unset() +} + +// GetIsLocked returns the IsLocked field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetIsLocked() bool { + if o == nil || IsNil(o.IsLocked.Get()) { + var ret bool + return ret + } + return *o.IsLocked.Get() +} + +// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetIsLockedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsLocked.Get(), o.IsLocked.IsSet() +} + +// HasIsLocked returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasIsLocked() bool { + if o != nil && o.IsLocked.IsSet() { + return true + } + + return false +} + +// SetIsLocked gets a reference to the given NullableBool and assigns it to the IsLocked field. +func (o *PubSubCommentBase) SetIsLocked(v bool) { + o.IsLocked.Set(&v) +} +// SetIsLockedNil sets the value for IsLocked to be an explicit nil +func (o *PubSubCommentBase) SetIsLockedNil() { + o.IsLocked.Set(nil) +} + +// UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +func (o *PubSubCommentBase) UnsetIsLocked() { + o.IsLocked.Unset() +} + +// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetDisplayLabel() string { + if o == nil || IsNil(o.DisplayLabel.Get()) { + var ret string + return ret + } + return *o.DisplayLabel.Get() +} + +// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetDisplayLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayLabel.Get(), o.DisplayLabel.IsSet() +} + +// HasDisplayLabel returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasDisplayLabel() bool { + if o != nil && o.DisplayLabel.IsSet() { + return true + } + + return false +} + +// SetDisplayLabel gets a reference to the given NullableString and assigns it to the DisplayLabel field. +func (o *PubSubCommentBase) SetDisplayLabel(v string) { + o.DisplayLabel.Set(&v) +} +// SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil +func (o *PubSubCommentBase) SetDisplayLabelNil() { + o.DisplayLabel.Set(nil) +} + +// UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +func (o *PubSubCommentBase) UnsetDisplayLabel() { + o.DisplayLabel.Unset() +} + +// GetRating returns the Rating field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetRating() float64 { + if o == nil || IsNil(o.Rating.Get()) { + var ret float64 + return ret + } + return *o.Rating.Get() +} + +// GetRatingOk returns a tuple with the Rating field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetRatingOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Rating.Get(), o.Rating.IsSet() +} + +// HasRating returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasRating() bool { + if o != nil && o.Rating.IsSet() { + return true + } + + return false +} + +// SetRating gets a reference to the given NullableFloat64 and assigns it to the Rating field. +func (o *PubSubCommentBase) SetRating(v float64) { + o.Rating.Set(&v) +} +// SetRatingNil sets the value for Rating to be an explicit nil +func (o *PubSubCommentBase) SetRatingNil() { + o.Rating.Set(nil) +} + +// UnsetRating ensures that no value is present for Rating, not even an explicit nil +func (o *PubSubCommentBase) UnsetRating() { + o.Rating.Unset() +} + +// GetBadges returns the Badges field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetBadges() []CommentUserBadgeInfo { + if o == nil { + var ret []CommentUserBadgeInfo + return ret + } + return o.Badges +} + +// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { + if o == nil || IsNil(o.Badges) { + return nil, false + } + return o.Badges, true +} + +// HasBadges returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasBadges() bool { + if o != nil && !IsNil(o.Badges) { + return true + } + + return false +} + +// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. +func (o *PubSubCommentBase) SetBadges(v []CommentUserBadgeInfo) { + o.Badges = v +} + +// GetViewCount returns the ViewCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetViewCount() int64 { + if o == nil || IsNil(o.ViewCount.Get()) { + var ret int64 + return ret + } + return *o.ViewCount.Get() +} + +// GetViewCountOk returns a tuple with the ViewCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetViewCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.ViewCount.Get(), o.ViewCount.IsSet() +} + +// HasViewCount returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasViewCount() bool { + if o != nil && o.ViewCount.IsSet() { + return true + } + + return false +} + +// SetViewCount gets a reference to the given NullableInt64 and assigns it to the ViewCount field. +func (o *PubSubCommentBase) SetViewCount(v int64) { + o.ViewCount.Set(&v) +} +// SetViewCountNil sets the value for ViewCount to be an explicit nil +func (o *PubSubCommentBase) SetViewCountNil() { + o.ViewCount.Set(nil) +} + +// UnsetViewCount ensures that no value is present for ViewCount, not even an explicit nil +func (o *PubSubCommentBase) UnsetViewCount() { + o.ViewCount.Unset() +} + +// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. +func (o *PubSubCommentBase) GetIsDeleted() bool { + if o == nil || IsNil(o.IsDeleted) { + var ret bool + return ret + } + return *o.IsDeleted +} + +// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetIsDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeleted) { + return nil, false + } + return o.IsDeleted, true +} + +// HasIsDeleted returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasIsDeleted() bool { + if o != nil && !IsNil(o.IsDeleted) { + return true + } + + return false +} + +// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. +func (o *PubSubCommentBase) SetIsDeleted(v bool) { + o.IsDeleted = &v +} + +// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. +func (o *PubSubCommentBase) GetIsDeletedUser() bool { + if o == nil || IsNil(o.IsDeletedUser) { + var ret bool + return ret + } + return *o.IsDeletedUser +} + +// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetIsDeletedUserOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeletedUser) { + return nil, false + } + return o.IsDeletedUser, true +} + +// HasIsDeletedUser returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasIsDeletedUser() bool { + if o != nil && !IsNil(o.IsDeletedUser) { + return true + } + + return false +} + +// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. +func (o *PubSubCommentBase) SetIsDeletedUser(v bool) { + o.IsDeletedUser = &v +} + +// GetIsSpam returns the IsSpam field value if set, zero value otherwise. +func (o *PubSubCommentBase) GetIsSpam() bool { + if o == nil || IsNil(o.IsSpam) { + var ret bool + return ret + } + return *o.IsSpam +} + +// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetIsSpamOk() (*bool, bool) { + if o == nil || IsNil(o.IsSpam) { + return nil, false + } + return o.IsSpam, true +} + +// HasIsSpam returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasIsSpam() bool { + if o != nil && !IsNil(o.IsSpam) { + return true + } + + return false +} + +// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. +func (o *PubSubCommentBase) SetIsSpam(v bool) { + o.IsSpam = &v +} + +// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetAnonUserId() string { + if o == nil || IsNil(o.AnonUserId.Get()) { + var ret string + return ret + } + return *o.AnonUserId.Get() +} + +// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetAnonUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AnonUserId.Get(), o.AnonUserId.IsSet() +} + +// HasAnonUserId returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasAnonUserId() bool { + if o != nil && o.AnonUserId.IsSet() { + return true + } + + return false +} + +// SetAnonUserId gets a reference to the given NullableString and assigns it to the AnonUserId field. +func (o *PubSubCommentBase) SetAnonUserId(v string) { + o.AnonUserId.Set(&v) +} +// SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil +func (o *PubSubCommentBase) SetAnonUserIdNil() { + o.AnonUserId.Set(nil) +} + +// UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +func (o *PubSubCommentBase) UnsetAnonUserId() { + o.AnonUserId.Unset() +} + +// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. +func (o *PubSubCommentBase) GetFeedbackIds() []string { + if o == nil || IsNil(o.FeedbackIds) { + var ret []string + return ret + } + return o.FeedbackIds +} + +// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetFeedbackIdsOk() ([]string, bool) { + if o == nil || IsNil(o.FeedbackIds) { + return nil, false + } + return o.FeedbackIds, true +} + +// HasFeedbackIds returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasFeedbackIds() bool { + if o != nil && !IsNil(o.FeedbackIds) { + return true + } + + return false +} + +// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. +func (o *PubSubCommentBase) SetFeedbackIds(v []string) { + o.FeedbackIds = v +} + +// GetFlagCount returns the FlagCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetFlagCount() int32 { + if o == nil || IsNil(o.FlagCount.Get()) { + var ret int32 + return ret + } + return *o.FlagCount.Get() +} + +// GetFlagCountOk returns a tuple with the FlagCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetFlagCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.FlagCount.Get(), o.FlagCount.IsSet() +} + +// HasFlagCount returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasFlagCount() bool { + if o != nil && o.FlagCount.IsSet() { + return true + } + + return false +} + +// SetFlagCount gets a reference to the given NullableInt32 and assigns it to the FlagCount field. +func (o *PubSubCommentBase) SetFlagCount(v int32) { + o.FlagCount.Set(&v) +} +// SetFlagCountNil sets the value for FlagCount to be an explicit nil +func (o *PubSubCommentBase) SetFlagCountNil() { + o.FlagCount.Set(nil) +} + +// UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil +func (o *PubSubCommentBase) UnsetFlagCount() { + o.FlagCount.Unset() +} + +// GetDomain returns the Domain field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetDomain() string { + if o == nil || IsNil(o.Domain.Get()) { + var ret string + return ret + } + return *o.Domain.Get() +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetDomainOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Domain.Get(), o.Domain.IsSet() +} + +// HasDomain returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasDomain() bool { + if o != nil && o.Domain.IsSet() { + return true + } + + return false +} + +// SetDomain gets a reference to the given NullableString and assigns it to the Domain field. +func (o *PubSubCommentBase) SetDomain(v string) { + o.Domain.Set(&v) +} +// SetDomainNil sets the value for Domain to be an explicit nil +func (o *PubSubCommentBase) SetDomainNil() { + o.Domain.Set(nil) +} + +// UnsetDomain ensures that no value is present for Domain, not even an explicit nil +func (o *PubSubCommentBase) UnsetDomain() { + o.Domain.Unset() +} + +// GetUrl returns the Url field value +func (o *PubSubCommentBase) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *PubSubCommentBase) SetUrl(v string) { + o.Url = v +} + +// GetPageTitle returns the PageTitle field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetPageTitle() string { + if o == nil || IsNil(o.PageTitle.Get()) { + var ret string + return ret + } + return *o.PageTitle.Get() +} + +// GetPageTitleOk returns a tuple with the PageTitle field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetPageTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PageTitle.Get(), o.PageTitle.IsSet() +} + +// HasPageTitle returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasPageTitle() bool { + if o != nil && o.PageTitle.IsSet() { + return true + } + + return false +} + +// SetPageTitle gets a reference to the given NullableString and assigns it to the PageTitle field. +func (o *PubSubCommentBase) SetPageTitle(v string) { + o.PageTitle.Set(&v) +} +// SetPageTitleNil sets the value for PageTitle to be an explicit nil +func (o *PubSubCommentBase) SetPageTitleNil() { + o.PageTitle.Set(nil) +} + +// UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +func (o *PubSubCommentBase) UnsetPageTitle() { + o.PageTitle.Unset() +} + +// GetExpireAt returns the ExpireAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetExpireAt() time.Time { + if o == nil || IsNil(o.ExpireAt.Get()) { + var ret time.Time + return ret + } + return *o.ExpireAt.Get() +} + +// GetExpireAtOk returns a tuple with the ExpireAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetExpireAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpireAt.Get(), o.ExpireAt.IsSet() +} + +// HasExpireAt returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasExpireAt() bool { + if o != nil && o.ExpireAt.IsSet() { + return true + } + + return false +} + +// SetExpireAt gets a reference to the given NullableTime and assigns it to the ExpireAt field. +func (o *PubSubCommentBase) SetExpireAt(v time.Time) { + o.ExpireAt.Set(&v) +} +// SetExpireAtNil sets the value for ExpireAt to be an explicit nil +func (o *PubSubCommentBase) SetExpireAtNil() { + o.ExpireAt.Set(nil) +} + +// UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +func (o *PubSubCommentBase) UnsetExpireAt() { + o.ExpireAt.Unset() +} + +// GetReviewed returns the Reviewed field value if set, zero value otherwise. +func (o *PubSubCommentBase) GetReviewed() bool { + if o == nil || IsNil(o.Reviewed) { + var ret bool + return ret + } + return *o.Reviewed +} + +// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetReviewedOk() (*bool, bool) { + if o == nil || IsNil(o.Reviewed) { + return nil, false + } + return o.Reviewed, true +} + +// HasReviewed returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasReviewed() bool { + if o != nil && !IsNil(o.Reviewed) { + return true + } + + return false +} + +// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. +func (o *PubSubCommentBase) SetReviewed(v bool) { + o.Reviewed = &v +} + +// GetHasCode returns the HasCode field value if set, zero value otherwise. +func (o *PubSubCommentBase) GetHasCode() bool { + if o == nil || IsNil(o.HasCode) { + var ret bool + return ret + } + return *o.HasCode +} + +// GetHasCodeOk returns a tuple with the HasCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetHasCodeOk() (*bool, bool) { + if o == nil || IsNil(o.HasCode) { + return nil, false + } + return o.HasCode, true +} + +// HasHasCode returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasHasCode() bool { + if o != nil && !IsNil(o.HasCode) { + return true + } + + return false +} + +// SetHasCode gets a reference to the given bool and assigns it to the HasCode field. +func (o *PubSubCommentBase) SetHasCode(v bool) { + o.HasCode = &v +} + +// GetApproved returns the Approved field value +func (o *PubSubCommentBase) GetApproved() bool { + if o == nil { + var ret bool + return ret + } + + return o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetApprovedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Approved, true +} + +// SetApproved sets field value +func (o *PubSubCommentBase) SetApproved(v bool) { + o.Approved = v +} + +// GetLocale returns the Locale field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PubSubCommentBase) GetLocale() string { + if o == nil || o.Locale.Get() == nil { + var ret string + return ret + } + + return *o.Locale.Get() +} + +// GetLocaleOk returns a tuple with the Locale field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetLocaleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Locale.Get(), o.Locale.IsSet() +} + +// SetLocale sets field value +func (o *PubSubCommentBase) SetLocale(v string) { + o.Locale.Set(&v) +} + +// GetIsBannedUser returns the IsBannedUser field value if set, zero value otherwise. +func (o *PubSubCommentBase) GetIsBannedUser() bool { + if o == nil || IsNil(o.IsBannedUser) { + var ret bool + return ret + } + return *o.IsBannedUser +} + +// GetIsBannedUserOk returns a tuple with the IsBannedUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PubSubCommentBase) GetIsBannedUserOk() (*bool, bool) { + if o == nil || IsNil(o.IsBannedUser) { + return nil, false + } + return o.IsBannedUser, true +} + +// HasIsBannedUser returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasIsBannedUser() bool { + if o != nil && !IsNil(o.IsBannedUser) { + return true + } + + return false +} + +// SetIsBannedUser gets a reference to the given bool and assigns it to the IsBannedUser field. +func (o *PubSubCommentBase) SetIsBannedUser(v bool) { + o.IsBannedUser = &v +} + +// GetGroupIds returns the GroupIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PubSubCommentBase) GetGroupIds() []string { + if o == nil { + var ret []string + return ret + } + return o.GroupIds +} + +// GetGroupIdsOk returns a tuple with the GroupIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PubSubCommentBase) GetGroupIdsOk() ([]string, bool) { + if o == nil || IsNil(o.GroupIds) { + return nil, false + } + return o.GroupIds, true +} + +// HasGroupIds returns a boolean if a field has been set. +func (o *PubSubCommentBase) HasGroupIds() bool { + if o != nil && !IsNil(o.GroupIds) { + return true + } + + return false +} + +// SetGroupIds gets a reference to the given []string and assigns it to the GroupIds field. +func (o *PubSubCommentBase) SetGroupIds(v []string) { + o.GroupIds = v +} + +func (o PubSubCommentBase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PubSubCommentBase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["_id"] = o.Id + toSerialize["tenantId"] = o.TenantId + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + toSerialize["urlId"] = o.UrlId + toSerialize["commenterName"] = o.CommenterName + if o.CommenterLink.IsSet() { + toSerialize["commenterLink"] = o.CommenterLink.Get() + } + toSerialize["commentHTML"] = o.CommentHTML + toSerialize["comment"] = o.Comment + if o.ParentId.IsSet() { + toSerialize["parentId"] = o.ParentId.Get() + } + if o.Votes.IsSet() { + toSerialize["votes"] = o.Votes.Get() + } + if o.VotesUp.IsSet() { + toSerialize["votesUp"] = o.VotesUp.Get() + } + if o.VotesDown.IsSet() { + toSerialize["votesDown"] = o.VotesDown.Get() + } + toSerialize["verified"] = o.Verified + if o.AvatarSrc.IsSet() { + toSerialize["avatarSrc"] = o.AvatarSrc.Get() + } + if !IsNil(o.HasImages) { + toSerialize["hasImages"] = o.HasImages + } + if !IsNil(o.HasLinks) { + toSerialize["hasLinks"] = o.HasLinks + } + if !IsNil(o.IsByAdmin) { + toSerialize["isByAdmin"] = o.IsByAdmin + } + if !IsNil(o.IsByModerator) { + toSerialize["isByModerator"] = o.IsByModerator + } + if o.IsPinned.IsSet() { + toSerialize["isPinned"] = o.IsPinned.Get() + } + if o.IsLocked.IsSet() { + toSerialize["isLocked"] = o.IsLocked.Get() + } + if o.DisplayLabel.IsSet() { + toSerialize["displayLabel"] = o.DisplayLabel.Get() + } + if o.Rating.IsSet() { + toSerialize["rating"] = o.Rating.Get() + } + if o.Badges != nil { + toSerialize["badges"] = o.Badges + } + if o.ViewCount.IsSet() { + toSerialize["viewCount"] = o.ViewCount.Get() + } + if !IsNil(o.IsDeleted) { + toSerialize["isDeleted"] = o.IsDeleted + } + if !IsNil(o.IsDeletedUser) { + toSerialize["isDeletedUser"] = o.IsDeletedUser + } + if !IsNil(o.IsSpam) { + toSerialize["isSpam"] = o.IsSpam + } + if o.AnonUserId.IsSet() { + toSerialize["anonUserId"] = o.AnonUserId.Get() + } + if !IsNil(o.FeedbackIds) { + toSerialize["feedbackIds"] = o.FeedbackIds + } + if o.FlagCount.IsSet() { + toSerialize["flagCount"] = o.FlagCount.Get() + } + if o.Domain.IsSet() { + toSerialize["domain"] = o.Domain.Get() + } + toSerialize["url"] = o.Url + if o.PageTitle.IsSet() { + toSerialize["pageTitle"] = o.PageTitle.Get() + } + if o.ExpireAt.IsSet() { + toSerialize["expireAt"] = o.ExpireAt.Get() + } + if !IsNil(o.Reviewed) { + toSerialize["reviewed"] = o.Reviewed + } + if !IsNil(o.HasCode) { + toSerialize["hasCode"] = o.HasCode + } + toSerialize["approved"] = o.Approved + toSerialize["locale"] = o.Locale.Get() + if !IsNil(o.IsBannedUser) { + toSerialize["isBannedUser"] = o.IsBannedUser + } + if o.GroupIds != nil { + toSerialize["groupIds"] = o.GroupIds + } + return toSerialize, nil +} + +func (o *PubSubCommentBase) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "_id", + "tenantId", + "urlId", + "commenterName", + "commentHTML", + "comment", + "verified", + "url", + "approved", + "locale", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPubSubCommentBase := _PubSubCommentBase{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPubSubCommentBase) + + if err != nil { + return err + } + + *o = PubSubCommentBase(varPubSubCommentBase) + + return err +} + +type NullablePubSubCommentBase struct { + value *PubSubCommentBase + isSet bool +} + +func (v NullablePubSubCommentBase) Get() *PubSubCommentBase { + return v.value +} + +func (v *NullablePubSubCommentBase) Set(val *PubSubCommentBase) { + v.value = val + v.isSet = true +} + +func (v NullablePubSubCommentBase) IsSet() bool { + return v.isSet +} + +func (v *NullablePubSubCommentBase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePubSubCommentBase(val *PubSubCommentBase) *NullablePubSubCommentBase { + return &NullablePubSubCommentBase{value: val, isSet: true} +} + +func (v NullablePubSubCommentBase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePubSubCommentBase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_public_api_delete_comment_response.go b/client/model_public_api_delete_comment_response.go index 21b1c33..582c8e9 100644 --- a/client/model_public_api_delete_comment_response.go +++ b/client/model_public_api_delete_comment_response.go @@ -21,9 +21,9 @@ var _ MappedNullable = &PublicAPIDeleteCommentResponse{} // PublicAPIDeleteCommentResponse struct for PublicAPIDeleteCommentResponse type PublicAPIDeleteCommentResponse struct { - Comment *PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId `json:"comment,omitempty"` + Comment *DeletedCommentResultComment `json:"comment,omitempty"` HardRemoved bool `json:"hardRemoved"` - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` } type _PublicAPIDeleteCommentResponse PublicAPIDeleteCommentResponse @@ -32,7 +32,7 @@ type _PublicAPIDeleteCommentResponse PublicAPIDeleteCommentResponse // 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 NewPublicAPIDeleteCommentResponse(hardRemoved bool, status ImportedAPIStatusSUCCESS) *PublicAPIDeleteCommentResponse { +func NewPublicAPIDeleteCommentResponse(hardRemoved bool, status APIStatus) *PublicAPIDeleteCommentResponse { this := PublicAPIDeleteCommentResponse{} this.HardRemoved = hardRemoved this.Status = status @@ -48,9 +48,9 @@ func NewPublicAPIDeleteCommentResponseWithDefaults() *PublicAPIDeleteCommentResp } // GetComment returns the Comment field value if set, zero value otherwise. -func (o *PublicAPIDeleteCommentResponse) GetComment() PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId { +func (o *PublicAPIDeleteCommentResponse) GetComment() DeletedCommentResultComment { if o == nil || IsNil(o.Comment) { - var ret PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId + var ret DeletedCommentResultComment return ret } return *o.Comment @@ -58,7 +58,7 @@ func (o *PublicAPIDeleteCommentResponse) GetComment() PickFCommentIsDeletedOrCom // GetCommentOk returns a tuple with the Comment field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PublicAPIDeleteCommentResponse) GetCommentOk() (*PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId, bool) { +func (o *PublicAPIDeleteCommentResponse) GetCommentOk() (*DeletedCommentResultComment, bool) { if o == nil || IsNil(o.Comment) { return nil, false } @@ -74,8 +74,8 @@ func (o *PublicAPIDeleteCommentResponse) HasComment() bool { return false } -// SetComment gets a reference to the given PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId and assigns it to the Comment field. -func (o *PublicAPIDeleteCommentResponse) SetComment(v PickFCommentIsDeletedOrCommentHTMLOrCommenterNameOrUserId) { +// SetComment gets a reference to the given DeletedCommentResultComment and assigns it to the Comment field. +func (o *PublicAPIDeleteCommentResponse) SetComment(v DeletedCommentResultComment) { o.Comment = &v } @@ -104,9 +104,9 @@ func (o *PublicAPIDeleteCommentResponse) SetHardRemoved(v bool) { } // GetStatus returns the Status field value -func (o *PublicAPIDeleteCommentResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *PublicAPIDeleteCommentResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -115,7 +115,7 @@ func (o *PublicAPIDeleteCommentResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *PublicAPIDeleteCommentResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *PublicAPIDeleteCommentResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -123,7 +123,7 @@ func (o *PublicAPIDeleteCommentResponse) GetStatusOk() (*ImportedAPIStatusSUCCES } // SetStatus sets field value -func (o *PublicAPIDeleteCommentResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *PublicAPIDeleteCommentResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_public_api_get_comment_text_response.go b/client/model_public_api_get_comment_text_response.go index 8e788f2..c1db698 100644 --- a/client/model_public_api_get_comment_text_response.go +++ b/client/model_public_api_get_comment_text_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &PublicAPIGetCommentTextResponse{} // PublicAPIGetCommentTextResponse struct for PublicAPIGetCommentTextResponse type PublicAPIGetCommentTextResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` CommentText string `json:"commentText"` SanitizedCommentText string `json:"sanitizedCommentText"` } @@ -32,7 +32,7 @@ type _PublicAPIGetCommentTextResponse PublicAPIGetCommentTextResponse // 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 NewPublicAPIGetCommentTextResponse(status ImportedAPIStatusSUCCESS, commentText string, sanitizedCommentText string) *PublicAPIGetCommentTextResponse { +func NewPublicAPIGetCommentTextResponse(status APIStatus, commentText string, sanitizedCommentText string) *PublicAPIGetCommentTextResponse { this := PublicAPIGetCommentTextResponse{} this.Status = status this.CommentText = commentText @@ -49,9 +49,9 @@ func NewPublicAPIGetCommentTextResponseWithDefaults() *PublicAPIGetCommentTextRe } // GetStatus returns the Status field value -func (o *PublicAPIGetCommentTextResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *PublicAPIGetCommentTextResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -60,7 +60,7 @@ func (o *PublicAPIGetCommentTextResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *PublicAPIGetCommentTextResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *PublicAPIGetCommentTextResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -68,7 +68,7 @@ func (o *PublicAPIGetCommentTextResponse) GetStatusOk() (*ImportedAPIStatusSUCCE } // SetStatus sets field value -func (o *PublicAPIGetCommentTextResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *PublicAPIGetCommentTextResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_public_api_set_comment_text_response.go b/client/model_public_api_set_comment_text_response.go index a666cb4..e2e98be 100644 --- a/client/model_public_api_set_comment_text_response.go +++ b/client/model_public_api_set_comment_text_response.go @@ -21,8 +21,8 @@ var _ MappedNullable = &PublicAPISetCommentTextResponse{} // PublicAPISetCommentTextResponse struct for PublicAPISetCommentTextResponse type PublicAPISetCommentTextResponse struct { - Comment PickFCommentApprovedOrCommentHTML `json:"comment"` - Status ImportedAPIStatusSUCCESS `json:"status"` + Comment SetCommentTextResult `json:"comment"` + Status APIStatus `json:"status"` } type _PublicAPISetCommentTextResponse PublicAPISetCommentTextResponse @@ -31,7 +31,7 @@ type _PublicAPISetCommentTextResponse PublicAPISetCommentTextResponse // 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 NewPublicAPISetCommentTextResponse(comment PickFCommentApprovedOrCommentHTML, status ImportedAPIStatusSUCCESS) *PublicAPISetCommentTextResponse { +func NewPublicAPISetCommentTextResponse(comment SetCommentTextResult, status APIStatus) *PublicAPISetCommentTextResponse { this := PublicAPISetCommentTextResponse{} this.Comment = comment this.Status = status @@ -47,9 +47,9 @@ func NewPublicAPISetCommentTextResponseWithDefaults() *PublicAPISetCommentTextRe } // GetComment returns the Comment field value -func (o *PublicAPISetCommentTextResponse) GetComment() PickFCommentApprovedOrCommentHTML { +func (o *PublicAPISetCommentTextResponse) GetComment() SetCommentTextResult { if o == nil { - var ret PickFCommentApprovedOrCommentHTML + var ret SetCommentTextResult return ret } @@ -58,7 +58,7 @@ func (o *PublicAPISetCommentTextResponse) GetComment() PickFCommentApprovedOrCom // GetCommentOk returns a tuple with the Comment field value // and a boolean to check if the value has been set. -func (o *PublicAPISetCommentTextResponse) GetCommentOk() (*PickFCommentApprovedOrCommentHTML, bool) { +func (o *PublicAPISetCommentTextResponse) GetCommentOk() (*SetCommentTextResult, bool) { if o == nil { return nil, false } @@ -66,14 +66,14 @@ func (o *PublicAPISetCommentTextResponse) GetCommentOk() (*PickFCommentApprovedO } // SetComment sets field value -func (o *PublicAPISetCommentTextResponse) SetComment(v PickFCommentApprovedOrCommentHTML) { +func (o *PublicAPISetCommentTextResponse) SetComment(v SetCommentTextResult) { o.Comment = v } // GetStatus returns the Status field value -func (o *PublicAPISetCommentTextResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *PublicAPISetCommentTextResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -82,7 +82,7 @@ func (o *PublicAPISetCommentTextResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *PublicAPISetCommentTextResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *PublicAPISetCommentTextResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -90,7 +90,7 @@ func (o *PublicAPISetCommentTextResponse) GetStatusOk() (*ImportedAPIStatusSUCCE } // SetStatus sets field value -func (o *PublicAPISetCommentTextResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *PublicAPISetCommentTextResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_public_comment.go b/client/model_public_comment.go index 1f43ed9..0f97986 100644 --- a/client/model_public_comment.go +++ b/client/model_public_comment.go @@ -22,34 +22,35 @@ var _ MappedNullable = &PublicComment{} // PublicComment struct for PublicComment type PublicComment struct { - Date time.Time `json:"date"` Id string `json:"_id"` - UserId *string `json:"userId,omitempty"` - AnonUserId *string `json:"anonUserId,omitempty"` + UserId NullableString `json:"userId,omitempty"` CommenterName string `json:"commenterName"` - CommenterLink *string `json:"commenterLink,omitempty"` + CommenterLink NullableString `json:"commenterLink,omitempty"` CommentHTML string `json:"commentHTML"` - ParentId *string `json:"parentId,omitempty"` - Votes *int32 `json:"votes,omitempty"` - VotesUp *int32 `json:"votesUp,omitempty"` - VotesDown *int32 `json:"votesDown,omitempty"` + ParentId NullableString `json:"parentId,omitempty"` + Date NullableTime `json:"date"` + Votes NullableInt32 `json:"votes,omitempty"` + VotesUp NullableInt32 `json:"votesUp,omitempty"` + VotesDown NullableInt32 `json:"votesDown,omitempty"` Verified bool `json:"verified"` - AvatarSrc *string `json:"avatarSrc,omitempty"` - IsSpam *bool `json:"isSpam,omitempty"` + AvatarSrc NullableString `json:"avatarSrc,omitempty"` HasImages *bool `json:"hasImages,omitempty"` - IsDeleted *bool `json:"isDeleted,omitempty"` - IsDeletedUser *bool `json:"isDeletedUser,omitempty"` IsByAdmin *bool `json:"isByAdmin,omitempty"` IsByModerator *bool `json:"isByModerator,omitempty"` - IsPinned *bool `json:"isPinned,omitempty"` - IsLocked *bool `json:"isLocked,omitempty"` - Rating *float64 `json:"rating,omitempty"` - DisplayLabel *string `json:"displayLabel,omitempty"` + IsPinned NullableBool `json:"isPinned,omitempty"` + IsLocked NullableBool `json:"isLocked,omitempty"` + DisplayLabel NullableString `json:"displayLabel,omitempty"` + Rating NullableFloat64 `json:"rating,omitempty"` Badges []CommentUserBadgeInfo `json:"badges,omitempty"` + ViewCount NullableInt64 `json:"viewCount,omitempty"` + IsDeleted *bool `json:"isDeleted,omitempty"` + IsDeletedUser *bool `json:"isDeletedUser,omitempty"` + IsSpam *bool `json:"isSpam,omitempty"` + AnonUserId NullableString `json:"anonUserId,omitempty"` FeedbackIds []string `json:"feedbackIds,omitempty"` - ViewCount *int64 `json:"viewCount,omitempty"` RequiresVerification *bool `json:"requiresVerification,omitempty"` EditKey *string `json:"editKey,omitempty"` + Approved *bool `json:"approved,omitempty"` IsUnread *bool `json:"isUnread,omitempty"` MyVoteId *string `json:"myVoteId,omitempty"` IsVotedDown *bool `json:"isVotedDown,omitempty"` @@ -71,12 +72,12 @@ type _PublicComment PublicComment // 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 NewPublicComment(date time.Time, id string, commenterName string, commentHTML string, verified bool) *PublicComment { +func NewPublicComment(id string, commenterName string, commentHTML string, date NullableTime, verified bool) *PublicComment { this := PublicComment{} - this.Date = date this.Id = id this.CommenterName = commenterName this.CommentHTML = commentHTML + this.Date = date this.Verified = verified return &this } @@ -89,30 +90,6 @@ func NewPublicCommentWithDefaults() *PublicComment { return &this } -// GetDate returns the Date field value -func (o *PublicComment) GetDate() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.Date -} - -// GetDateOk returns a tuple with the Date field value -// and a boolean to check if the value has been set. -func (o *PublicComment) GetDateOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.Date, true -} - -// SetDate sets field value -func (o *PublicComment) SetDate(v time.Time) { - o.Date = v -} - // GetId returns the Id field value func (o *PublicComment) GetId() string { if o == nil { @@ -137,68 +114,46 @@ func (o *PublicComment) SetId(v string) { o.Id = v } -// GetUserId returns the UserId field value if set, zero value otherwise. +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicComment) GetUserId() string { - if o == nil || IsNil(o.UserId) { + if o == nil || IsNil(o.UserId.Get()) { var ret string return ret } - return *o.UserId + return *o.UserId.Get() } // GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PublicComment) GetUserIdOk() (*string, bool) { - if o == nil || IsNil(o.UserId) { + if o == nil { return nil, false } - return o.UserId, true + return o.UserId.Get(), o.UserId.IsSet() } // HasUserId returns a boolean if a field has been set. func (o *PublicComment) HasUserId() bool { - if o != nil && !IsNil(o.UserId) { + if o != nil && o.UserId.IsSet() { return true } return false } -// SetUserId gets a reference to the given string and assigns it to the UserId field. +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. func (o *PublicComment) SetUserId(v string) { - o.UserId = &v -} - -// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise. -func (o *PublicComment) GetAnonUserId() string { - if o == nil || IsNil(o.AnonUserId) { - var ret string - return ret - } - return *o.AnonUserId -} - -// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PublicComment) GetAnonUserIdOk() (*string, bool) { - if o == nil || IsNil(o.AnonUserId) { - return nil, false - } - return o.AnonUserId, true + o.UserId.Set(&v) } - -// HasAnonUserId returns a boolean if a field has been set. -func (o *PublicComment) HasAnonUserId() bool { - if o != nil && !IsNil(o.AnonUserId) { - return true - } - - return false +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *PublicComment) SetUserIdNil() { + o.UserId.Set(nil) } -// SetAnonUserId gets a reference to the given string and assigns it to the AnonUserId field. -func (o *PublicComment) SetAnonUserId(v string) { - o.AnonUserId = &v +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *PublicComment) UnsetUserId() { + o.UserId.Unset() } // GetCommenterName returns the CommenterName field value @@ -225,36 +180,46 @@ func (o *PublicComment) SetCommenterName(v string) { o.CommenterName = v } -// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise. +// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicComment) GetCommenterLink() string { - if o == nil || IsNil(o.CommenterLink) { + if o == nil || IsNil(o.CommenterLink.Get()) { var ret string return ret } - return *o.CommenterLink + return *o.CommenterLink.Get() } // GetCommenterLinkOk returns a tuple with the CommenterLink field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PublicComment) GetCommenterLinkOk() (*string, bool) { - if o == nil || IsNil(o.CommenterLink) { + if o == nil { return nil, false } - return o.CommenterLink, true + return o.CommenterLink.Get(), o.CommenterLink.IsSet() } // HasCommenterLink returns a boolean if a field has been set. func (o *PublicComment) HasCommenterLink() bool { - if o != nil && !IsNil(o.CommenterLink) { + if o != nil && o.CommenterLink.IsSet() { return true } return false } -// SetCommenterLink gets a reference to the given string and assigns it to the CommenterLink field. +// SetCommenterLink gets a reference to the given NullableString and assigns it to the CommenterLink field. func (o *PublicComment) SetCommenterLink(v string) { - o.CommenterLink = &v + o.CommenterLink.Set(&v) +} +// SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil +func (o *PublicComment) SetCommenterLinkNil() { + o.CommenterLink.Set(nil) +} + +// UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +func (o *PublicComment) UnsetCommenterLink() { + o.CommenterLink.Unset() } // GetCommentHTML returns the CommentHTML field value @@ -281,132 +246,198 @@ func (o *PublicComment) SetCommentHTML(v string) { o.CommentHTML = v } -// GetParentId returns the ParentId field value if set, zero value otherwise. +// GetParentId returns the ParentId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicComment) GetParentId() string { - if o == nil || IsNil(o.ParentId) { + if o == nil || IsNil(o.ParentId.Get()) { var ret string return ret } - return *o.ParentId + return *o.ParentId.Get() } // GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PublicComment) GetParentIdOk() (*string, bool) { - if o == nil || IsNil(o.ParentId) { + if o == nil { return nil, false } - return o.ParentId, true + return o.ParentId.Get(), o.ParentId.IsSet() } // HasParentId returns a boolean if a field has been set. func (o *PublicComment) HasParentId() bool { - if o != nil && !IsNil(o.ParentId) { + if o != nil && o.ParentId.IsSet() { return true } return false } -// SetParentId gets a reference to the given string and assigns it to the ParentId field. +// SetParentId gets a reference to the given NullableString and assigns it to the ParentId field. func (o *PublicComment) SetParentId(v string) { - o.ParentId = &v + o.ParentId.Set(&v) +} +// SetParentIdNil sets the value for ParentId to be an explicit nil +func (o *PublicComment) SetParentIdNil() { + o.ParentId.Set(nil) +} + +// UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +func (o *PublicComment) UnsetParentId() { + o.ParentId.Unset() +} + +// GetDate returns the Date field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PublicComment) GetDate() time.Time { + if o == nil || o.Date.Get() == nil { + var ret time.Time + return ret + } + + return *o.Date.Get() +} + +// GetDateOk returns a tuple with the Date field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicComment) GetDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Date.Get(), o.Date.IsSet() +} + +// SetDate sets field value +func (o *PublicComment) SetDate(v time.Time) { + o.Date.Set(&v) } -// GetVotes returns the Votes field value if set, zero value otherwise. +// GetVotes returns the Votes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicComment) GetVotes() int32 { - if o == nil || IsNil(o.Votes) { + if o == nil || IsNil(o.Votes.Get()) { var ret int32 return ret } - return *o.Votes + return *o.Votes.Get() } // GetVotesOk returns a tuple with the Votes field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PublicComment) GetVotesOk() (*int32, bool) { - if o == nil || IsNil(o.Votes) { + if o == nil { return nil, false } - return o.Votes, true + return o.Votes.Get(), o.Votes.IsSet() } // HasVotes returns a boolean if a field has been set. func (o *PublicComment) HasVotes() bool { - if o != nil && !IsNil(o.Votes) { + if o != nil && o.Votes.IsSet() { return true } return false } -// SetVotes gets a reference to the given int32 and assigns it to the Votes field. +// SetVotes gets a reference to the given NullableInt32 and assigns it to the Votes field. func (o *PublicComment) SetVotes(v int32) { - o.Votes = &v + o.Votes.Set(&v) +} +// SetVotesNil sets the value for Votes to be an explicit nil +func (o *PublicComment) SetVotesNil() { + o.Votes.Set(nil) } -// GetVotesUp returns the VotesUp field value if set, zero value otherwise. +// UnsetVotes ensures that no value is present for Votes, not even an explicit nil +func (o *PublicComment) UnsetVotes() { + o.Votes.Unset() +} + +// GetVotesUp returns the VotesUp field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicComment) GetVotesUp() int32 { - if o == nil || IsNil(o.VotesUp) { + if o == nil || IsNil(o.VotesUp.Get()) { var ret int32 return ret } - return *o.VotesUp + return *o.VotesUp.Get() } // GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PublicComment) GetVotesUpOk() (*int32, bool) { - if o == nil || IsNil(o.VotesUp) { + if o == nil { return nil, false } - return o.VotesUp, true + return o.VotesUp.Get(), o.VotesUp.IsSet() } // HasVotesUp returns a boolean if a field has been set. func (o *PublicComment) HasVotesUp() bool { - if o != nil && !IsNil(o.VotesUp) { + if o != nil && o.VotesUp.IsSet() { return true } return false } -// SetVotesUp gets a reference to the given int32 and assigns it to the VotesUp field. +// SetVotesUp gets a reference to the given NullableInt32 and assigns it to the VotesUp field. func (o *PublicComment) SetVotesUp(v int32) { - o.VotesUp = &v + o.VotesUp.Set(&v) +} +// SetVotesUpNil sets the value for VotesUp to be an explicit nil +func (o *PublicComment) SetVotesUpNil() { + o.VotesUp.Set(nil) +} + +// UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil +func (o *PublicComment) UnsetVotesUp() { + o.VotesUp.Unset() } -// GetVotesDown returns the VotesDown field value if set, zero value otherwise. +// GetVotesDown returns the VotesDown field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicComment) GetVotesDown() int32 { - if o == nil || IsNil(o.VotesDown) { + if o == nil || IsNil(o.VotesDown.Get()) { var ret int32 return ret } - return *o.VotesDown + return *o.VotesDown.Get() } // GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PublicComment) GetVotesDownOk() (*int32, bool) { - if o == nil || IsNil(o.VotesDown) { + if o == nil { return nil, false } - return o.VotesDown, true + return o.VotesDown.Get(), o.VotesDown.IsSet() } // HasVotesDown returns a boolean if a field has been set. func (o *PublicComment) HasVotesDown() bool { - if o != nil && !IsNil(o.VotesDown) { + if o != nil && o.VotesDown.IsSet() { return true } return false } -// SetVotesDown gets a reference to the given int32 and assigns it to the VotesDown field. +// SetVotesDown gets a reference to the given NullableInt32 and assigns it to the VotesDown field. func (o *PublicComment) SetVotesDown(v int32) { - o.VotesDown = &v + o.VotesDown.Set(&v) +} +// SetVotesDownNil sets the value for VotesDown to be an explicit nil +func (o *PublicComment) SetVotesDownNil() { + o.VotesDown.Set(nil) +} + +// UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +func (o *PublicComment) UnsetVotesDown() { + o.VotesDown.Unset() } // GetVerified returns the Verified field value @@ -433,68 +464,46 @@ func (o *PublicComment) SetVerified(v bool) { o.Verified = v } -// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise. +// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicComment) GetAvatarSrc() string { - if o == nil || IsNil(o.AvatarSrc) { + if o == nil || IsNil(o.AvatarSrc.Get()) { var ret string return ret } - return *o.AvatarSrc + return *o.AvatarSrc.Get() } // GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PublicComment) GetAvatarSrcOk() (*string, bool) { - if o == nil || IsNil(o.AvatarSrc) { + if o == nil { return nil, false } - return o.AvatarSrc, true + return o.AvatarSrc.Get(), o.AvatarSrc.IsSet() } // HasAvatarSrc returns a boolean if a field has been set. func (o *PublicComment) HasAvatarSrc() bool { - if o != nil && !IsNil(o.AvatarSrc) { + if o != nil && o.AvatarSrc.IsSet() { return true } return false } -// SetAvatarSrc gets a reference to the given string and assigns it to the AvatarSrc field. +// SetAvatarSrc gets a reference to the given NullableString and assigns it to the AvatarSrc field. func (o *PublicComment) SetAvatarSrc(v string) { - o.AvatarSrc = &v + o.AvatarSrc.Set(&v) } - -// GetIsSpam returns the IsSpam field value if set, zero value otherwise. -func (o *PublicComment) GetIsSpam() bool { - if o == nil || IsNil(o.IsSpam) { - var ret bool - return ret - } - return *o.IsSpam +// SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil +func (o *PublicComment) SetAvatarSrcNil() { + o.AvatarSrc.Set(nil) } -// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PublicComment) GetIsSpamOk() (*bool, bool) { - if o == nil || IsNil(o.IsSpam) { - return nil, false - } - return o.IsSpam, true -} - -// HasIsSpam returns a boolean if a field has been set. -func (o *PublicComment) HasIsSpam() bool { - if o != nil && !IsNil(o.IsSpam) { - return true - } - - return false -} - -// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. -func (o *PublicComment) SetIsSpam(v bool) { - o.IsSpam = &v +// UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +func (o *PublicComment) UnsetAvatarSrc() { + o.AvatarSrc.Unset() } // GetHasImages returns the HasImages field value if set, zero value otherwise. @@ -529,70 +538,6 @@ func (o *PublicComment) SetHasImages(v bool) { o.HasImages = &v } -// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. -func (o *PublicComment) GetIsDeleted() bool { - if o == nil || IsNil(o.IsDeleted) { - var ret bool - return ret - } - return *o.IsDeleted -} - -// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PublicComment) GetIsDeletedOk() (*bool, bool) { - if o == nil || IsNil(o.IsDeleted) { - return nil, false - } - return o.IsDeleted, true -} - -// HasIsDeleted returns a boolean if a field has been set. -func (o *PublicComment) HasIsDeleted() bool { - if o != nil && !IsNil(o.IsDeleted) { - return true - } - - return false -} - -// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. -func (o *PublicComment) SetIsDeleted(v bool) { - o.IsDeleted = &v -} - -// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. -func (o *PublicComment) GetIsDeletedUser() bool { - if o == nil || IsNil(o.IsDeletedUser) { - var ret bool - return ret - } - return *o.IsDeletedUser -} - -// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PublicComment) GetIsDeletedUserOk() (*bool, bool) { - if o == nil || IsNil(o.IsDeletedUser) { - return nil, false - } - return o.IsDeletedUser, true -} - -// HasIsDeletedUser returns a boolean if a field has been set. -func (o *PublicComment) HasIsDeletedUser() bool { - if o != nil && !IsNil(o.IsDeletedUser) { - return true - } - - return false -} - -// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. -func (o *PublicComment) SetIsDeletedUser(v bool) { - o.IsDeletedUser = &v -} - // GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. func (o *PublicComment) GetIsByAdmin() bool { if o == nil || IsNil(o.IsByAdmin) { @@ -657,137 +602,177 @@ func (o *PublicComment) SetIsByModerator(v bool) { o.IsByModerator = &v } -// GetIsPinned returns the IsPinned field value if set, zero value otherwise. +// GetIsPinned returns the IsPinned field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicComment) GetIsPinned() bool { - if o == nil || IsNil(o.IsPinned) { + if o == nil || IsNil(o.IsPinned.Get()) { var ret bool return ret } - return *o.IsPinned + return *o.IsPinned.Get() } // GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PublicComment) GetIsPinnedOk() (*bool, bool) { - if o == nil || IsNil(o.IsPinned) { + if o == nil { return nil, false } - return o.IsPinned, true + return o.IsPinned.Get(), o.IsPinned.IsSet() } // HasIsPinned returns a boolean if a field has been set. func (o *PublicComment) HasIsPinned() bool { - if o != nil && !IsNil(o.IsPinned) { + if o != nil && o.IsPinned.IsSet() { return true } return false } -// SetIsPinned gets a reference to the given bool and assigns it to the IsPinned field. +// SetIsPinned gets a reference to the given NullableBool and assigns it to the IsPinned field. func (o *PublicComment) SetIsPinned(v bool) { - o.IsPinned = &v + o.IsPinned.Set(&v) +} +// SetIsPinnedNil sets the value for IsPinned to be an explicit nil +func (o *PublicComment) SetIsPinnedNil() { + o.IsPinned.Set(nil) +} + +// UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +func (o *PublicComment) UnsetIsPinned() { + o.IsPinned.Unset() } -// GetIsLocked returns the IsLocked field value if set, zero value otherwise. +// GetIsLocked returns the IsLocked field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicComment) GetIsLocked() bool { - if o == nil || IsNil(o.IsLocked) { + if o == nil || IsNil(o.IsLocked.Get()) { var ret bool return ret } - return *o.IsLocked + return *o.IsLocked.Get() } // GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PublicComment) GetIsLockedOk() (*bool, bool) { - if o == nil || IsNil(o.IsLocked) { + if o == nil { return nil, false } - return o.IsLocked, true + return o.IsLocked.Get(), o.IsLocked.IsSet() } // HasIsLocked returns a boolean if a field has been set. func (o *PublicComment) HasIsLocked() bool { - if o != nil && !IsNil(o.IsLocked) { + if o != nil && o.IsLocked.IsSet() { return true } return false } -// SetIsLocked gets a reference to the given bool and assigns it to the IsLocked field. +// SetIsLocked gets a reference to the given NullableBool and assigns it to the IsLocked field. func (o *PublicComment) SetIsLocked(v bool) { - o.IsLocked = &v + o.IsLocked.Set(&v) +} +// SetIsLockedNil sets the value for IsLocked to be an explicit nil +func (o *PublicComment) SetIsLockedNil() { + o.IsLocked.Set(nil) } -// GetRating returns the Rating field value if set, zero value otherwise. -func (o *PublicComment) GetRating() float64 { - if o == nil || IsNil(o.Rating) { - var ret float64 +// UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +func (o *PublicComment) UnsetIsLocked() { + o.IsLocked.Unset() +} + +// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicComment) GetDisplayLabel() string { + if o == nil || IsNil(o.DisplayLabel.Get()) { + var ret string return ret } - return *o.Rating + return *o.DisplayLabel.Get() } -// GetRatingOk returns a tuple with the Rating field value if set, nil otherwise +// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PublicComment) GetRatingOk() (*float64, bool) { - if o == nil || IsNil(o.Rating) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicComment) GetDisplayLabelOk() (*string, bool) { + if o == nil { return nil, false } - return o.Rating, true + return o.DisplayLabel.Get(), o.DisplayLabel.IsSet() } -// HasRating returns a boolean if a field has been set. -func (o *PublicComment) HasRating() bool { - if o != nil && !IsNil(o.Rating) { +// HasDisplayLabel returns a boolean if a field has been set. +func (o *PublicComment) HasDisplayLabel() bool { + if o != nil && o.DisplayLabel.IsSet() { return true } return false } -// SetRating gets a reference to the given float64 and assigns it to the Rating field. -func (o *PublicComment) SetRating(v float64) { - o.Rating = &v +// SetDisplayLabel gets a reference to the given NullableString and assigns it to the DisplayLabel field. +func (o *PublicComment) SetDisplayLabel(v string) { + o.DisplayLabel.Set(&v) +} +// SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil +func (o *PublicComment) SetDisplayLabelNil() { + o.DisplayLabel.Set(nil) } -// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise. -func (o *PublicComment) GetDisplayLabel() string { - if o == nil || IsNil(o.DisplayLabel) { - var ret string +// UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +func (o *PublicComment) UnsetDisplayLabel() { + o.DisplayLabel.Unset() +} + +// GetRating returns the Rating field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicComment) GetRating() float64 { + if o == nil || IsNil(o.Rating.Get()) { + var ret float64 return ret } - return *o.DisplayLabel + return *o.Rating.Get() } -// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise +// GetRatingOk returns a tuple with the Rating field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PublicComment) GetDisplayLabelOk() (*string, bool) { - if o == nil || IsNil(o.DisplayLabel) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicComment) GetRatingOk() (*float64, bool) { + if o == nil { return nil, false } - return o.DisplayLabel, true + return o.Rating.Get(), o.Rating.IsSet() } -// HasDisplayLabel returns a boolean if a field has been set. -func (o *PublicComment) HasDisplayLabel() bool { - if o != nil && !IsNil(o.DisplayLabel) { +// HasRating returns a boolean if a field has been set. +func (o *PublicComment) HasRating() bool { + if o != nil && o.Rating.IsSet() { return true } return false } -// SetDisplayLabel gets a reference to the given string and assigns it to the DisplayLabel field. -func (o *PublicComment) SetDisplayLabel(v string) { - o.DisplayLabel = &v +// SetRating gets a reference to the given NullableFloat64 and assigns it to the Rating field. +func (o *PublicComment) SetRating(v float64) { + o.Rating.Set(&v) +} +// SetRatingNil sets the value for Rating to be an explicit nil +func (o *PublicComment) SetRatingNil() { + o.Rating.Set(nil) } -// GetBadges returns the Badges field value if set, zero value otherwise. +// UnsetRating ensures that no value is present for Rating, not even an explicit nil +func (o *PublicComment) UnsetRating() { + o.Rating.Unset() +} + +// GetBadges returns the Badges field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PublicComment) GetBadges() []CommentUserBadgeInfo { - if o == nil || IsNil(o.Badges) { + if o == nil { var ret []CommentUserBadgeInfo return ret } @@ -796,6 +781,7 @@ func (o *PublicComment) GetBadges() []CommentUserBadgeInfo { // GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PublicComment) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { if o == nil || IsNil(o.Badges) { return nil, false @@ -817,68 +803,216 @@ func (o *PublicComment) SetBadges(v []CommentUserBadgeInfo) { o.Badges = v } -// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. -func (o *PublicComment) GetFeedbackIds() []string { - if o == nil || IsNil(o.FeedbackIds) { - var ret []string +// GetViewCount returns the ViewCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicComment) GetViewCount() int64 { + if o == nil || IsNil(o.ViewCount.Get()) { + var ret int64 return ret } - return o.FeedbackIds + return *o.ViewCount.Get() } -// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise +// 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 *PublicComment) GetFeedbackIdsOk() ([]string, bool) { - if o == nil || IsNil(o.FeedbackIds) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicComment) GetViewCountOk() (*int64, bool) { + if o == nil { return nil, false } - return o.FeedbackIds, true + return o.ViewCount.Get(), o.ViewCount.IsSet() } -// HasFeedbackIds returns a boolean if a field has been set. -func (o *PublicComment) HasFeedbackIds() bool { - if o != nil && !IsNil(o.FeedbackIds) { +// HasViewCount returns a boolean if a field has been set. +func (o *PublicComment) HasViewCount() bool { + if o != nil && o.ViewCount.IsSet() { return true } return false } -// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. -func (o *PublicComment) SetFeedbackIds(v []string) { - o.FeedbackIds = v +// SetViewCount gets a reference to the given NullableInt64 and assigns it to the ViewCount field. +func (o *PublicComment) SetViewCount(v int64) { + o.ViewCount.Set(&v) +} +// SetViewCountNil sets the value for ViewCount to be an explicit nil +func (o *PublicComment) SetViewCountNil() { + o.ViewCount.Set(nil) } -// GetViewCount returns the ViewCount field value if set, zero value otherwise. -func (o *PublicComment) GetViewCount() int64 { - if o == nil || IsNil(o.ViewCount) { - var ret int64 +// UnsetViewCount ensures that no value is present for ViewCount, not even an explicit nil +func (o *PublicComment) UnsetViewCount() { + o.ViewCount.Unset() +} + +// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. +func (o *PublicComment) GetIsDeleted() bool { + if o == nil || IsNil(o.IsDeleted) { + var ret bool return ret } - return *o.ViewCount + return *o.IsDeleted } -// GetViewCountOk returns a tuple with the ViewCount field value if set, nil otherwise +// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PublicComment) GetViewCountOk() (*int64, bool) { - if o == nil || IsNil(o.ViewCount) { +func (o *PublicComment) GetIsDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeleted) { return nil, false } - return o.ViewCount, true + return o.IsDeleted, true } -// HasViewCount returns a boolean if a field has been set. -func (o *PublicComment) HasViewCount() bool { - if o != nil && !IsNil(o.ViewCount) { +// HasIsDeleted returns a boolean if a field has been set. +func (o *PublicComment) HasIsDeleted() bool { + if o != nil && !IsNil(o.IsDeleted) { return true } return false } -// SetViewCount gets a reference to the given int64 and assigns it to the ViewCount field. -func (o *PublicComment) SetViewCount(v int64) { - o.ViewCount = &v +// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. +func (o *PublicComment) SetIsDeleted(v bool) { + o.IsDeleted = &v +} + +// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. +func (o *PublicComment) GetIsDeletedUser() bool { + if o == nil || IsNil(o.IsDeletedUser) { + var ret bool + return ret + } + return *o.IsDeletedUser +} + +// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicComment) GetIsDeletedUserOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeletedUser) { + return nil, false + } + return o.IsDeletedUser, true +} + +// HasIsDeletedUser returns a boolean if a field has been set. +func (o *PublicComment) HasIsDeletedUser() bool { + if o != nil && !IsNil(o.IsDeletedUser) { + return true + } + + return false +} + +// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. +func (o *PublicComment) SetIsDeletedUser(v bool) { + o.IsDeletedUser = &v +} + +// GetIsSpam returns the IsSpam field value if set, zero value otherwise. +func (o *PublicComment) GetIsSpam() bool { + if o == nil || IsNil(o.IsSpam) { + var ret bool + return ret + } + return *o.IsSpam +} + +// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicComment) GetIsSpamOk() (*bool, bool) { + if o == nil || IsNil(o.IsSpam) { + return nil, false + } + return o.IsSpam, true +} + +// HasIsSpam returns a boolean if a field has been set. +func (o *PublicComment) HasIsSpam() bool { + if o != nil && !IsNil(o.IsSpam) { + return true + } + + return false +} + +// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. +func (o *PublicComment) SetIsSpam(v bool) { + o.IsSpam = &v +} + +// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicComment) GetAnonUserId() string { + if o == nil || IsNil(o.AnonUserId.Get()) { + var ret string + return ret + } + return *o.AnonUserId.Get() +} + +// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicComment) GetAnonUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AnonUserId.Get(), o.AnonUserId.IsSet() +} + +// HasAnonUserId returns a boolean if a field has been set. +func (o *PublicComment) HasAnonUserId() bool { + if o != nil && o.AnonUserId.IsSet() { + return true + } + + return false +} + +// SetAnonUserId gets a reference to the given NullableString and assigns it to the AnonUserId field. +func (o *PublicComment) SetAnonUserId(v string) { + o.AnonUserId.Set(&v) +} +// SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil +func (o *PublicComment) SetAnonUserIdNil() { + o.AnonUserId.Set(nil) +} + +// UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +func (o *PublicComment) UnsetAnonUserId() { + o.AnonUserId.Unset() +} + +// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. +func (o *PublicComment) GetFeedbackIds() []string { + if o == nil || IsNil(o.FeedbackIds) { + var ret []string + return ret + } + return o.FeedbackIds +} + +// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicComment) GetFeedbackIdsOk() ([]string, bool) { + if o == nil || IsNil(o.FeedbackIds) { + return nil, false + } + return o.FeedbackIds, true +} + +// HasFeedbackIds returns a boolean if a field has been set. +func (o *PublicComment) HasFeedbackIds() bool { + if o != nil && !IsNil(o.FeedbackIds) { + return true + } + + return false +} + +// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. +func (o *PublicComment) SetFeedbackIds(v []string) { + o.FeedbackIds = v } // GetRequiresVerification returns the RequiresVerification field value if set, zero value otherwise. @@ -945,6 +1079,38 @@ func (o *PublicComment) SetEditKey(v string) { o.EditKey = &v } +// GetApproved returns the Approved field value if set, zero value otherwise. +func (o *PublicComment) GetApproved() bool { + if o == nil || IsNil(o.Approved) { + var ret bool + return ret + } + return *o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicComment) GetApprovedOk() (*bool, bool) { + if o == nil || IsNil(o.Approved) { + return nil, false + } + return o.Approved, true +} + +// HasApproved returns a boolean if a field has been set. +func (o *PublicComment) HasApproved() bool { + if o != nil && !IsNil(o.Approved) { + return true + } + + return false +} + +// SetApproved gets a reference to the given bool and assigns it to the Approved field. +func (o *PublicComment) SetApproved(v bool) { + o.Approved = &v +} + // GetIsUnread returns the IsUnread field value if set, zero value otherwise. func (o *PublicComment) GetIsUnread() bool { if o == nil || IsNil(o.IsUnread) { @@ -1275,80 +1441,83 @@ func (o PublicComment) MarshalJSON() ([]byte, error) { func (o PublicComment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["date"] = o.Date toSerialize["_id"] = o.Id - if !IsNil(o.UserId) { - toSerialize["userId"] = o.UserId - } - if !IsNil(o.AnonUserId) { - toSerialize["anonUserId"] = o.AnonUserId + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() } toSerialize["commenterName"] = o.CommenterName - if !IsNil(o.CommenterLink) { - toSerialize["commenterLink"] = o.CommenterLink + if o.CommenterLink.IsSet() { + toSerialize["commenterLink"] = o.CommenterLink.Get() } toSerialize["commentHTML"] = o.CommentHTML - if !IsNil(o.ParentId) { - toSerialize["parentId"] = o.ParentId + if o.ParentId.IsSet() { + toSerialize["parentId"] = o.ParentId.Get() } - if !IsNil(o.Votes) { - toSerialize["votes"] = o.Votes + toSerialize["date"] = o.Date.Get() + if o.Votes.IsSet() { + toSerialize["votes"] = o.Votes.Get() } - if !IsNil(o.VotesUp) { - toSerialize["votesUp"] = o.VotesUp + if o.VotesUp.IsSet() { + toSerialize["votesUp"] = o.VotesUp.Get() } - if !IsNil(o.VotesDown) { - toSerialize["votesDown"] = o.VotesDown + if o.VotesDown.IsSet() { + toSerialize["votesDown"] = o.VotesDown.Get() } toSerialize["verified"] = o.Verified - if !IsNil(o.AvatarSrc) { - toSerialize["avatarSrc"] = o.AvatarSrc - } - if !IsNil(o.IsSpam) { - toSerialize["isSpam"] = o.IsSpam + if o.AvatarSrc.IsSet() { + toSerialize["avatarSrc"] = o.AvatarSrc.Get() } if !IsNil(o.HasImages) { toSerialize["hasImages"] = o.HasImages } - if !IsNil(o.IsDeleted) { - toSerialize["isDeleted"] = o.IsDeleted - } - if !IsNil(o.IsDeletedUser) { - toSerialize["isDeletedUser"] = o.IsDeletedUser - } if !IsNil(o.IsByAdmin) { toSerialize["isByAdmin"] = o.IsByAdmin } if !IsNil(o.IsByModerator) { toSerialize["isByModerator"] = o.IsByModerator } - if !IsNil(o.IsPinned) { - toSerialize["isPinned"] = o.IsPinned + if o.IsPinned.IsSet() { + toSerialize["isPinned"] = o.IsPinned.Get() } - if !IsNil(o.IsLocked) { - toSerialize["isLocked"] = o.IsLocked + if o.IsLocked.IsSet() { + toSerialize["isLocked"] = o.IsLocked.Get() } - if !IsNil(o.Rating) { - toSerialize["rating"] = o.Rating + if o.DisplayLabel.IsSet() { + toSerialize["displayLabel"] = o.DisplayLabel.Get() } - if !IsNil(o.DisplayLabel) { - toSerialize["displayLabel"] = o.DisplayLabel + if o.Rating.IsSet() { + toSerialize["rating"] = o.Rating.Get() } - if !IsNil(o.Badges) { + if o.Badges != nil { toSerialize["badges"] = o.Badges } + if o.ViewCount.IsSet() { + toSerialize["viewCount"] = o.ViewCount.Get() + } + if !IsNil(o.IsDeleted) { + toSerialize["isDeleted"] = o.IsDeleted + } + if !IsNil(o.IsDeletedUser) { + toSerialize["isDeletedUser"] = o.IsDeletedUser + } + if !IsNil(o.IsSpam) { + toSerialize["isSpam"] = o.IsSpam + } + if o.AnonUserId.IsSet() { + toSerialize["anonUserId"] = o.AnonUserId.Get() + } if !IsNil(o.FeedbackIds) { toSerialize["feedbackIds"] = o.FeedbackIds } - if !IsNil(o.ViewCount) { - toSerialize["viewCount"] = o.ViewCount - } if !IsNil(o.RequiresVerification) { toSerialize["requiresVerification"] = o.RequiresVerification } if !IsNil(o.EditKey) { toSerialize["editKey"] = o.EditKey } + if !IsNil(o.Approved) { + toSerialize["approved"] = o.Approved + } if !IsNil(o.IsUnread) { toSerialize["isUnread"] = o.IsUnread } @@ -1387,10 +1556,10 @@ func (o *PublicComment) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "date", "_id", "commenterName", "commentHTML", + "date", "verified", } diff --git a/client/model_public_comment_base.go b/client/model_public_comment_base.go new file mode 100644 index 0000000..88ddc02 --- /dev/null +++ b/client/model_public_comment_base.go @@ -0,0 +1,1268 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" + "bytes" + "fmt" +) + +// checks if the PublicCommentBase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PublicCommentBase{} + +// PublicCommentBase struct for PublicCommentBase +type PublicCommentBase struct { + Id string `json:"_id"` + UserId NullableString `json:"userId,omitempty"` + CommenterName string `json:"commenterName"` + CommenterLink NullableString `json:"commenterLink,omitempty"` + CommentHTML string `json:"commentHTML"` + ParentId NullableString `json:"parentId,omitempty"` + Date NullableTime `json:"date"` + Votes NullableInt32 `json:"votes,omitempty"` + VotesUp NullableInt32 `json:"votesUp,omitempty"` + VotesDown NullableInt32 `json:"votesDown,omitempty"` + Verified bool `json:"verified"` + AvatarSrc NullableString `json:"avatarSrc,omitempty"` + HasImages *bool `json:"hasImages,omitempty"` + IsByAdmin *bool `json:"isByAdmin,omitempty"` + IsByModerator *bool `json:"isByModerator,omitempty"` + IsPinned NullableBool `json:"isPinned,omitempty"` + IsLocked NullableBool `json:"isLocked,omitempty"` + DisplayLabel NullableString `json:"displayLabel,omitempty"` + Rating NullableFloat64 `json:"rating,omitempty"` + Badges []CommentUserBadgeInfo `json:"badges,omitempty"` + ViewCount NullableInt64 `json:"viewCount,omitempty"` + IsDeleted *bool `json:"isDeleted,omitempty"` + IsDeletedUser *bool `json:"isDeletedUser,omitempty"` + IsSpam *bool `json:"isSpam,omitempty"` + AnonUserId NullableString `json:"anonUserId,omitempty"` + FeedbackIds []string `json:"feedbackIds,omitempty"` + RequiresVerification *bool `json:"requiresVerification,omitempty"` + EditKey *string `json:"editKey,omitempty"` + Approved *bool `json:"approved,omitempty"` +} + +type _PublicCommentBase PublicCommentBase + +// NewPublicCommentBase instantiates a new PublicCommentBase 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 NewPublicCommentBase(id string, commenterName string, commentHTML string, date NullableTime, verified bool) *PublicCommentBase { + this := PublicCommentBase{} + this.Id = id + this.CommenterName = commenterName + this.CommentHTML = commentHTML + this.Date = date + this.Verified = verified + return &this +} + +// NewPublicCommentBaseWithDefaults instantiates a new PublicCommentBase 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 NewPublicCommentBaseWithDefaults() *PublicCommentBase { + this := PublicCommentBase{} + return &this +} + +// GetId returns the Id field value +func (o *PublicCommentBase) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PublicCommentBase) SetId(v string) { + o.Id = v +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *PublicCommentBase) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *PublicCommentBase) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *PublicCommentBase) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *PublicCommentBase) UnsetUserId() { + o.UserId.Unset() +} + +// GetCommenterName returns the CommenterName field value +func (o *PublicCommentBase) GetCommenterName() string { + if o == nil { + var ret string + return ret + } + + return o.CommenterName +} + +// GetCommenterNameOk returns a tuple with the CommenterName field value +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetCommenterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommenterName, true +} + +// SetCommenterName sets field value +func (o *PublicCommentBase) SetCommenterName(v string) { + o.CommenterName = v +} + +// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetCommenterLink() string { + if o == nil || IsNil(o.CommenterLink.Get()) { + var ret string + return ret + } + return *o.CommenterLink.Get() +} + +// GetCommenterLinkOk returns a tuple with the CommenterLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetCommenterLinkOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommenterLink.Get(), o.CommenterLink.IsSet() +} + +// HasCommenterLink returns a boolean if a field has been set. +func (o *PublicCommentBase) HasCommenterLink() bool { + if o != nil && o.CommenterLink.IsSet() { + return true + } + + return false +} + +// SetCommenterLink gets a reference to the given NullableString and assigns it to the CommenterLink field. +func (o *PublicCommentBase) SetCommenterLink(v string) { + o.CommenterLink.Set(&v) +} +// SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil +func (o *PublicCommentBase) SetCommenterLinkNil() { + o.CommenterLink.Set(nil) +} + +// UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +func (o *PublicCommentBase) UnsetCommenterLink() { + o.CommenterLink.Unset() +} + +// GetCommentHTML returns the CommentHTML field value +func (o *PublicCommentBase) GetCommentHTML() string { + if o == nil { + var ret string + return ret + } + + return o.CommentHTML +} + +// GetCommentHTMLOk returns a tuple with the CommentHTML field value +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetCommentHTMLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommentHTML, true +} + +// SetCommentHTML sets field value +func (o *PublicCommentBase) SetCommentHTML(v string) { + o.CommentHTML = v +} + +// GetParentId returns the ParentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetParentId() string { + if o == nil || IsNil(o.ParentId.Get()) { + var ret string + return ret + } + return *o.ParentId.Get() +} + +// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetParentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ParentId.Get(), o.ParentId.IsSet() +} + +// HasParentId returns a boolean if a field has been set. +func (o *PublicCommentBase) HasParentId() bool { + if o != nil && o.ParentId.IsSet() { + return true + } + + return false +} + +// SetParentId gets a reference to the given NullableString and assigns it to the ParentId field. +func (o *PublicCommentBase) SetParentId(v string) { + o.ParentId.Set(&v) +} +// SetParentIdNil sets the value for ParentId to be an explicit nil +func (o *PublicCommentBase) SetParentIdNil() { + o.ParentId.Set(nil) +} + +// UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +func (o *PublicCommentBase) UnsetParentId() { + o.ParentId.Unset() +} + +// GetDate returns the Date field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PublicCommentBase) GetDate() time.Time { + if o == nil || o.Date.Get() == nil { + var ret time.Time + return ret + } + + return *o.Date.Get() +} + +// GetDateOk returns a tuple with the Date field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Date.Get(), o.Date.IsSet() +} + +// SetDate sets field value +func (o *PublicCommentBase) SetDate(v time.Time) { + o.Date.Set(&v) +} + +// GetVotes returns the Votes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetVotes() int32 { + if o == nil || IsNil(o.Votes.Get()) { + var ret int32 + return ret + } + return *o.Votes.Get() +} + +// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetVotesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Votes.Get(), o.Votes.IsSet() +} + +// HasVotes returns a boolean if a field has been set. +func (o *PublicCommentBase) HasVotes() bool { + if o != nil && o.Votes.IsSet() { + return true + } + + return false +} + +// SetVotes gets a reference to the given NullableInt32 and assigns it to the Votes field. +func (o *PublicCommentBase) SetVotes(v int32) { + o.Votes.Set(&v) +} +// SetVotesNil sets the value for Votes to be an explicit nil +func (o *PublicCommentBase) SetVotesNil() { + o.Votes.Set(nil) +} + +// UnsetVotes ensures that no value is present for Votes, not even an explicit nil +func (o *PublicCommentBase) UnsetVotes() { + o.Votes.Unset() +} + +// GetVotesUp returns the VotesUp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetVotesUp() int32 { + if o == nil || IsNil(o.VotesUp.Get()) { + var ret int32 + return ret + } + return *o.VotesUp.Get() +} + +// GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetVotesUpOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.VotesUp.Get(), o.VotesUp.IsSet() +} + +// HasVotesUp returns a boolean if a field has been set. +func (o *PublicCommentBase) HasVotesUp() bool { + if o != nil && o.VotesUp.IsSet() { + return true + } + + return false +} + +// SetVotesUp gets a reference to the given NullableInt32 and assigns it to the VotesUp field. +func (o *PublicCommentBase) SetVotesUp(v int32) { + o.VotesUp.Set(&v) +} +// SetVotesUpNil sets the value for VotesUp to be an explicit nil +func (o *PublicCommentBase) SetVotesUpNil() { + o.VotesUp.Set(nil) +} + +// UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil +func (o *PublicCommentBase) UnsetVotesUp() { + o.VotesUp.Unset() +} + +// GetVotesDown returns the VotesDown field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetVotesDown() int32 { + if o == nil || IsNil(o.VotesDown.Get()) { + var ret int32 + return ret + } + return *o.VotesDown.Get() +} + +// GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetVotesDownOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.VotesDown.Get(), o.VotesDown.IsSet() +} + +// HasVotesDown returns a boolean if a field has been set. +func (o *PublicCommentBase) HasVotesDown() bool { + if o != nil && o.VotesDown.IsSet() { + return true + } + + return false +} + +// SetVotesDown gets a reference to the given NullableInt32 and assigns it to the VotesDown field. +func (o *PublicCommentBase) SetVotesDown(v int32) { + o.VotesDown.Set(&v) +} +// SetVotesDownNil sets the value for VotesDown to be an explicit nil +func (o *PublicCommentBase) SetVotesDownNil() { + o.VotesDown.Set(nil) +} + +// UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +func (o *PublicCommentBase) UnsetVotesDown() { + o.VotesDown.Unset() +} + +// GetVerified returns the Verified field value +func (o *PublicCommentBase) GetVerified() bool { + if o == nil { + var ret bool + return ret + } + + return o.Verified +} + +// GetVerifiedOk returns a tuple with the Verified field value +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetVerifiedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Verified, true +} + +// SetVerified sets field value +func (o *PublicCommentBase) SetVerified(v bool) { + o.Verified = v +} + +// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetAvatarSrc() string { + if o == nil || IsNil(o.AvatarSrc.Get()) { + var ret string + return ret + } + return *o.AvatarSrc.Get() +} + +// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetAvatarSrcOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AvatarSrc.Get(), o.AvatarSrc.IsSet() +} + +// HasAvatarSrc returns a boolean if a field has been set. +func (o *PublicCommentBase) HasAvatarSrc() bool { + if o != nil && o.AvatarSrc.IsSet() { + return true + } + + return false +} + +// SetAvatarSrc gets a reference to the given NullableString and assigns it to the AvatarSrc field. +func (o *PublicCommentBase) SetAvatarSrc(v string) { + o.AvatarSrc.Set(&v) +} +// SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil +func (o *PublicCommentBase) SetAvatarSrcNil() { + o.AvatarSrc.Set(nil) +} + +// UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +func (o *PublicCommentBase) UnsetAvatarSrc() { + o.AvatarSrc.Unset() +} + +// GetHasImages returns the HasImages field value if set, zero value otherwise. +func (o *PublicCommentBase) GetHasImages() bool { + if o == nil || IsNil(o.HasImages) { + var ret bool + return ret + } + return *o.HasImages +} + +// GetHasImagesOk returns a tuple with the HasImages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetHasImagesOk() (*bool, bool) { + if o == nil || IsNil(o.HasImages) { + return nil, false + } + return o.HasImages, true +} + +// HasHasImages returns a boolean if a field has been set. +func (o *PublicCommentBase) HasHasImages() bool { + if o != nil && !IsNil(o.HasImages) { + return true + } + + return false +} + +// SetHasImages gets a reference to the given bool and assigns it to the HasImages field. +func (o *PublicCommentBase) SetHasImages(v bool) { + o.HasImages = &v +} + +// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. +func (o *PublicCommentBase) GetIsByAdmin() bool { + if o == nil || IsNil(o.IsByAdmin) { + var ret bool + return ret + } + return *o.IsByAdmin +} + +// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetIsByAdminOk() (*bool, bool) { + if o == nil || IsNil(o.IsByAdmin) { + return nil, false + } + return o.IsByAdmin, true +} + +// HasIsByAdmin returns a boolean if a field has been set. +func (o *PublicCommentBase) HasIsByAdmin() bool { + if o != nil && !IsNil(o.IsByAdmin) { + return true + } + + return false +} + +// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. +func (o *PublicCommentBase) SetIsByAdmin(v bool) { + o.IsByAdmin = &v +} + +// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. +func (o *PublicCommentBase) GetIsByModerator() bool { + if o == nil || IsNil(o.IsByModerator) { + var ret bool + return ret + } + return *o.IsByModerator +} + +// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetIsByModeratorOk() (*bool, bool) { + if o == nil || IsNil(o.IsByModerator) { + return nil, false + } + return o.IsByModerator, true +} + +// HasIsByModerator returns a boolean if a field has been set. +func (o *PublicCommentBase) HasIsByModerator() bool { + if o != nil && !IsNil(o.IsByModerator) { + return true + } + + return false +} + +// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. +func (o *PublicCommentBase) SetIsByModerator(v bool) { + o.IsByModerator = &v +} + +// GetIsPinned returns the IsPinned field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetIsPinned() bool { + if o == nil || IsNil(o.IsPinned.Get()) { + var ret bool + return ret + } + return *o.IsPinned.Get() +} + +// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetIsPinnedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsPinned.Get(), o.IsPinned.IsSet() +} + +// HasIsPinned returns a boolean if a field has been set. +func (o *PublicCommentBase) HasIsPinned() bool { + if o != nil && o.IsPinned.IsSet() { + return true + } + + return false +} + +// SetIsPinned gets a reference to the given NullableBool and assigns it to the IsPinned field. +func (o *PublicCommentBase) SetIsPinned(v bool) { + o.IsPinned.Set(&v) +} +// SetIsPinnedNil sets the value for IsPinned to be an explicit nil +func (o *PublicCommentBase) SetIsPinnedNil() { + o.IsPinned.Set(nil) +} + +// UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +func (o *PublicCommentBase) UnsetIsPinned() { + o.IsPinned.Unset() +} + +// GetIsLocked returns the IsLocked field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetIsLocked() bool { + if o == nil || IsNil(o.IsLocked.Get()) { + var ret bool + return ret + } + return *o.IsLocked.Get() +} + +// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetIsLockedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsLocked.Get(), o.IsLocked.IsSet() +} + +// HasIsLocked returns a boolean if a field has been set. +func (o *PublicCommentBase) HasIsLocked() bool { + if o != nil && o.IsLocked.IsSet() { + return true + } + + return false +} + +// SetIsLocked gets a reference to the given NullableBool and assigns it to the IsLocked field. +func (o *PublicCommentBase) SetIsLocked(v bool) { + o.IsLocked.Set(&v) +} +// SetIsLockedNil sets the value for IsLocked to be an explicit nil +func (o *PublicCommentBase) SetIsLockedNil() { + o.IsLocked.Set(nil) +} + +// UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +func (o *PublicCommentBase) UnsetIsLocked() { + o.IsLocked.Unset() +} + +// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetDisplayLabel() string { + if o == nil || IsNil(o.DisplayLabel.Get()) { + var ret string + return ret + } + return *o.DisplayLabel.Get() +} + +// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetDisplayLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayLabel.Get(), o.DisplayLabel.IsSet() +} + +// HasDisplayLabel returns a boolean if a field has been set. +func (o *PublicCommentBase) HasDisplayLabel() bool { + if o != nil && o.DisplayLabel.IsSet() { + return true + } + + return false +} + +// SetDisplayLabel gets a reference to the given NullableString and assigns it to the DisplayLabel field. +func (o *PublicCommentBase) SetDisplayLabel(v string) { + o.DisplayLabel.Set(&v) +} +// SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil +func (o *PublicCommentBase) SetDisplayLabelNil() { + o.DisplayLabel.Set(nil) +} + +// UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +func (o *PublicCommentBase) UnsetDisplayLabel() { + o.DisplayLabel.Unset() +} + +// GetRating returns the Rating field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetRating() float64 { + if o == nil || IsNil(o.Rating.Get()) { + var ret float64 + return ret + } + return *o.Rating.Get() +} + +// GetRatingOk returns a tuple with the Rating field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetRatingOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Rating.Get(), o.Rating.IsSet() +} + +// HasRating returns a boolean if a field has been set. +func (o *PublicCommentBase) HasRating() bool { + if o != nil && o.Rating.IsSet() { + return true + } + + return false +} + +// SetRating gets a reference to the given NullableFloat64 and assigns it to the Rating field. +func (o *PublicCommentBase) SetRating(v float64) { + o.Rating.Set(&v) +} +// SetRatingNil sets the value for Rating to be an explicit nil +func (o *PublicCommentBase) SetRatingNil() { + o.Rating.Set(nil) +} + +// UnsetRating ensures that no value is present for Rating, not even an explicit nil +func (o *PublicCommentBase) UnsetRating() { + o.Rating.Unset() +} + +// GetBadges returns the Badges field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetBadges() []CommentUserBadgeInfo { + if o == nil { + var ret []CommentUserBadgeInfo + return ret + } + return o.Badges +} + +// GetBadgesOk returns a tuple with the Badges field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetBadgesOk() ([]CommentUserBadgeInfo, bool) { + if o == nil || IsNil(o.Badges) { + return nil, false + } + return o.Badges, true +} + +// HasBadges returns a boolean if a field has been set. +func (o *PublicCommentBase) HasBadges() bool { + if o != nil && !IsNil(o.Badges) { + return true + } + + return false +} + +// SetBadges gets a reference to the given []CommentUserBadgeInfo and assigns it to the Badges field. +func (o *PublicCommentBase) SetBadges(v []CommentUserBadgeInfo) { + o.Badges = v +} + +// GetViewCount returns the ViewCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetViewCount() int64 { + if o == nil || IsNil(o.ViewCount.Get()) { + var ret int64 + return ret + } + return *o.ViewCount.Get() +} + +// GetViewCountOk returns a tuple with the ViewCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetViewCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.ViewCount.Get(), o.ViewCount.IsSet() +} + +// HasViewCount returns a boolean if a field has been set. +func (o *PublicCommentBase) HasViewCount() bool { + if o != nil && o.ViewCount.IsSet() { + return true + } + + return false +} + +// SetViewCount gets a reference to the given NullableInt64 and assigns it to the ViewCount field. +func (o *PublicCommentBase) SetViewCount(v int64) { + o.ViewCount.Set(&v) +} +// SetViewCountNil sets the value for ViewCount to be an explicit nil +func (o *PublicCommentBase) SetViewCountNil() { + o.ViewCount.Set(nil) +} + +// UnsetViewCount ensures that no value is present for ViewCount, not even an explicit nil +func (o *PublicCommentBase) UnsetViewCount() { + o.ViewCount.Unset() +} + +// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. +func (o *PublicCommentBase) GetIsDeleted() bool { + if o == nil || IsNil(o.IsDeleted) { + var ret bool + return ret + } + return *o.IsDeleted +} + +// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetIsDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeleted) { + return nil, false + } + return o.IsDeleted, true +} + +// HasIsDeleted returns a boolean if a field has been set. +func (o *PublicCommentBase) HasIsDeleted() bool { + if o != nil && !IsNil(o.IsDeleted) { + return true + } + + return false +} + +// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. +func (o *PublicCommentBase) SetIsDeleted(v bool) { + o.IsDeleted = &v +} + +// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. +func (o *PublicCommentBase) GetIsDeletedUser() bool { + if o == nil || IsNil(o.IsDeletedUser) { + var ret bool + return ret + } + return *o.IsDeletedUser +} + +// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetIsDeletedUserOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeletedUser) { + return nil, false + } + return o.IsDeletedUser, true +} + +// HasIsDeletedUser returns a boolean if a field has been set. +func (o *PublicCommentBase) HasIsDeletedUser() bool { + if o != nil && !IsNil(o.IsDeletedUser) { + return true + } + + return false +} + +// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. +func (o *PublicCommentBase) SetIsDeletedUser(v bool) { + o.IsDeletedUser = &v +} + +// GetIsSpam returns the IsSpam field value if set, zero value otherwise. +func (o *PublicCommentBase) GetIsSpam() bool { + if o == nil || IsNil(o.IsSpam) { + var ret bool + return ret + } + return *o.IsSpam +} + +// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetIsSpamOk() (*bool, bool) { + if o == nil || IsNil(o.IsSpam) { + return nil, false + } + return o.IsSpam, true +} + +// HasIsSpam returns a boolean if a field has been set. +func (o *PublicCommentBase) HasIsSpam() bool { + if o != nil && !IsNil(o.IsSpam) { + return true + } + + return false +} + +// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. +func (o *PublicCommentBase) SetIsSpam(v bool) { + o.IsSpam = &v +} + +// GetAnonUserId returns the AnonUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PublicCommentBase) GetAnonUserId() string { + if o == nil || IsNil(o.AnonUserId.Get()) { + var ret string + return ret + } + return *o.AnonUserId.Get() +} + +// GetAnonUserIdOk returns a tuple with the AnonUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PublicCommentBase) GetAnonUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AnonUserId.Get(), o.AnonUserId.IsSet() +} + +// HasAnonUserId returns a boolean if a field has been set. +func (o *PublicCommentBase) HasAnonUserId() bool { + if o != nil && o.AnonUserId.IsSet() { + return true + } + + return false +} + +// SetAnonUserId gets a reference to the given NullableString and assigns it to the AnonUserId field. +func (o *PublicCommentBase) SetAnonUserId(v string) { + o.AnonUserId.Set(&v) +} +// SetAnonUserIdNil sets the value for AnonUserId to be an explicit nil +func (o *PublicCommentBase) SetAnonUserIdNil() { + o.AnonUserId.Set(nil) +} + +// UnsetAnonUserId ensures that no value is present for AnonUserId, not even an explicit nil +func (o *PublicCommentBase) UnsetAnonUserId() { + o.AnonUserId.Unset() +} + +// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. +func (o *PublicCommentBase) GetFeedbackIds() []string { + if o == nil || IsNil(o.FeedbackIds) { + var ret []string + return ret + } + return o.FeedbackIds +} + +// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetFeedbackIdsOk() ([]string, bool) { + if o == nil || IsNil(o.FeedbackIds) { + return nil, false + } + return o.FeedbackIds, true +} + +// HasFeedbackIds returns a boolean if a field has been set. +func (o *PublicCommentBase) HasFeedbackIds() bool { + if o != nil && !IsNil(o.FeedbackIds) { + return true + } + + return false +} + +// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. +func (o *PublicCommentBase) SetFeedbackIds(v []string) { + o.FeedbackIds = v +} + +// GetRequiresVerification returns the RequiresVerification field value if set, zero value otherwise. +func (o *PublicCommentBase) GetRequiresVerification() bool { + if o == nil || IsNil(o.RequiresVerification) { + var ret bool + return ret + } + return *o.RequiresVerification +} + +// GetRequiresVerificationOk returns a tuple with the RequiresVerification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetRequiresVerificationOk() (*bool, bool) { + if o == nil || IsNil(o.RequiresVerification) { + return nil, false + } + return o.RequiresVerification, true +} + +// HasRequiresVerification returns a boolean if a field has been set. +func (o *PublicCommentBase) HasRequiresVerification() bool { + if o != nil && !IsNil(o.RequiresVerification) { + return true + } + + return false +} + +// SetRequiresVerification gets a reference to the given bool and assigns it to the RequiresVerification field. +func (o *PublicCommentBase) SetRequiresVerification(v bool) { + o.RequiresVerification = &v +} + +// GetEditKey returns the EditKey field value if set, zero value otherwise. +func (o *PublicCommentBase) GetEditKey() string { + if o == nil || IsNil(o.EditKey) { + var ret string + return ret + } + return *o.EditKey +} + +// GetEditKeyOk returns a tuple with the EditKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetEditKeyOk() (*string, bool) { + if o == nil || IsNil(o.EditKey) { + return nil, false + } + return o.EditKey, true +} + +// HasEditKey returns a boolean if a field has been set. +func (o *PublicCommentBase) HasEditKey() bool { + if o != nil && !IsNil(o.EditKey) { + return true + } + + return false +} + +// SetEditKey gets a reference to the given string and assigns it to the EditKey field. +func (o *PublicCommentBase) SetEditKey(v string) { + o.EditKey = &v +} + +// GetApproved returns the Approved field value if set, zero value otherwise. +func (o *PublicCommentBase) GetApproved() bool { + if o == nil || IsNil(o.Approved) { + var ret bool + return ret + } + return *o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PublicCommentBase) GetApprovedOk() (*bool, bool) { + if o == nil || IsNil(o.Approved) { + return nil, false + } + return o.Approved, true +} + +// HasApproved returns a boolean if a field has been set. +func (o *PublicCommentBase) HasApproved() bool { + if o != nil && !IsNil(o.Approved) { + return true + } + + return false +} + +// SetApproved gets a reference to the given bool and assigns it to the Approved field. +func (o *PublicCommentBase) SetApproved(v bool) { + o.Approved = &v +} + +func (o PublicCommentBase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PublicCommentBase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["_id"] = o.Id + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + toSerialize["commenterName"] = o.CommenterName + if o.CommenterLink.IsSet() { + toSerialize["commenterLink"] = o.CommenterLink.Get() + } + toSerialize["commentHTML"] = o.CommentHTML + if o.ParentId.IsSet() { + toSerialize["parentId"] = o.ParentId.Get() + } + toSerialize["date"] = o.Date.Get() + if o.Votes.IsSet() { + toSerialize["votes"] = o.Votes.Get() + } + if o.VotesUp.IsSet() { + toSerialize["votesUp"] = o.VotesUp.Get() + } + if o.VotesDown.IsSet() { + toSerialize["votesDown"] = o.VotesDown.Get() + } + toSerialize["verified"] = o.Verified + if o.AvatarSrc.IsSet() { + toSerialize["avatarSrc"] = o.AvatarSrc.Get() + } + if !IsNil(o.HasImages) { + toSerialize["hasImages"] = o.HasImages + } + if !IsNil(o.IsByAdmin) { + toSerialize["isByAdmin"] = o.IsByAdmin + } + if !IsNil(o.IsByModerator) { + toSerialize["isByModerator"] = o.IsByModerator + } + if o.IsPinned.IsSet() { + toSerialize["isPinned"] = o.IsPinned.Get() + } + if o.IsLocked.IsSet() { + toSerialize["isLocked"] = o.IsLocked.Get() + } + if o.DisplayLabel.IsSet() { + toSerialize["displayLabel"] = o.DisplayLabel.Get() + } + if o.Rating.IsSet() { + toSerialize["rating"] = o.Rating.Get() + } + if o.Badges != nil { + toSerialize["badges"] = o.Badges + } + if o.ViewCount.IsSet() { + toSerialize["viewCount"] = o.ViewCount.Get() + } + if !IsNil(o.IsDeleted) { + toSerialize["isDeleted"] = o.IsDeleted + } + if !IsNil(o.IsDeletedUser) { + toSerialize["isDeletedUser"] = o.IsDeletedUser + } + if !IsNil(o.IsSpam) { + toSerialize["isSpam"] = o.IsSpam + } + if o.AnonUserId.IsSet() { + toSerialize["anonUserId"] = o.AnonUserId.Get() + } + if !IsNil(o.FeedbackIds) { + toSerialize["feedbackIds"] = o.FeedbackIds + } + if !IsNil(o.RequiresVerification) { + toSerialize["requiresVerification"] = o.RequiresVerification + } + if !IsNil(o.EditKey) { + toSerialize["editKey"] = o.EditKey + } + if !IsNil(o.Approved) { + toSerialize["approved"] = o.Approved + } + return toSerialize, nil +} + +func (o *PublicCommentBase) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "_id", + "commenterName", + "commentHTML", + "date", + "verified", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPublicCommentBase := _PublicCommentBase{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPublicCommentBase) + + if err != nil { + return err + } + + *o = PublicCommentBase(varPublicCommentBase) + + return err +} + +type NullablePublicCommentBase struct { + value *PublicCommentBase + isSet bool +} + +func (v NullablePublicCommentBase) Get() *PublicCommentBase { + return v.value +} + +func (v *NullablePublicCommentBase) Set(val *PublicCommentBase) { + v.value = val + v.isSet = true +} + +func (v NullablePublicCommentBase) IsSet() bool { + return v.isSet +} + +func (v *NullablePublicCommentBase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePublicCommentBase(val *PublicCommentBase) *NullablePublicCommentBase { + return &NullablePublicCommentBase{value: val, isSet: true} +} + +func (v NullablePublicCommentBase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePublicCommentBase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_public_feed_posts_response.go b/client/model_public_feed_posts_response.go index 9fe2cf6..b7fd13f 100644 --- a/client/model_public_feed_posts_response.go +++ b/client/model_public_feed_posts_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &PublicFeedPostsResponse{} // PublicFeedPostsResponse struct for PublicFeedPostsResponse type PublicFeedPostsResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` FeedPosts []FeedPost `json:"feedPosts"` User NullableUserSessionInfo `json:"user,omitempty"` UrlIdWS *string `json:"urlIdWS,omitempty"` @@ -36,7 +36,7 @@ type _PublicFeedPostsResponse PublicFeedPostsResponse // 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 NewPublicFeedPostsResponse(status ImportedAPIStatusSUCCESS, feedPosts []FeedPost) *PublicFeedPostsResponse { +func NewPublicFeedPostsResponse(status APIStatus, feedPosts []FeedPost) *PublicFeedPostsResponse { this := PublicFeedPostsResponse{} this.Status = status this.FeedPosts = feedPosts @@ -52,9 +52,9 @@ func NewPublicFeedPostsResponseWithDefaults() *PublicFeedPostsResponse { } // GetStatus returns the Status field value -func (o *PublicFeedPostsResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *PublicFeedPostsResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -63,7 +63,7 @@ func (o *PublicFeedPostsResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *PublicFeedPostsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *PublicFeedPostsResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -71,7 +71,7 @@ func (o *PublicFeedPostsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool } // SetStatus sets field value -func (o *PublicFeedPostsResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *PublicFeedPostsResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_repeat_comment_check_ignored_reason.go b/client/model_repeat_comment_check_ignored_reason.go new file mode 100644 index 0000000..32a3875 --- /dev/null +++ b/client/model_repeat_comment_check_ignored_reason.go @@ -0,0 +1,121 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// RepeatCommentCheckIgnoredReason the model 'RepeatCommentCheckIgnoredReason' +type RepeatCommentCheckIgnoredReason float32 + +// List of RepeatCommentCheckIgnoredReason +const ( + REPEATCOMMENTCHECKIGNOREDREASON__0 RepeatCommentCheckIgnoredReason = 0 + REPEATCOMMENTCHECKIGNOREDREASON__1 RepeatCommentCheckIgnoredReason = 1 + REPEATCOMMENTCHECKIGNOREDREASON__2 RepeatCommentCheckIgnoredReason = 2 + REPEATCOMMENTCHECKIGNOREDREASON__3 RepeatCommentCheckIgnoredReason = 3 + REPEATCOMMENTCHECKIGNOREDREASON__4 RepeatCommentCheckIgnoredReason = 4 + REPEATCOMMENTCHECKIGNOREDREASON__5 RepeatCommentCheckIgnoredReason = 5 + REPEATCOMMENTCHECKIGNOREDREASON__6 RepeatCommentCheckIgnoredReason = 6 +) + +// All allowed values of RepeatCommentCheckIgnoredReason enum +var AllowedRepeatCommentCheckIgnoredReasonEnumValues = []RepeatCommentCheckIgnoredReason{ + 0, + 1, + 2, + 3, + 4, + 5, + 6, +} + +func (v *RepeatCommentCheckIgnoredReason) UnmarshalJSON(src []byte) error { + var value float32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RepeatCommentCheckIgnoredReason(value) + for _, existing := range AllowedRepeatCommentCheckIgnoredReasonEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RepeatCommentCheckIgnoredReason", value) +} + +// NewRepeatCommentCheckIgnoredReasonFromValue returns a pointer to a valid RepeatCommentCheckIgnoredReason +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRepeatCommentCheckIgnoredReasonFromValue(v float32) (*RepeatCommentCheckIgnoredReason, error) { + ev := RepeatCommentCheckIgnoredReason(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RepeatCommentCheckIgnoredReason: valid values are %v", v, AllowedRepeatCommentCheckIgnoredReasonEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RepeatCommentCheckIgnoredReason) IsValid() bool { + for _, existing := range AllowedRepeatCommentCheckIgnoredReasonEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RepeatCommentCheckIgnoredReason value +func (v RepeatCommentCheckIgnoredReason) Ptr() *RepeatCommentCheckIgnoredReason { + return &v +} + +type NullableRepeatCommentCheckIgnoredReason struct { + value *RepeatCommentCheckIgnoredReason + isSet bool +} + +func (v NullableRepeatCommentCheckIgnoredReason) Get() *RepeatCommentCheckIgnoredReason { + return v.value +} + +func (v *NullableRepeatCommentCheckIgnoredReason) Set(val *RepeatCommentCheckIgnoredReason) { + v.value = val + v.isSet = true +} + +func (v NullableRepeatCommentCheckIgnoredReason) IsSet() bool { + return v.isSet +} + +func (v *NullableRepeatCommentCheckIgnoredReason) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRepeatCommentCheckIgnoredReason(val *RepeatCommentCheckIgnoredReason) *NullableRepeatCommentCheckIgnoredReason { + return &NullableRepeatCommentCheckIgnoredReason{value: val, isSet: true} +} + +func (v NullableRepeatCommentCheckIgnoredReason) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRepeatCommentCheckIgnoredReason) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/client/model_repeat_comment_handling_action.go b/client/model_repeat_comment_handling_action.go new file mode 100644 index 0000000..1836133 --- /dev/null +++ b/client/model_repeat_comment_handling_action.go @@ -0,0 +1,113 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// RepeatCommentHandlingAction the model 'RepeatCommentHandlingAction' +type RepeatCommentHandlingAction float32 + +// List of RepeatCommentHandlingAction +const ( + REPEATCOMMENTHANDLINGACTION__0 RepeatCommentHandlingAction = 0 + REPEATCOMMENTHANDLINGACTION__1 RepeatCommentHandlingAction = 1 + REPEATCOMMENTHANDLINGACTION__2 RepeatCommentHandlingAction = 2 +) + +// All allowed values of RepeatCommentHandlingAction enum +var AllowedRepeatCommentHandlingActionEnumValues = []RepeatCommentHandlingAction{ + 0, + 1, + 2, +} + +func (v *RepeatCommentHandlingAction) UnmarshalJSON(src []byte) error { + var value float32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RepeatCommentHandlingAction(value) + for _, existing := range AllowedRepeatCommentHandlingActionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RepeatCommentHandlingAction", value) +} + +// NewRepeatCommentHandlingActionFromValue returns a pointer to a valid RepeatCommentHandlingAction +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRepeatCommentHandlingActionFromValue(v float32) (*RepeatCommentHandlingAction, error) { + ev := RepeatCommentHandlingAction(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RepeatCommentHandlingAction: valid values are %v", v, AllowedRepeatCommentHandlingActionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RepeatCommentHandlingAction) IsValid() bool { + for _, existing := range AllowedRepeatCommentHandlingActionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RepeatCommentHandlingAction value +func (v RepeatCommentHandlingAction) Ptr() *RepeatCommentHandlingAction { + return &v +} + +type NullableRepeatCommentHandlingAction struct { + value *RepeatCommentHandlingAction + isSet bool +} + +func (v NullableRepeatCommentHandlingAction) Get() *RepeatCommentHandlingAction { + return v.value +} + +func (v *NullableRepeatCommentHandlingAction) Set(val *RepeatCommentHandlingAction) { + v.value = val + v.isSet = true +} + +func (v NullableRepeatCommentHandlingAction) IsSet() bool { + return v.isSet +} + +func (v *NullableRepeatCommentHandlingAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRepeatCommentHandlingAction(val *RepeatCommentHandlingAction) *NullableRepeatCommentHandlingAction { + return &NullableRepeatCommentHandlingAction{value: val, isSet: true} +} + +func (v NullableRepeatCommentHandlingAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRepeatCommentHandlingAction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/client/model_reset_user_notifications_response.go b/client/model_reset_user_notifications_response.go index 547f88b..f0608d5 100644 --- a/client/model_reset_user_notifications_response.go +++ b/client/model_reset_user_notifications_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &ResetUserNotificationsResponse{} // ResetUserNotificationsResponse struct for ResetUserNotificationsResponse type ResetUserNotificationsResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` Code *string `json:"code,omitempty"` } @@ -31,7 +31,7 @@ type _ResetUserNotificationsResponse ResetUserNotificationsResponse // 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 NewResetUserNotificationsResponse(status ImportedAPIStatusSUCCESS) *ResetUserNotificationsResponse { +func NewResetUserNotificationsResponse(status APIStatus) *ResetUserNotificationsResponse { this := ResetUserNotificationsResponse{} this.Status = status return &this @@ -46,9 +46,9 @@ func NewResetUserNotificationsResponseWithDefaults() *ResetUserNotificationsResp } // GetStatus returns the Status field value -func (o *ResetUserNotificationsResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *ResetUserNotificationsResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -57,7 +57,7 @@ func (o *ResetUserNotificationsResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *ResetUserNotificationsResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *ResetUserNotificationsResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -65,7 +65,7 @@ func (o *ResetUserNotificationsResponse) GetStatusOk() (*ImportedAPIStatusSUCCES } // SetStatus sets field value -func (o *ResetUserNotificationsResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *ResetUserNotificationsResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_save_comment_response.go b/client/model_save_comment_response.go index 1be6ef4..4ce40b3 100644 --- a/client/model_save_comment_response.go +++ b/client/model_save_comment_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &SaveCommentResponse{} // SaveCommentResponse struct for SaveCommentResponse type SaveCommentResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` Comment FComment `json:"comment"` User NullableUserSessionInfo `json:"user"` // Construct a type with a set of properties K of type T @@ -34,7 +34,7 @@ type _SaveCommentResponse SaveCommentResponse // 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 NewSaveCommentResponse(status ImportedAPIStatusSUCCESS, comment FComment, user NullableUserSessionInfo) *SaveCommentResponse { +func NewSaveCommentResponse(status APIStatus, comment FComment, user NullableUserSessionInfo) *SaveCommentResponse { this := SaveCommentResponse{} this.Status = status this.Comment = comment @@ -51,9 +51,9 @@ func NewSaveCommentResponseWithDefaults() *SaveCommentResponse { } // GetStatus returns the Status field value -func (o *SaveCommentResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *SaveCommentResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -62,7 +62,7 @@ func (o *SaveCommentResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *SaveCommentResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *SaveCommentResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -70,7 +70,7 @@ func (o *SaveCommentResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { } // SetStatus sets field value -func (o *SaveCommentResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *SaveCommentResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_save_comment_response_optimized.go b/client/model_save_comment_response_optimized.go index 47f30f1..232f2ec 100644 --- a/client/model_save_comment_response_optimized.go +++ b/client/model_save_comment_response_optimized.go @@ -21,7 +21,7 @@ var _ MappedNullable = &SaveCommentResponseOptimized{} // SaveCommentResponseOptimized struct for SaveCommentResponseOptimized type SaveCommentResponseOptimized struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` Comment PublicComment `json:"comment"` User NullableUserSessionInfo `json:"user"` // Construct a type with a set of properties K of type T @@ -34,7 +34,7 @@ type _SaveCommentResponseOptimized SaveCommentResponseOptimized // 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 NewSaveCommentResponseOptimized(status ImportedAPIStatusSUCCESS, comment PublicComment, user NullableUserSessionInfo) *SaveCommentResponseOptimized { +func NewSaveCommentResponseOptimized(status APIStatus, comment PublicComment, user NullableUserSessionInfo) *SaveCommentResponseOptimized { this := SaveCommentResponseOptimized{} this.Status = status this.Comment = comment @@ -51,9 +51,9 @@ func NewSaveCommentResponseOptimizedWithDefaults() *SaveCommentResponseOptimized } // GetStatus returns the Status field value -func (o *SaveCommentResponseOptimized) GetStatus() ImportedAPIStatusSUCCESS { +func (o *SaveCommentResponseOptimized) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -62,7 +62,7 @@ func (o *SaveCommentResponseOptimized) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *SaveCommentResponseOptimized) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *SaveCommentResponseOptimized) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -70,7 +70,7 @@ func (o *SaveCommentResponseOptimized) GetStatusOk() (*ImportedAPIStatusSUCCESS, } // SetStatus sets field value -func (o *SaveCommentResponseOptimized) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *SaveCommentResponseOptimized) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_save_comments_response_with_presence.go b/client/model_save_comments_response_with_presence.go index 55fad89..a277c4f 100644 --- a/client/model_save_comments_response_with_presence.go +++ b/client/model_save_comments_response_with_presence.go @@ -21,7 +21,7 @@ var _ MappedNullable = &SaveCommentsResponseWithPresence{} // SaveCommentsResponseWithPresence struct for SaveCommentsResponseWithPresence type SaveCommentsResponseWithPresence struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` Comment PublicComment `json:"comment"` User NullableUserSessionInfo `json:"user"` // Construct a type with a set of properties K of type T @@ -35,7 +35,7 @@ type _SaveCommentsResponseWithPresence SaveCommentsResponseWithPresence // 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 NewSaveCommentsResponseWithPresence(status ImportedAPIStatusSUCCESS, comment PublicComment, user NullableUserSessionInfo) *SaveCommentsResponseWithPresence { +func NewSaveCommentsResponseWithPresence(status APIStatus, comment PublicComment, user NullableUserSessionInfo) *SaveCommentsResponseWithPresence { this := SaveCommentsResponseWithPresence{} this.Status = status this.Comment = comment @@ -52,9 +52,9 @@ func NewSaveCommentsResponseWithPresenceWithDefaults() *SaveCommentsResponseWith } // GetStatus returns the Status field value -func (o *SaveCommentsResponseWithPresence) GetStatus() ImportedAPIStatusSUCCESS { +func (o *SaveCommentsResponseWithPresence) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -63,7 +63,7 @@ func (o *SaveCommentsResponseWithPresence) GetStatus() ImportedAPIStatusSUCCESS // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *SaveCommentsResponseWithPresence) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *SaveCommentsResponseWithPresence) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -71,7 +71,7 @@ func (o *SaveCommentsResponseWithPresence) GetStatusOk() (*ImportedAPIStatusSUCC } // SetStatus sets field value -func (o *SaveCommentsResponseWithPresence) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *SaveCommentsResponseWithPresence) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_search_users_response.go b/client/model_search_users_response.go index 83f1ea9..ff247a2 100644 --- a/client/model_search_users_response.go +++ b/client/model_search_users_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &SearchUsersResponse{} // SearchUsersResponse struct for SearchUsersResponse type SearchUsersResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` Users []UserSearchResult `json:"users"` } @@ -31,7 +31,7 @@ type _SearchUsersResponse SearchUsersResponse // 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 NewSearchUsersResponse(status ImportedAPIStatusSUCCESS, users []UserSearchResult) *SearchUsersResponse { +func NewSearchUsersResponse(status APIStatus, users []UserSearchResult) *SearchUsersResponse { this := SearchUsersResponse{} this.Status = status this.Users = users @@ -47,9 +47,9 @@ func NewSearchUsersResponseWithDefaults() *SearchUsersResponse { } // GetStatus returns the Status field value -func (o *SearchUsersResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *SearchUsersResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -58,7 +58,7 @@ func (o *SearchUsersResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *SearchUsersResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *SearchUsersResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -66,7 +66,7 @@ func (o *SearchUsersResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { } // SetStatus sets field value -func (o *SearchUsersResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *SearchUsersResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_pick_f_comment_approved_or_comment_html_.go b/client/model_set_comment_text_result.go similarity index 52% rename from client/model_pick_f_comment_approved_or_comment_html_.go rename to client/model_set_comment_text_result.go index f8617d7..f302d4e 100644 --- a/client/model_pick_f_comment_approved_or_comment_html_.go +++ b/client/model_set_comment_text_result.go @@ -16,85 +16,85 @@ import ( "fmt" ) -// checks if the PickFCommentApprovedOrCommentHTML type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PickFCommentApprovedOrCommentHTML{} +// checks if the SetCommentTextResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetCommentTextResult{} -// PickFCommentApprovedOrCommentHTML From T, pick a set of properties whose keys are in the union K -type PickFCommentApprovedOrCommentHTML struct { - CommentHTML string `json:"commentHTML"` +// SetCommentTextResult struct for SetCommentTextResult +type SetCommentTextResult struct { Approved bool `json:"approved"` + CommentHTML string `json:"commentHTML"` } -type _PickFCommentApprovedOrCommentHTML PickFCommentApprovedOrCommentHTML +type _SetCommentTextResult SetCommentTextResult -// NewPickFCommentApprovedOrCommentHTML instantiates a new PickFCommentApprovedOrCommentHTML object +// NewSetCommentTextResult instantiates a new SetCommentTextResult 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 NewPickFCommentApprovedOrCommentHTML(commentHTML string, approved bool) *PickFCommentApprovedOrCommentHTML { - this := PickFCommentApprovedOrCommentHTML{} - this.CommentHTML = commentHTML +func NewSetCommentTextResult(approved bool, commentHTML string) *SetCommentTextResult { + this := SetCommentTextResult{} this.Approved = approved + this.CommentHTML = commentHTML return &this } -// NewPickFCommentApprovedOrCommentHTMLWithDefaults instantiates a new PickFCommentApprovedOrCommentHTML object +// NewSetCommentTextResultWithDefaults instantiates a new SetCommentTextResult 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 NewPickFCommentApprovedOrCommentHTMLWithDefaults() *PickFCommentApprovedOrCommentHTML { - this := PickFCommentApprovedOrCommentHTML{} +func NewSetCommentTextResultWithDefaults() *SetCommentTextResult { + this := SetCommentTextResult{} return &this } -// GetCommentHTML returns the CommentHTML field value -func (o *PickFCommentApprovedOrCommentHTML) GetCommentHTML() string { +// GetApproved returns the Approved field value +func (o *SetCommentTextResult) GetApproved() bool { if o == nil { - var ret string + var ret bool return ret } - return o.CommentHTML + return o.Approved } -// GetCommentHTMLOk returns a tuple with the CommentHTML field value +// GetApprovedOk returns a tuple with the Approved field value // and a boolean to check if the value has been set. -func (o *PickFCommentApprovedOrCommentHTML) GetCommentHTMLOk() (*string, bool) { +func (o *SetCommentTextResult) GetApprovedOk() (*bool, bool) { if o == nil { return nil, false } - return &o.CommentHTML, true + return &o.Approved, true } -// SetCommentHTML sets field value -func (o *PickFCommentApprovedOrCommentHTML) SetCommentHTML(v string) { - o.CommentHTML = v +// SetApproved sets field value +func (o *SetCommentTextResult) SetApproved(v bool) { + o.Approved = v } -// GetApproved returns the Approved field value -func (o *PickFCommentApprovedOrCommentHTML) GetApproved() bool { +// GetCommentHTML returns the CommentHTML field value +func (o *SetCommentTextResult) GetCommentHTML() string { if o == nil { - var ret bool + var ret string return ret } - return o.Approved + return o.CommentHTML } -// GetApprovedOk returns a tuple with the Approved field value +// GetCommentHTMLOk returns a tuple with the CommentHTML field value // and a boolean to check if the value has been set. -func (o *PickFCommentApprovedOrCommentHTML) GetApprovedOk() (*bool, bool) { +func (o *SetCommentTextResult) GetCommentHTMLOk() (*string, bool) { if o == nil { return nil, false } - return &o.Approved, true + return &o.CommentHTML, true } -// SetApproved sets field value -func (o *PickFCommentApprovedOrCommentHTML) SetApproved(v bool) { - o.Approved = v +// SetCommentHTML sets field value +func (o *SetCommentTextResult) SetCommentHTML(v string) { + o.CommentHTML = v } -func (o PickFCommentApprovedOrCommentHTML) MarshalJSON() ([]byte, error) { +func (o SetCommentTextResult) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -102,20 +102,20 @@ func (o PickFCommentApprovedOrCommentHTML) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o PickFCommentApprovedOrCommentHTML) ToMap() (map[string]interface{}, error) { +func (o SetCommentTextResult) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["commentHTML"] = o.CommentHTML toSerialize["approved"] = o.Approved + toSerialize["commentHTML"] = o.CommentHTML return toSerialize, nil } -func (o *PickFCommentApprovedOrCommentHTML) UnmarshalJSON(data []byte) (err error) { +func (o *SetCommentTextResult) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "commentHTML", "approved", + "commentHTML", } allProperties := make(map[string]interface{}) @@ -132,53 +132,53 @@ func (o *PickFCommentApprovedOrCommentHTML) UnmarshalJSON(data []byte) (err erro } } - varPickFCommentApprovedOrCommentHTML := _PickFCommentApprovedOrCommentHTML{} + varSetCommentTextResult := _SetCommentTextResult{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varPickFCommentApprovedOrCommentHTML) + err = decoder.Decode(&varSetCommentTextResult) if err != nil { return err } - *o = PickFCommentApprovedOrCommentHTML(varPickFCommentApprovedOrCommentHTML) + *o = SetCommentTextResult(varSetCommentTextResult) return err } -type NullablePickFCommentApprovedOrCommentHTML struct { - value *PickFCommentApprovedOrCommentHTML +type NullableSetCommentTextResult struct { + value *SetCommentTextResult isSet bool } -func (v NullablePickFCommentApprovedOrCommentHTML) Get() *PickFCommentApprovedOrCommentHTML { +func (v NullableSetCommentTextResult) Get() *SetCommentTextResult { return v.value } -func (v *NullablePickFCommentApprovedOrCommentHTML) Set(val *PickFCommentApprovedOrCommentHTML) { +func (v *NullableSetCommentTextResult) Set(val *SetCommentTextResult) { v.value = val v.isSet = true } -func (v NullablePickFCommentApprovedOrCommentHTML) IsSet() bool { +func (v NullableSetCommentTextResult) IsSet() bool { return v.isSet } -func (v *NullablePickFCommentApprovedOrCommentHTML) Unset() { +func (v *NullableSetCommentTextResult) Unset() { v.value = nil v.isSet = false } -func NewNullablePickFCommentApprovedOrCommentHTML(val *PickFCommentApprovedOrCommentHTML) *NullablePickFCommentApprovedOrCommentHTML { - return &NullablePickFCommentApprovedOrCommentHTML{value: val, isSet: true} +func NewNullableSetCommentTextResult(val *SetCommentTextResult) *NullableSetCommentTextResult { + return &NullableSetCommentTextResult{value: val, isSet: true} } -func (v NullablePickFCommentApprovedOrCommentHTML) MarshalJSON() ([]byte, error) { +func (v NullableSetCommentTextResult) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePickFCommentApprovedOrCommentHTML) UnmarshalJSON(src []byte) error { +func (v *NullableSetCommentTextResult) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/client/model_unblock_success.go b/client/model_unblock_success.go index 1155625..349245a 100644 --- a/client/model_unblock_success.go +++ b/client/model_unblock_success.go @@ -21,7 +21,7 @@ var _ MappedNullable = &UnblockSuccess{} // UnblockSuccess struct for UnblockSuccess type UnblockSuccess struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` // Construct a type with a set of properties K of type T CommentStatuses map[string]bool `json:"commentStatuses"` } @@ -32,7 +32,7 @@ type _UnblockSuccess UnblockSuccess // 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 NewUnblockSuccess(status ImportedAPIStatusSUCCESS, commentStatuses map[string]bool) *UnblockSuccess { +func NewUnblockSuccess(status APIStatus, commentStatuses map[string]bool) *UnblockSuccess { this := UnblockSuccess{} this.Status = status this.CommentStatuses = commentStatuses @@ -48,9 +48,9 @@ func NewUnblockSuccessWithDefaults() *UnblockSuccess { } // GetStatus returns the Status field value -func (o *UnblockSuccess) GetStatus() ImportedAPIStatusSUCCESS { +func (o *UnblockSuccess) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -59,7 +59,7 @@ func (o *UnblockSuccess) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *UnblockSuccess) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *UnblockSuccess) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -67,7 +67,7 @@ func (o *UnblockSuccess) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { } // SetStatus sets field value -func (o *UnblockSuccess) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *UnblockSuccess) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_updatable_comment_params.go b/client/model_updatable_comment_params.go new file mode 100644 index 0000000..0a5da85 --- /dev/null +++ b/client/model_updatable_comment_params.go @@ -0,0 +1,1696 @@ +/* +fastcomments + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" +) + +// checks if the UpdatableCommentParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdatableCommentParams{} + +// UpdatableCommentParams struct for UpdatableCommentParams +type UpdatableCommentParams struct { + UrlId *string `json:"urlId,omitempty"` + UrlIdRaw *string `json:"urlIdRaw,omitempty"` + Url *string `json:"url,omitempty"` + PageTitle NullableString `json:"pageTitle,omitempty"` + UserId NullableString `json:"userId,omitempty"` + CommenterEmail NullableString `json:"commenterEmail,omitempty"` + CommenterName *string `json:"commenterName,omitempty"` + CommenterLink NullableString `json:"commenterLink,omitempty"` + Comment *string `json:"comment,omitempty"` + CommentHTML *string `json:"commentHTML,omitempty"` + ParentId NullableString `json:"parentId,omitempty"` + Date NullableFloat64 `json:"date,omitempty"` + LocalDateString NullableString `json:"localDateString,omitempty"` + LocalDateHours NullableInt32 `json:"localDateHours,omitempty"` + Votes NullableInt32 `json:"votes,omitempty"` + VotesUp NullableInt32 `json:"votesUp,omitempty"` + VotesDown NullableInt32 `json:"votesDown,omitempty"` + ExpireAt NullableTime `json:"expireAt,omitempty"` + Verified *bool `json:"verified,omitempty"` + VerifiedDate NullableTime `json:"verifiedDate,omitempty"` + NotificationSentForParent *bool `json:"notificationSentForParent,omitempty"` + NotificationSentForParentTenant *bool `json:"notificationSentForParentTenant,omitempty"` + Reviewed *bool `json:"reviewed,omitempty"` + ExternalId *string `json:"externalId,omitempty"` + ExternalParentId NullableString `json:"externalParentId,omitempty"` + AvatarSrc NullableString `json:"avatarSrc,omitempty"` + IsSpam *bool `json:"isSpam,omitempty"` + Approved *bool `json:"approved,omitempty"` + IsDeleted *bool `json:"isDeleted,omitempty"` + IsDeletedUser *bool `json:"isDeletedUser,omitempty"` + IsByAdmin *bool `json:"isByAdmin,omitempty"` + IsByModerator *bool `json:"isByModerator,omitempty"` + IsPinned NullableBool `json:"isPinned,omitempty"` + IsLocked NullableBool `json:"isLocked,omitempty"` + FlagCount NullableInt32 `json:"flagCount,omitempty"` + DisplayLabel NullableString `json:"displayLabel,omitempty"` + Meta NullableFCommentMeta `json:"meta,omitempty"` + ModerationGroupIds []string `json:"moderationGroupIds,omitempty"` + FeedbackIds []string `json:"feedbackIds,omitempty"` +} + +// NewUpdatableCommentParams instantiates a new UpdatableCommentParams 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 NewUpdatableCommentParams() *UpdatableCommentParams { + this := UpdatableCommentParams{} + return &this +} + +// NewUpdatableCommentParamsWithDefaults instantiates a new UpdatableCommentParams 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 NewUpdatableCommentParamsWithDefaults() *UpdatableCommentParams { + this := UpdatableCommentParams{} + return &this +} + +// GetUrlId returns the UrlId field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetUrlId() string { + if o == nil || IsNil(o.UrlId) { + var ret string + return ret + } + return *o.UrlId +} + +// GetUrlIdOk returns a tuple with the UrlId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetUrlIdOk() (*string, bool) { + if o == nil || IsNil(o.UrlId) { + return nil, false + } + return o.UrlId, true +} + +// HasUrlId returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasUrlId() bool { + if o != nil && !IsNil(o.UrlId) { + return true + } + + return false +} + +// SetUrlId gets a reference to the given string and assigns it to the UrlId field. +func (o *UpdatableCommentParams) SetUrlId(v string) { + o.UrlId = &v +} + +// GetUrlIdRaw returns the UrlIdRaw field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetUrlIdRaw() string { + if o == nil || IsNil(o.UrlIdRaw) { + var ret string + return ret + } + return *o.UrlIdRaw +} + +// GetUrlIdRawOk returns a tuple with the UrlIdRaw field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetUrlIdRawOk() (*string, bool) { + if o == nil || IsNil(o.UrlIdRaw) { + return nil, false + } + return o.UrlIdRaw, true +} + +// HasUrlIdRaw returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasUrlIdRaw() bool { + if o != nil && !IsNil(o.UrlIdRaw) { + return true + } + + return false +} + +// SetUrlIdRaw gets a reference to the given string and assigns it to the UrlIdRaw field. +func (o *UpdatableCommentParams) SetUrlIdRaw(v string) { + o.UrlIdRaw = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *UpdatableCommentParams) SetUrl(v string) { + o.Url = &v +} + +// GetPageTitle returns the PageTitle field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetPageTitle() string { + if o == nil || IsNil(o.PageTitle.Get()) { + var ret string + return ret + } + return *o.PageTitle.Get() +} + +// GetPageTitleOk returns a tuple with the PageTitle field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetPageTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PageTitle.Get(), o.PageTitle.IsSet() +} + +// HasPageTitle returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasPageTitle() bool { + if o != nil && o.PageTitle.IsSet() { + return true + } + + return false +} + +// SetPageTitle gets a reference to the given NullableString and assigns it to the PageTitle field. +func (o *UpdatableCommentParams) SetPageTitle(v string) { + o.PageTitle.Set(&v) +} +// SetPageTitleNil sets the value for PageTitle to be an explicit nil +func (o *UpdatableCommentParams) SetPageTitleNil() { + o.PageTitle.Set(nil) +} + +// UnsetPageTitle ensures that no value is present for PageTitle, not even an explicit nil +func (o *UpdatableCommentParams) UnsetPageTitle() { + o.PageTitle.Unset() +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *UpdatableCommentParams) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *UpdatableCommentParams) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *UpdatableCommentParams) UnsetUserId() { + o.UserId.Unset() +} + +// GetCommenterEmail returns the CommenterEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetCommenterEmail() string { + if o == nil || IsNil(o.CommenterEmail.Get()) { + var ret string + return ret + } + return *o.CommenterEmail.Get() +} + +// GetCommenterEmailOk returns a tuple with the CommenterEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetCommenterEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommenterEmail.Get(), o.CommenterEmail.IsSet() +} + +// HasCommenterEmail returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasCommenterEmail() bool { + if o != nil && o.CommenterEmail.IsSet() { + return true + } + + return false +} + +// SetCommenterEmail gets a reference to the given NullableString and assigns it to the CommenterEmail field. +func (o *UpdatableCommentParams) SetCommenterEmail(v string) { + o.CommenterEmail.Set(&v) +} +// SetCommenterEmailNil sets the value for CommenterEmail to be an explicit nil +func (o *UpdatableCommentParams) SetCommenterEmailNil() { + o.CommenterEmail.Set(nil) +} + +// UnsetCommenterEmail ensures that no value is present for CommenterEmail, not even an explicit nil +func (o *UpdatableCommentParams) UnsetCommenterEmail() { + o.CommenterEmail.Unset() +} + +// GetCommenterName returns the CommenterName field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetCommenterName() string { + if o == nil || IsNil(o.CommenterName) { + var ret string + return ret + } + return *o.CommenterName +} + +// GetCommenterNameOk returns a tuple with the CommenterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetCommenterNameOk() (*string, bool) { + if o == nil || IsNil(o.CommenterName) { + return nil, false + } + return o.CommenterName, true +} + +// HasCommenterName returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasCommenterName() bool { + if o != nil && !IsNil(o.CommenterName) { + return true + } + + return false +} + +// SetCommenterName gets a reference to the given string and assigns it to the CommenterName field. +func (o *UpdatableCommentParams) SetCommenterName(v string) { + o.CommenterName = &v +} + +// GetCommenterLink returns the CommenterLink field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetCommenterLink() string { + if o == nil || IsNil(o.CommenterLink.Get()) { + var ret string + return ret + } + return *o.CommenterLink.Get() +} + +// GetCommenterLinkOk returns a tuple with the CommenterLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetCommenterLinkOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CommenterLink.Get(), o.CommenterLink.IsSet() +} + +// HasCommenterLink returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasCommenterLink() bool { + if o != nil && o.CommenterLink.IsSet() { + return true + } + + return false +} + +// SetCommenterLink gets a reference to the given NullableString and assigns it to the CommenterLink field. +func (o *UpdatableCommentParams) SetCommenterLink(v string) { + o.CommenterLink.Set(&v) +} +// SetCommenterLinkNil sets the value for CommenterLink to be an explicit nil +func (o *UpdatableCommentParams) SetCommenterLinkNil() { + o.CommenterLink.Set(nil) +} + +// UnsetCommenterLink ensures that no value is present for CommenterLink, not even an explicit nil +func (o *UpdatableCommentParams) UnsetCommenterLink() { + o.CommenterLink.Unset() +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetComment() string { + if o == nil || IsNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetCommentOk() (*string, bool) { + if o == nil || IsNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasComment() bool { + if o != nil && !IsNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *UpdatableCommentParams) SetComment(v string) { + o.Comment = &v +} + +// GetCommentHTML returns the CommentHTML field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetCommentHTML() string { + if o == nil || IsNil(o.CommentHTML) { + var ret string + return ret + } + return *o.CommentHTML +} + +// GetCommentHTMLOk returns a tuple with the CommentHTML field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetCommentHTMLOk() (*string, bool) { + if o == nil || IsNil(o.CommentHTML) { + return nil, false + } + return o.CommentHTML, true +} + +// HasCommentHTML returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasCommentHTML() bool { + if o != nil && !IsNil(o.CommentHTML) { + return true + } + + return false +} + +// SetCommentHTML gets a reference to the given string and assigns it to the CommentHTML field. +func (o *UpdatableCommentParams) SetCommentHTML(v string) { + o.CommentHTML = &v +} + +// GetParentId returns the ParentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetParentId() string { + if o == nil || IsNil(o.ParentId.Get()) { + var ret string + return ret + } + return *o.ParentId.Get() +} + +// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetParentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ParentId.Get(), o.ParentId.IsSet() +} + +// HasParentId returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasParentId() bool { + if o != nil && o.ParentId.IsSet() { + return true + } + + return false +} + +// SetParentId gets a reference to the given NullableString and assigns it to the ParentId field. +func (o *UpdatableCommentParams) SetParentId(v string) { + o.ParentId.Set(&v) +} +// SetParentIdNil sets the value for ParentId to be an explicit nil +func (o *UpdatableCommentParams) SetParentIdNil() { + o.ParentId.Set(nil) +} + +// UnsetParentId ensures that no value is present for ParentId, not even an explicit nil +func (o *UpdatableCommentParams) UnsetParentId() { + o.ParentId.Unset() +} + +// GetDate returns the Date field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetDate() float64 { + if o == nil || IsNil(o.Date.Get()) { + var ret float64 + return ret + } + return *o.Date.Get() +} + +// GetDateOk returns a tuple with the Date field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetDateOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Date.Get(), o.Date.IsSet() +} + +// HasDate returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasDate() bool { + if o != nil && o.Date.IsSet() { + return true + } + + return false +} + +// SetDate gets a reference to the given NullableFloat64 and assigns it to the Date field. +func (o *UpdatableCommentParams) SetDate(v float64) { + o.Date.Set(&v) +} +// SetDateNil sets the value for Date to be an explicit nil +func (o *UpdatableCommentParams) SetDateNil() { + o.Date.Set(nil) +} + +// UnsetDate ensures that no value is present for Date, not even an explicit nil +func (o *UpdatableCommentParams) UnsetDate() { + o.Date.Unset() +} + +// GetLocalDateString returns the LocalDateString field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetLocalDateString() string { + if o == nil || IsNil(o.LocalDateString.Get()) { + var ret string + return ret + } + return *o.LocalDateString.Get() +} + +// GetLocalDateStringOk returns a tuple with the LocalDateString field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetLocalDateStringOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LocalDateString.Get(), o.LocalDateString.IsSet() +} + +// HasLocalDateString returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasLocalDateString() bool { + if o != nil && o.LocalDateString.IsSet() { + return true + } + + return false +} + +// SetLocalDateString gets a reference to the given NullableString and assigns it to the LocalDateString field. +func (o *UpdatableCommentParams) SetLocalDateString(v string) { + o.LocalDateString.Set(&v) +} +// SetLocalDateStringNil sets the value for LocalDateString to be an explicit nil +func (o *UpdatableCommentParams) SetLocalDateStringNil() { + o.LocalDateString.Set(nil) +} + +// UnsetLocalDateString ensures that no value is present for LocalDateString, not even an explicit nil +func (o *UpdatableCommentParams) UnsetLocalDateString() { + o.LocalDateString.Unset() +} + +// GetLocalDateHours returns the LocalDateHours field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetLocalDateHours() int32 { + if o == nil || IsNil(o.LocalDateHours.Get()) { + var ret int32 + return ret + } + return *o.LocalDateHours.Get() +} + +// GetLocalDateHoursOk returns a tuple with the LocalDateHours field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetLocalDateHoursOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.LocalDateHours.Get(), o.LocalDateHours.IsSet() +} + +// HasLocalDateHours returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasLocalDateHours() bool { + if o != nil && o.LocalDateHours.IsSet() { + return true + } + + return false +} + +// SetLocalDateHours gets a reference to the given NullableInt32 and assigns it to the LocalDateHours field. +func (o *UpdatableCommentParams) SetLocalDateHours(v int32) { + o.LocalDateHours.Set(&v) +} +// SetLocalDateHoursNil sets the value for LocalDateHours to be an explicit nil +func (o *UpdatableCommentParams) SetLocalDateHoursNil() { + o.LocalDateHours.Set(nil) +} + +// UnsetLocalDateHours ensures that no value is present for LocalDateHours, not even an explicit nil +func (o *UpdatableCommentParams) UnsetLocalDateHours() { + o.LocalDateHours.Unset() +} + +// GetVotes returns the Votes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetVotes() int32 { + if o == nil || IsNil(o.Votes.Get()) { + var ret int32 + return ret + } + return *o.Votes.Get() +} + +// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetVotesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Votes.Get(), o.Votes.IsSet() +} + +// HasVotes returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasVotes() bool { + if o != nil && o.Votes.IsSet() { + return true + } + + return false +} + +// SetVotes gets a reference to the given NullableInt32 and assigns it to the Votes field. +func (o *UpdatableCommentParams) SetVotes(v int32) { + o.Votes.Set(&v) +} +// SetVotesNil sets the value for Votes to be an explicit nil +func (o *UpdatableCommentParams) SetVotesNil() { + o.Votes.Set(nil) +} + +// UnsetVotes ensures that no value is present for Votes, not even an explicit nil +func (o *UpdatableCommentParams) UnsetVotes() { + o.Votes.Unset() +} + +// GetVotesUp returns the VotesUp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetVotesUp() int32 { + if o == nil || IsNil(o.VotesUp.Get()) { + var ret int32 + return ret + } + return *o.VotesUp.Get() +} + +// GetVotesUpOk returns a tuple with the VotesUp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetVotesUpOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.VotesUp.Get(), o.VotesUp.IsSet() +} + +// HasVotesUp returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasVotesUp() bool { + if o != nil && o.VotesUp.IsSet() { + return true + } + + return false +} + +// SetVotesUp gets a reference to the given NullableInt32 and assigns it to the VotesUp field. +func (o *UpdatableCommentParams) SetVotesUp(v int32) { + o.VotesUp.Set(&v) +} +// SetVotesUpNil sets the value for VotesUp to be an explicit nil +func (o *UpdatableCommentParams) SetVotesUpNil() { + o.VotesUp.Set(nil) +} + +// UnsetVotesUp ensures that no value is present for VotesUp, not even an explicit nil +func (o *UpdatableCommentParams) UnsetVotesUp() { + o.VotesUp.Unset() +} + +// GetVotesDown returns the VotesDown field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetVotesDown() int32 { + if o == nil || IsNil(o.VotesDown.Get()) { + var ret int32 + return ret + } + return *o.VotesDown.Get() +} + +// GetVotesDownOk returns a tuple with the VotesDown field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetVotesDownOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.VotesDown.Get(), o.VotesDown.IsSet() +} + +// HasVotesDown returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasVotesDown() bool { + if o != nil && o.VotesDown.IsSet() { + return true + } + + return false +} + +// SetVotesDown gets a reference to the given NullableInt32 and assigns it to the VotesDown field. +func (o *UpdatableCommentParams) SetVotesDown(v int32) { + o.VotesDown.Set(&v) +} +// SetVotesDownNil sets the value for VotesDown to be an explicit nil +func (o *UpdatableCommentParams) SetVotesDownNil() { + o.VotesDown.Set(nil) +} + +// UnsetVotesDown ensures that no value is present for VotesDown, not even an explicit nil +func (o *UpdatableCommentParams) UnsetVotesDown() { + o.VotesDown.Unset() +} + +// GetExpireAt returns the ExpireAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetExpireAt() time.Time { + if o == nil || IsNil(o.ExpireAt.Get()) { + var ret time.Time + return ret + } + return *o.ExpireAt.Get() +} + +// GetExpireAtOk returns a tuple with the ExpireAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetExpireAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpireAt.Get(), o.ExpireAt.IsSet() +} + +// HasExpireAt returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasExpireAt() bool { + if o != nil && o.ExpireAt.IsSet() { + return true + } + + return false +} + +// SetExpireAt gets a reference to the given NullableTime and assigns it to the ExpireAt field. +func (o *UpdatableCommentParams) SetExpireAt(v time.Time) { + o.ExpireAt.Set(&v) +} +// SetExpireAtNil sets the value for ExpireAt to be an explicit nil +func (o *UpdatableCommentParams) SetExpireAtNil() { + o.ExpireAt.Set(nil) +} + +// UnsetExpireAt ensures that no value is present for ExpireAt, not even an explicit nil +func (o *UpdatableCommentParams) UnsetExpireAt() { + o.ExpireAt.Unset() +} + +// GetVerified returns the Verified field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetVerified() bool { + if o == nil || IsNil(o.Verified) { + var ret bool + return ret + } + return *o.Verified +} + +// GetVerifiedOk returns a tuple with the Verified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetVerifiedOk() (*bool, bool) { + if o == nil || IsNil(o.Verified) { + return nil, false + } + return o.Verified, true +} + +// HasVerified returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasVerified() bool { + if o != nil && !IsNil(o.Verified) { + return true + } + + return false +} + +// SetVerified gets a reference to the given bool and assigns it to the Verified field. +func (o *UpdatableCommentParams) SetVerified(v bool) { + o.Verified = &v +} + +// GetVerifiedDate returns the VerifiedDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetVerifiedDate() time.Time { + if o == nil || IsNil(o.VerifiedDate.Get()) { + var ret time.Time + return ret + } + return *o.VerifiedDate.Get() +} + +// GetVerifiedDateOk returns a tuple with the VerifiedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetVerifiedDateOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.VerifiedDate.Get(), o.VerifiedDate.IsSet() +} + +// HasVerifiedDate returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasVerifiedDate() bool { + if o != nil && o.VerifiedDate.IsSet() { + return true + } + + return false +} + +// SetVerifiedDate gets a reference to the given NullableTime and assigns it to the VerifiedDate field. +func (o *UpdatableCommentParams) SetVerifiedDate(v time.Time) { + o.VerifiedDate.Set(&v) +} +// SetVerifiedDateNil sets the value for VerifiedDate to be an explicit nil +func (o *UpdatableCommentParams) SetVerifiedDateNil() { + o.VerifiedDate.Set(nil) +} + +// UnsetVerifiedDate ensures that no value is present for VerifiedDate, not even an explicit nil +func (o *UpdatableCommentParams) UnsetVerifiedDate() { + o.VerifiedDate.Unset() +} + +// GetNotificationSentForParent returns the NotificationSentForParent field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetNotificationSentForParent() bool { + if o == nil || IsNil(o.NotificationSentForParent) { + var ret bool + return ret + } + return *o.NotificationSentForParent +} + +// GetNotificationSentForParentOk returns a tuple with the NotificationSentForParent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetNotificationSentForParentOk() (*bool, bool) { + if o == nil || IsNil(o.NotificationSentForParent) { + return nil, false + } + return o.NotificationSentForParent, true +} + +// HasNotificationSentForParent returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasNotificationSentForParent() bool { + if o != nil && !IsNil(o.NotificationSentForParent) { + return true + } + + return false +} + +// SetNotificationSentForParent gets a reference to the given bool and assigns it to the NotificationSentForParent field. +func (o *UpdatableCommentParams) SetNotificationSentForParent(v bool) { + o.NotificationSentForParent = &v +} + +// GetNotificationSentForParentTenant returns the NotificationSentForParentTenant field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetNotificationSentForParentTenant() bool { + if o == nil || IsNil(o.NotificationSentForParentTenant) { + var ret bool + return ret + } + return *o.NotificationSentForParentTenant +} + +// GetNotificationSentForParentTenantOk returns a tuple with the NotificationSentForParentTenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetNotificationSentForParentTenantOk() (*bool, bool) { + if o == nil || IsNil(o.NotificationSentForParentTenant) { + return nil, false + } + return o.NotificationSentForParentTenant, true +} + +// HasNotificationSentForParentTenant returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasNotificationSentForParentTenant() bool { + if o != nil && !IsNil(o.NotificationSentForParentTenant) { + return true + } + + return false +} + +// SetNotificationSentForParentTenant gets a reference to the given bool and assigns it to the NotificationSentForParentTenant field. +func (o *UpdatableCommentParams) SetNotificationSentForParentTenant(v bool) { + o.NotificationSentForParentTenant = &v +} + +// GetReviewed returns the Reviewed field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetReviewed() bool { + if o == nil || IsNil(o.Reviewed) { + var ret bool + return ret + } + return *o.Reviewed +} + +// GetReviewedOk returns a tuple with the Reviewed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetReviewedOk() (*bool, bool) { + if o == nil || IsNil(o.Reviewed) { + return nil, false + } + return o.Reviewed, true +} + +// HasReviewed returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasReviewed() bool { + if o != nil && !IsNil(o.Reviewed) { + return true + } + + return false +} + +// SetReviewed gets a reference to the given bool and assigns it to the Reviewed field. +func (o *UpdatableCommentParams) SetReviewed(v bool) { + o.Reviewed = &v +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetExternalId() string { + if o == nil || IsNil(o.ExternalId) { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetExternalIdOk() (*string, bool) { + if o == nil || IsNil(o.ExternalId) { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasExternalId() bool { + if o != nil && !IsNil(o.ExternalId) { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *UpdatableCommentParams) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetExternalParentId returns the ExternalParentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetExternalParentId() string { + if o == nil || IsNil(o.ExternalParentId.Get()) { + var ret string + return ret + } + return *o.ExternalParentId.Get() +} + +// GetExternalParentIdOk returns a tuple with the ExternalParentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetExternalParentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExternalParentId.Get(), o.ExternalParentId.IsSet() +} + +// HasExternalParentId returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasExternalParentId() bool { + if o != nil && o.ExternalParentId.IsSet() { + return true + } + + return false +} + +// SetExternalParentId gets a reference to the given NullableString and assigns it to the ExternalParentId field. +func (o *UpdatableCommentParams) SetExternalParentId(v string) { + o.ExternalParentId.Set(&v) +} +// SetExternalParentIdNil sets the value for ExternalParentId to be an explicit nil +func (o *UpdatableCommentParams) SetExternalParentIdNil() { + o.ExternalParentId.Set(nil) +} + +// UnsetExternalParentId ensures that no value is present for ExternalParentId, not even an explicit nil +func (o *UpdatableCommentParams) UnsetExternalParentId() { + o.ExternalParentId.Unset() +} + +// GetAvatarSrc returns the AvatarSrc field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetAvatarSrc() string { + if o == nil || IsNil(o.AvatarSrc.Get()) { + var ret string + return ret + } + return *o.AvatarSrc.Get() +} + +// GetAvatarSrcOk returns a tuple with the AvatarSrc field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetAvatarSrcOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AvatarSrc.Get(), o.AvatarSrc.IsSet() +} + +// HasAvatarSrc returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasAvatarSrc() bool { + if o != nil && o.AvatarSrc.IsSet() { + return true + } + + return false +} + +// SetAvatarSrc gets a reference to the given NullableString and assigns it to the AvatarSrc field. +func (o *UpdatableCommentParams) SetAvatarSrc(v string) { + o.AvatarSrc.Set(&v) +} +// SetAvatarSrcNil sets the value for AvatarSrc to be an explicit nil +func (o *UpdatableCommentParams) SetAvatarSrcNil() { + o.AvatarSrc.Set(nil) +} + +// UnsetAvatarSrc ensures that no value is present for AvatarSrc, not even an explicit nil +func (o *UpdatableCommentParams) UnsetAvatarSrc() { + o.AvatarSrc.Unset() +} + +// GetIsSpam returns the IsSpam field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetIsSpam() bool { + if o == nil || IsNil(o.IsSpam) { + var ret bool + return ret + } + return *o.IsSpam +} + +// GetIsSpamOk returns a tuple with the IsSpam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetIsSpamOk() (*bool, bool) { + if o == nil || IsNil(o.IsSpam) { + return nil, false + } + return o.IsSpam, true +} + +// HasIsSpam returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasIsSpam() bool { + if o != nil && !IsNil(o.IsSpam) { + return true + } + + return false +} + +// SetIsSpam gets a reference to the given bool and assigns it to the IsSpam field. +func (o *UpdatableCommentParams) SetIsSpam(v bool) { + o.IsSpam = &v +} + +// GetApproved returns the Approved field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetApproved() bool { + if o == nil || IsNil(o.Approved) { + var ret bool + return ret + } + return *o.Approved +} + +// GetApprovedOk returns a tuple with the Approved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetApprovedOk() (*bool, bool) { + if o == nil || IsNil(o.Approved) { + return nil, false + } + return o.Approved, true +} + +// HasApproved returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasApproved() bool { + if o != nil && !IsNil(o.Approved) { + return true + } + + return false +} + +// SetApproved gets a reference to the given bool and assigns it to the Approved field. +func (o *UpdatableCommentParams) SetApproved(v bool) { + o.Approved = &v +} + +// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetIsDeleted() bool { + if o == nil || IsNil(o.IsDeleted) { + var ret bool + return ret + } + return *o.IsDeleted +} + +// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetIsDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeleted) { + return nil, false + } + return o.IsDeleted, true +} + +// HasIsDeleted returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasIsDeleted() bool { + if o != nil && !IsNil(o.IsDeleted) { + return true + } + + return false +} + +// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field. +func (o *UpdatableCommentParams) SetIsDeleted(v bool) { + o.IsDeleted = &v +} + +// GetIsDeletedUser returns the IsDeletedUser field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetIsDeletedUser() bool { + if o == nil || IsNil(o.IsDeletedUser) { + var ret bool + return ret + } + return *o.IsDeletedUser +} + +// GetIsDeletedUserOk returns a tuple with the IsDeletedUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetIsDeletedUserOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeletedUser) { + return nil, false + } + return o.IsDeletedUser, true +} + +// HasIsDeletedUser returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasIsDeletedUser() bool { + if o != nil && !IsNil(o.IsDeletedUser) { + return true + } + + return false +} + +// SetIsDeletedUser gets a reference to the given bool and assigns it to the IsDeletedUser field. +func (o *UpdatableCommentParams) SetIsDeletedUser(v bool) { + o.IsDeletedUser = &v +} + +// GetIsByAdmin returns the IsByAdmin field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetIsByAdmin() bool { + if o == nil || IsNil(o.IsByAdmin) { + var ret bool + return ret + } + return *o.IsByAdmin +} + +// GetIsByAdminOk returns a tuple with the IsByAdmin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetIsByAdminOk() (*bool, bool) { + if o == nil || IsNil(o.IsByAdmin) { + return nil, false + } + return o.IsByAdmin, true +} + +// HasIsByAdmin returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasIsByAdmin() bool { + if o != nil && !IsNil(o.IsByAdmin) { + return true + } + + return false +} + +// SetIsByAdmin gets a reference to the given bool and assigns it to the IsByAdmin field. +func (o *UpdatableCommentParams) SetIsByAdmin(v bool) { + o.IsByAdmin = &v +} + +// GetIsByModerator returns the IsByModerator field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetIsByModerator() bool { + if o == nil || IsNil(o.IsByModerator) { + var ret bool + return ret + } + return *o.IsByModerator +} + +// GetIsByModeratorOk returns a tuple with the IsByModerator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetIsByModeratorOk() (*bool, bool) { + if o == nil || IsNil(o.IsByModerator) { + return nil, false + } + return o.IsByModerator, true +} + +// HasIsByModerator returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasIsByModerator() bool { + if o != nil && !IsNil(o.IsByModerator) { + return true + } + + return false +} + +// SetIsByModerator gets a reference to the given bool and assigns it to the IsByModerator field. +func (o *UpdatableCommentParams) SetIsByModerator(v bool) { + o.IsByModerator = &v +} + +// GetIsPinned returns the IsPinned field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetIsPinned() bool { + if o == nil || IsNil(o.IsPinned.Get()) { + var ret bool + return ret + } + return *o.IsPinned.Get() +} + +// GetIsPinnedOk returns a tuple with the IsPinned field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetIsPinnedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsPinned.Get(), o.IsPinned.IsSet() +} + +// HasIsPinned returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasIsPinned() bool { + if o != nil && o.IsPinned.IsSet() { + return true + } + + return false +} + +// SetIsPinned gets a reference to the given NullableBool and assigns it to the IsPinned field. +func (o *UpdatableCommentParams) SetIsPinned(v bool) { + o.IsPinned.Set(&v) +} +// SetIsPinnedNil sets the value for IsPinned to be an explicit nil +func (o *UpdatableCommentParams) SetIsPinnedNil() { + o.IsPinned.Set(nil) +} + +// UnsetIsPinned ensures that no value is present for IsPinned, not even an explicit nil +func (o *UpdatableCommentParams) UnsetIsPinned() { + o.IsPinned.Unset() +} + +// GetIsLocked returns the IsLocked field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetIsLocked() bool { + if o == nil || IsNil(o.IsLocked.Get()) { + var ret bool + return ret + } + return *o.IsLocked.Get() +} + +// GetIsLockedOk returns a tuple with the IsLocked field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetIsLockedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsLocked.Get(), o.IsLocked.IsSet() +} + +// HasIsLocked returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasIsLocked() bool { + if o != nil && o.IsLocked.IsSet() { + return true + } + + return false +} + +// SetIsLocked gets a reference to the given NullableBool and assigns it to the IsLocked field. +func (o *UpdatableCommentParams) SetIsLocked(v bool) { + o.IsLocked.Set(&v) +} +// SetIsLockedNil sets the value for IsLocked to be an explicit nil +func (o *UpdatableCommentParams) SetIsLockedNil() { + o.IsLocked.Set(nil) +} + +// UnsetIsLocked ensures that no value is present for IsLocked, not even an explicit nil +func (o *UpdatableCommentParams) UnsetIsLocked() { + o.IsLocked.Unset() +} + +// GetFlagCount returns the FlagCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetFlagCount() int32 { + if o == nil || IsNil(o.FlagCount.Get()) { + var ret int32 + return ret + } + return *o.FlagCount.Get() +} + +// GetFlagCountOk returns a tuple with the FlagCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetFlagCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.FlagCount.Get(), o.FlagCount.IsSet() +} + +// HasFlagCount returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasFlagCount() bool { + if o != nil && o.FlagCount.IsSet() { + return true + } + + return false +} + +// SetFlagCount gets a reference to the given NullableInt32 and assigns it to the FlagCount field. +func (o *UpdatableCommentParams) SetFlagCount(v int32) { + o.FlagCount.Set(&v) +} +// SetFlagCountNil sets the value for FlagCount to be an explicit nil +func (o *UpdatableCommentParams) SetFlagCountNil() { + o.FlagCount.Set(nil) +} + +// UnsetFlagCount ensures that no value is present for FlagCount, not even an explicit nil +func (o *UpdatableCommentParams) UnsetFlagCount() { + o.FlagCount.Unset() +} + +// GetDisplayLabel returns the DisplayLabel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetDisplayLabel() string { + if o == nil || IsNil(o.DisplayLabel.Get()) { + var ret string + return ret + } + return *o.DisplayLabel.Get() +} + +// GetDisplayLabelOk returns a tuple with the DisplayLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetDisplayLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.DisplayLabel.Get(), o.DisplayLabel.IsSet() +} + +// HasDisplayLabel returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasDisplayLabel() bool { + if o != nil && o.DisplayLabel.IsSet() { + return true + } + + return false +} + +// SetDisplayLabel gets a reference to the given NullableString and assigns it to the DisplayLabel field. +func (o *UpdatableCommentParams) SetDisplayLabel(v string) { + o.DisplayLabel.Set(&v) +} +// SetDisplayLabelNil sets the value for DisplayLabel to be an explicit nil +func (o *UpdatableCommentParams) SetDisplayLabelNil() { + o.DisplayLabel.Set(nil) +} + +// UnsetDisplayLabel ensures that no value is present for DisplayLabel, not even an explicit nil +func (o *UpdatableCommentParams) UnsetDisplayLabel() { + o.DisplayLabel.Unset() +} + +// GetMeta returns the Meta field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetMeta() FCommentMeta { + if o == nil || IsNil(o.Meta.Get()) { + var ret FCommentMeta + return ret + } + return *o.Meta.Get() +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetMetaOk() (*FCommentMeta, bool) { + if o == nil { + return nil, false + } + return o.Meta.Get(), o.Meta.IsSet() +} + +// HasMeta returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasMeta() bool { + if o != nil && o.Meta.IsSet() { + return true + } + + return false +} + +// SetMeta gets a reference to the given NullableFCommentMeta and assigns it to the Meta field. +func (o *UpdatableCommentParams) SetMeta(v FCommentMeta) { + o.Meta.Set(&v) +} +// SetMetaNil sets the value for Meta to be an explicit nil +func (o *UpdatableCommentParams) SetMetaNil() { + o.Meta.Set(nil) +} + +// UnsetMeta ensures that no value is present for Meta, not even an explicit nil +func (o *UpdatableCommentParams) UnsetMeta() { + o.Meta.Unset() +} + +// GetModerationGroupIds returns the ModerationGroupIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdatableCommentParams) GetModerationGroupIds() []string { + if o == nil { + var ret []string + return ret + } + return o.ModerationGroupIds +} + +// GetModerationGroupIdsOk returns a tuple with the ModerationGroupIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdatableCommentParams) GetModerationGroupIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ModerationGroupIds) { + return nil, false + } + return o.ModerationGroupIds, true +} + +// HasModerationGroupIds returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasModerationGroupIds() bool { + if o != nil && !IsNil(o.ModerationGroupIds) { + return true + } + + return false +} + +// SetModerationGroupIds gets a reference to the given []string and assigns it to the ModerationGroupIds field. +func (o *UpdatableCommentParams) SetModerationGroupIds(v []string) { + o.ModerationGroupIds = v +} + +// GetFeedbackIds returns the FeedbackIds field value if set, zero value otherwise. +func (o *UpdatableCommentParams) GetFeedbackIds() []string { + if o == nil || IsNil(o.FeedbackIds) { + var ret []string + return ret + } + return o.FeedbackIds +} + +// GetFeedbackIdsOk returns a tuple with the FeedbackIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatableCommentParams) GetFeedbackIdsOk() ([]string, bool) { + if o == nil || IsNil(o.FeedbackIds) { + return nil, false + } + return o.FeedbackIds, true +} + +// HasFeedbackIds returns a boolean if a field has been set. +func (o *UpdatableCommentParams) HasFeedbackIds() bool { + if o != nil && !IsNil(o.FeedbackIds) { + return true + } + + return false +} + +// SetFeedbackIds gets a reference to the given []string and assigns it to the FeedbackIds field. +func (o *UpdatableCommentParams) SetFeedbackIds(v []string) { + o.FeedbackIds = v +} + +func (o UpdatableCommentParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdatableCommentParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.UrlId) { + toSerialize["urlId"] = o.UrlId + } + if !IsNil(o.UrlIdRaw) { + toSerialize["urlIdRaw"] = o.UrlIdRaw + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + if o.PageTitle.IsSet() { + toSerialize["pageTitle"] = o.PageTitle.Get() + } + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + if o.CommenterEmail.IsSet() { + toSerialize["commenterEmail"] = o.CommenterEmail.Get() + } + if !IsNil(o.CommenterName) { + toSerialize["commenterName"] = o.CommenterName + } + if o.CommenterLink.IsSet() { + toSerialize["commenterLink"] = o.CommenterLink.Get() + } + if !IsNil(o.Comment) { + toSerialize["comment"] = o.Comment + } + if !IsNil(o.CommentHTML) { + toSerialize["commentHTML"] = o.CommentHTML + } + if o.ParentId.IsSet() { + toSerialize["parentId"] = o.ParentId.Get() + } + if o.Date.IsSet() { + toSerialize["date"] = o.Date.Get() + } + if o.LocalDateString.IsSet() { + toSerialize["localDateString"] = o.LocalDateString.Get() + } + if o.LocalDateHours.IsSet() { + toSerialize["localDateHours"] = o.LocalDateHours.Get() + } + if o.Votes.IsSet() { + toSerialize["votes"] = o.Votes.Get() + } + if o.VotesUp.IsSet() { + toSerialize["votesUp"] = o.VotesUp.Get() + } + if o.VotesDown.IsSet() { + toSerialize["votesDown"] = o.VotesDown.Get() + } + if o.ExpireAt.IsSet() { + toSerialize["expireAt"] = o.ExpireAt.Get() + } + if !IsNil(o.Verified) { + toSerialize["verified"] = o.Verified + } + if o.VerifiedDate.IsSet() { + toSerialize["verifiedDate"] = o.VerifiedDate.Get() + } + if !IsNil(o.NotificationSentForParent) { + toSerialize["notificationSentForParent"] = o.NotificationSentForParent + } + if !IsNil(o.NotificationSentForParentTenant) { + toSerialize["notificationSentForParentTenant"] = o.NotificationSentForParentTenant + } + if !IsNil(o.Reviewed) { + toSerialize["reviewed"] = o.Reviewed + } + if !IsNil(o.ExternalId) { + toSerialize["externalId"] = o.ExternalId + } + if o.ExternalParentId.IsSet() { + toSerialize["externalParentId"] = o.ExternalParentId.Get() + } + if o.AvatarSrc.IsSet() { + toSerialize["avatarSrc"] = o.AvatarSrc.Get() + } + if !IsNil(o.IsSpam) { + toSerialize["isSpam"] = o.IsSpam + } + if !IsNil(o.Approved) { + toSerialize["approved"] = o.Approved + } + if !IsNil(o.IsDeleted) { + toSerialize["isDeleted"] = o.IsDeleted + } + if !IsNil(o.IsDeletedUser) { + toSerialize["isDeletedUser"] = o.IsDeletedUser + } + if !IsNil(o.IsByAdmin) { + toSerialize["isByAdmin"] = o.IsByAdmin + } + if !IsNil(o.IsByModerator) { + toSerialize["isByModerator"] = o.IsByModerator + } + if o.IsPinned.IsSet() { + toSerialize["isPinned"] = o.IsPinned.Get() + } + if o.IsLocked.IsSet() { + toSerialize["isLocked"] = o.IsLocked.Get() + } + if o.FlagCount.IsSet() { + toSerialize["flagCount"] = o.FlagCount.Get() + } + if o.DisplayLabel.IsSet() { + toSerialize["displayLabel"] = o.DisplayLabel.Get() + } + if o.Meta.IsSet() { + toSerialize["meta"] = o.Meta.Get() + } + if o.ModerationGroupIds != nil { + toSerialize["moderationGroupIds"] = o.ModerationGroupIds + } + if !IsNil(o.FeedbackIds) { + toSerialize["feedbackIds"] = o.FeedbackIds + } + return toSerialize, nil +} + +type NullableUpdatableCommentParams struct { + value *UpdatableCommentParams + isSet bool +} + +func (v NullableUpdatableCommentParams) Get() *UpdatableCommentParams { + return v.value +} + +func (v *NullableUpdatableCommentParams) Set(val *UpdatableCommentParams) { + v.value = val + v.isSet = true +} + +func (v NullableUpdatableCommentParams) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdatableCommentParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdatableCommentParams(val *UpdatableCommentParams) *NullableUpdatableCommentParams { + return &NullableUpdatableCommentParams{value: val, isSet: true} +} + +func (v NullableUpdatableCommentParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdatableCommentParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/client/model_user_notification_write_response.go b/client/model_user_notification_write_response.go index 48cf31f..c531f0b 100644 --- a/client/model_user_notification_write_response.go +++ b/client/model_user_notification_write_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &UserNotificationWriteResponse{} // UserNotificationWriteResponse struct for UserNotificationWriteResponse type UserNotificationWriteResponse struct { - Status ImportedAPIStatusSUCCESS `json:"status"` + Status APIStatus `json:"status"` MatchedCount int64 `json:"matchedCount"` ModifiedCount int64 `json:"modifiedCount"` } @@ -32,7 +32,7 @@ type _UserNotificationWriteResponse UserNotificationWriteResponse // 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 NewUserNotificationWriteResponse(status ImportedAPIStatusSUCCESS, matchedCount int64, modifiedCount int64) *UserNotificationWriteResponse { +func NewUserNotificationWriteResponse(status APIStatus, matchedCount int64, modifiedCount int64) *UserNotificationWriteResponse { this := UserNotificationWriteResponse{} this.Status = status this.MatchedCount = matchedCount @@ -49,9 +49,9 @@ func NewUserNotificationWriteResponseWithDefaults() *UserNotificationWriteRespon } // GetStatus returns the Status field value -func (o *UserNotificationWriteResponse) GetStatus() ImportedAPIStatusSUCCESS { +func (o *UserNotificationWriteResponse) GetStatus() APIStatus { if o == nil { - var ret ImportedAPIStatusSUCCESS + var ret APIStatus return ret } @@ -60,7 +60,7 @@ func (o *UserNotificationWriteResponse) GetStatus() ImportedAPIStatusSUCCESS { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *UserNotificationWriteResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS, bool) { +func (o *UserNotificationWriteResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -68,7 +68,7 @@ func (o *UserNotificationWriteResponse) GetStatusOk() (*ImportedAPIStatusSUCCESS } // SetStatus sets field value -func (o *UserNotificationWriteResponse) SetStatus(v ImportedAPIStatusSUCCESS) { +func (o *UserNotificationWriteResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_vote_delete_response.go b/client/model_vote_delete_response.go index c3011ba..4173ede 100644 --- a/client/model_vote_delete_response.go +++ b/client/model_vote_delete_response.go @@ -21,7 +21,7 @@ var _ MappedNullable = &VoteDeleteResponse{} // VoteDeleteResponse struct for VoteDeleteResponse type VoteDeleteResponse struct { - Status VoteDeleteResponseStatus `json:"status"` + Status APIStatus `json:"status"` WasPendingVote *bool `json:"wasPendingVote,omitempty"` } @@ -31,7 +31,7 @@ type _VoteDeleteResponse VoteDeleteResponse // 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 NewVoteDeleteResponse(status VoteDeleteResponseStatus) *VoteDeleteResponse { +func NewVoteDeleteResponse(status APIStatus) *VoteDeleteResponse { this := VoteDeleteResponse{} this.Status = status return &this @@ -46,9 +46,9 @@ func NewVoteDeleteResponseWithDefaults() *VoteDeleteResponse { } // GetStatus returns the Status field value -func (o *VoteDeleteResponse) GetStatus() VoteDeleteResponseStatus { +func (o *VoteDeleteResponse) GetStatus() APIStatus { if o == nil { - var ret VoteDeleteResponseStatus + var ret APIStatus return ret } @@ -57,7 +57,7 @@ func (o *VoteDeleteResponse) GetStatus() VoteDeleteResponseStatus { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *VoteDeleteResponse) GetStatusOk() (*VoteDeleteResponseStatus, bool) { +func (o *VoteDeleteResponse) GetStatusOk() (*APIStatus, bool) { if o == nil { return nil, false } @@ -65,7 +65,7 @@ func (o *VoteDeleteResponse) GetStatusOk() (*VoteDeleteResponseStatus, bool) { } // SetStatus sets field value -func (o *VoteDeleteResponse) SetStatus(v VoteDeleteResponseStatus) { +func (o *VoteDeleteResponse) SetStatus(v APIStatus) { o.Status = v } diff --git a/client/model_vote_delete_response_status.go b/client/model_vote_delete_response_status.go deleted file mode 100644 index e9868e7..0000000 --- a/client/model_vote_delete_response_status.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -fastcomments - -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 0.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - - -// VoteDeleteResponseStatus struct for VoteDeleteResponseStatus -type VoteDeleteResponseStatus struct { - ImportedAPIStatusFAILED *ImportedAPIStatusFAILED - ImportedAPIStatusSUCCESS *ImportedAPIStatusSUCCESS -} - -// Unmarshal JSON data into any of the pointers in the struct -func (dst *VoteDeleteResponseStatus) UnmarshalJSON(data []byte) error { - var err error - // try to unmarshal JSON data into ImportedAPIStatusFAILED - err = json.Unmarshal(data, &dst.ImportedAPIStatusFAILED); - if err == nil { - jsonImportedAPIStatusFAILED, _ := json.Marshal(dst.ImportedAPIStatusFAILED) - if string(jsonImportedAPIStatusFAILED) == "{}" { // empty struct - dst.ImportedAPIStatusFAILED = nil - } else { - return nil // data stored in dst.ImportedAPIStatusFAILED, return on the first match - } - } else { - dst.ImportedAPIStatusFAILED = nil - } - - // try to unmarshal JSON data into ImportedAPIStatusSUCCESS - err = json.Unmarshal(data, &dst.ImportedAPIStatusSUCCESS); - if err == nil { - jsonImportedAPIStatusSUCCESS, _ := json.Marshal(dst.ImportedAPIStatusSUCCESS) - if string(jsonImportedAPIStatusSUCCESS) == "{}" { // empty struct - dst.ImportedAPIStatusSUCCESS = nil - } else { - return nil // data stored in dst.ImportedAPIStatusSUCCESS, return on the first match - } - } else { - dst.ImportedAPIStatusSUCCESS = nil - } - - return fmt.Errorf("data failed to match schemas in anyOf(VoteDeleteResponseStatus)") -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src VoteDeleteResponseStatus) MarshalJSON() ([]byte, error) { - if src.ImportedAPIStatusFAILED != nil { - return json.Marshal(&src.ImportedAPIStatusFAILED) - } - - if src.ImportedAPIStatusSUCCESS != nil { - return json.Marshal(&src.ImportedAPIStatusSUCCESS) - } - - return nil, nil // no data in anyOf schemas -} - - -type NullableVoteDeleteResponseStatus struct { - value *VoteDeleteResponseStatus - isSet bool -} - -func (v NullableVoteDeleteResponseStatus) Get() *VoteDeleteResponseStatus { - return v.value -} - -func (v *NullableVoteDeleteResponseStatus) Set(val *VoteDeleteResponseStatus) { - v.value = val - v.isSet = true -} - -func (v NullableVoteDeleteResponseStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableVoteDeleteResponseStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableVoteDeleteResponseStatus(val *VoteDeleteResponseStatus) *NullableVoteDeleteResponseStatus { - return &NullableVoteDeleteResponseStatus{value: val, isSet: true} -} - -func (v NullableVoteDeleteResponseStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableVoteDeleteResponseStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/client/model_vote_response_status.go b/client/model_vote_response_status.go index 848d56a..f6abfbb 100644 --- a/client/model_vote_response_status.go +++ b/client/model_vote_response_status.go @@ -18,38 +18,24 @@ import ( // VoteResponseStatus struct for VoteResponseStatus type VoteResponseStatus struct { - ImportedAPIStatusFAILED *ImportedAPIStatusFAILED - ImportedAPIStatusSUCCESS *ImportedAPIStatusSUCCESS + APIStatus *APIStatus String *string } // Unmarshal JSON data into any of the pointers in the struct func (dst *VoteResponseStatus) UnmarshalJSON(data []byte) error { var err error - // try to unmarshal JSON data into ImportedAPIStatusFAILED - err = json.Unmarshal(data, &dst.ImportedAPIStatusFAILED); + // try to unmarshal JSON data into APIStatus + err = json.Unmarshal(data, &dst.APIStatus); if err == nil { - jsonImportedAPIStatusFAILED, _ := json.Marshal(dst.ImportedAPIStatusFAILED) - if string(jsonImportedAPIStatusFAILED) == "{}" { // empty struct - dst.ImportedAPIStatusFAILED = nil + jsonAPIStatus, _ := json.Marshal(dst.APIStatus) + if string(jsonAPIStatus) == "{}" { // empty struct + dst.APIStatus = nil } else { - return nil // data stored in dst.ImportedAPIStatusFAILED, return on the first match + return nil // data stored in dst.APIStatus, return on the first match } } else { - dst.ImportedAPIStatusFAILED = nil - } - - // try to unmarshal JSON data into ImportedAPIStatusSUCCESS - err = json.Unmarshal(data, &dst.ImportedAPIStatusSUCCESS); - if err == nil { - jsonImportedAPIStatusSUCCESS, _ := json.Marshal(dst.ImportedAPIStatusSUCCESS) - if string(jsonImportedAPIStatusSUCCESS) == "{}" { // empty struct - dst.ImportedAPIStatusSUCCESS = nil - } else { - return nil // data stored in dst.ImportedAPIStatusSUCCESS, return on the first match - } - } else { - dst.ImportedAPIStatusSUCCESS = nil + dst.APIStatus = nil } // try to unmarshal JSON data into String @@ -70,12 +56,8 @@ func (dst *VoteResponseStatus) UnmarshalJSON(data []byte) error { // Marshal data from the first non-nil pointers in the struct to JSON func (src VoteResponseStatus) MarshalJSON() ([]byte, error) { - if src.ImportedAPIStatusFAILED != nil { - return json.Marshal(&src.ImportedAPIStatusFAILED) - } - - if src.ImportedAPIStatusSUCCESS != nil { - return json.Marshal(&src.ImportedAPIStatusSUCCESS) + if src.APIStatus != nil { + return json.Marshal(&src.APIStatus) } if src.String != nil { diff --git a/config.json b/config.json index 40803e3..665c2b3 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "packageName": "client", - "packageVersion": "0.0.1", + "packageVersion": "1.0.0", "isGoSubmodule": true, "enumClassPrefix": true } diff --git a/openapi.json b/openapi.json index d6d7d6a..e789bcf 100644 --- a/openapi.json +++ b/openapi.json @@ -45,16 +45,10 @@ "type": "object", "additionalProperties": false }, - "ImportedAPIStatus.SUCCESS": { - "enum": [ - "success" - ], - "type": "string" - }, "SearchUsersResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "users": { "items": { @@ -69,12 +63,6 @@ ], "type": "object" }, - "ImportedAPIStatus.FAILED": { - "enum": [ - "failed" - ], - "type": "string" - }, "CommentHTMLRenderingMode": { "enum": [ 0, @@ -399,6 +387,9 @@ "readonly": { "type": "boolean" }, + "noNewRootComments": { + "type": "boolean" + }, "requireSSO": { "type": "boolean" }, @@ -478,7 +469,7 @@ "APIError": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.FAILED" + "$ref": "#/components/schemas/APIStatus" }, "reason": { "type": "string" @@ -523,7 +514,7 @@ "GetUserPresenceStatusesResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "userIdsOnline": { "$ref": "#/components/schemas/Record_string.boolean_" @@ -674,7 +665,7 @@ "type": "array" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -688,7 +679,7 @@ "ResetUserNotificationsResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "code": { "type": "string", @@ -707,7 +698,7 @@ "GetUserNotificationCountResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "count": { "type": "integer", @@ -745,7 +736,7 @@ "HeaderState": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "NotificationType": { "$ref": "#/components/schemas/EnumAsObject_typeofNotificationType_" @@ -776,7 +767,7 @@ "UserNotificationWriteResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "matchedCount": { "type": "integer", @@ -798,7 +789,7 @@ "IgnoredResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "note": { "type": "string", @@ -874,7 +865,7 @@ "APIEmptyResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -1127,7 +1118,7 @@ "GetPublicFeedPostsResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "feedPosts": { "items": { @@ -1416,7 +1407,7 @@ "type": "array" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -1608,72 +1599,69 @@ "type": "object", "additionalProperties": false }, - "Pick_Omit_FComment.date_.PublicCommentPubSubFieldsKeys_": { + "UserId": { + "type": "string" + }, + "FDomain": { + "type": "string" + }, + "PubSubCommentBase": { "properties": { - "date": {}, "_id": { "type": "string" }, "tenantId": { "type": "string" }, - "urlId": { - "type": "string" - }, - "url": { - "type": "string" - }, - "pageTitle": { - "type": "string" - }, "userId": { - "type": "string" + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, - "anonUserId": { + "urlId": { "type": "string" }, "commenterName": { "type": "string" }, "commenterLink": { - "type": "string" + "type": "string", + "nullable": true }, - "comment": { + "commentHTML": { "type": "string" }, - "commentHTML": { + "comment": { "type": "string" }, "parentId": { - "type": "string" + "type": "string", + "nullable": true }, "votes": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesUp": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesDown": { "type": "integer", - "format": "int32" - }, - "expireAt": { - "type": "string", - "format": "date-time" + "format": "int32", + "nullable": true }, "verified": { "type": "boolean" }, - "reviewed": { - "type": "boolean" - }, "avatarSrc": { - "type": "string" - }, - "isSpam": { - "type": "boolean" + "type": "string", + "nullable": true }, "hasImages": { "type": "boolean" @@ -1681,24 +1669,6 @@ "hasLinks": { "type": "boolean" }, - "hasCode": { - "type": "boolean" - }, - "approved": { - "type": "boolean" - }, - "locale": { - "type": "string" - }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, - "isBannedUser": { - "type": "boolean" - }, "isByAdmin": { "type": "boolean" }, @@ -1706,30 +1676,46 @@ "type": "boolean" }, "isPinned": { - "type": "boolean" + "type": "boolean", + "nullable": true }, "isLocked": { - "type": "boolean" + "type": "boolean", + "nullable": true }, - "flagCount": { - "type": "integer", - "format": "int32" + "displayLabel": { + "type": "string", + "nullable": true }, "rating": { "type": "number", - "format": "double" - }, - "displayLabel": { - "type": "string" + "format": "double", + "nullable": true }, "badges": { "items": { "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "array" + "type": "array", + "nullable": true }, - "domain": { - "type": "string" + "viewCount": { + "type": "integer", + "format": "int64", + "nullable": true + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isSpam": { + "type": "boolean" + }, + "anonUserId": { + "type": "string", + "nullable": true }, "feedbackIds": { "items": { @@ -1737,37 +1723,74 @@ }, "type": "array" }, + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], + "nullable": true + }, + "url": { + "type": "string" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "reviewed": { + "type": "boolean" + }, + "hasCode": { + "type": "boolean" + }, + "approved": { + "type": "boolean" + }, + "locale": { + "type": "string", + "nullable": true + }, + "isBannedUser": { + "type": "boolean" + }, "groupIds": { "items": { "type": "string" }, - "type": "array" - }, - "viewCount": { - "type": "integer", - "format": "int64" + "type": "array", + "nullable": true } }, "required": [ - "date", "_id", "tenantId", "urlId", - "url", "commenterName", - "comment", "commentHTML", + "comment", "verified", + "url", "approved", "locale" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" + "additionalProperties": false }, "PubSubComment": { "allOf": [ { - "$ref": "#/components/schemas/Pick_Omit_FComment.date_.PublicCommentPubSubFieldsKeys_" + "$ref": "#/components/schemas/PubSubCommentBase" }, { "properties": { @@ -1888,7 +1911,7 @@ "PublicAPIGetCommentTextResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "commentText": { "type": "string" @@ -1904,29 +1927,29 @@ ], "type": "object" }, - "Pick_FComment.approved-or-commentHTML_": { + "SetCommentTextResult": { "properties": { - "commentHTML": { - "type": "string" - }, "approved": { "type": "boolean" + }, + "commentHTML": { + "type": "string" } }, "required": [ - "commentHTML", - "approved" + "approved", + "commentHTML" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" + "additionalProperties": false }, "PublicAPISetCommentTextResponse": { "properties": { "comment": { - "$ref": "#/components/schemas/Pick_FComment.approved-or-commentHTML_" + "$ref": "#/components/schemas/SetCommentTextResult" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -2058,67 +2081,67 @@ "type": "object" }, { - "$ref": "#/components/schemas/Pick_FComment.PublicCommentFieldsKeys_" + "$ref": "#/components/schemas/PublicCommentBase" } ] }, - "Pick_FComment.PublicCommentFieldsKeys_": { + "PublicCommentBase": { "properties": { - "date": { - "type": "string", - "format": "date-time" - }, "_id": { "type": "string" }, "userId": { - "type": "string" - }, - "anonUserId": { - "type": "string" + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, "commenterName": { "type": "string" }, "commenterLink": { - "type": "string" + "type": "string", + "nullable": true }, "commentHTML": { "type": "string" }, "parentId": { - "type": "string" + "type": "string", + "nullable": true + }, + "date": { + "type": "string", + "format": "date-time", + "nullable": true }, "votes": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesUp": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesDown": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "verified": { "type": "boolean" }, "avatarSrc": { - "type": "string" - }, - "isSpam": { - "type": "boolean" + "type": "string", + "nullable": true }, "hasImages": { "type": "boolean" }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, "isByAdmin": { "type": "boolean" }, @@ -2126,23 +2149,46 @@ "type": "boolean" }, "isPinned": { - "type": "boolean" + "type": "boolean", + "nullable": true }, "isLocked": { - "type": "boolean" - }, - "rating": { - "type": "number", - "format": "double" + "type": "boolean", + "nullable": true }, "displayLabel": { - "type": "string" + "type": "string", + "nullable": true + }, + "rating": { + "type": "number", + "format": "double", + "nullable": true }, "badges": { "items": { "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "array" + "type": "array", + "nullable": true + }, + "viewCount": { + "type": "integer", + "format": "int64", + "nullable": true + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isSpam": { + "type": "boolean" + }, + "anonUserId": { + "type": "string", + "nullable": true }, "feedbackIds": { "items": { @@ -2150,26 +2196,25 @@ }, "type": "array" }, - "viewCount": { - "type": "integer", - "format": "int64" - }, "requiresVerification": { "type": "boolean" }, "editKey": { "type": "string" + }, + "approved": { + "type": "boolean" } }, "required": [ - "date", "_id", "commenterName", "commentHTML", + "date", "verified" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" + "additionalProperties": false }, "Record_string.any_": { "properties": {}, @@ -2305,7 +2350,7 @@ "SaveCommentResponseOptimized": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "comment": { "$ref": "#/components/schemas/PublicComment" @@ -2468,38 +2513,39 @@ "type": "object", "additionalProperties": false }, - "Pick_FComment.isDeleted-or-commentHTML-or-commenterName-or-userId_": { + "DeletedCommentResultComment": { "properties": { - "userId": { - "type": "string" + "isDeleted": { + "type": "boolean" }, - "commenterName": { + "commentHTML": { "type": "string" }, - "commentHTML": { + "commenterName": { "type": "string" }, - "isDeleted": { - "type": "boolean" + "userId": { + "type": "string", + "nullable": true } }, "required": [ - "commenterName", - "commentHTML" + "commentHTML", + "commenterName" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" + "additionalProperties": false }, "PublicAPIDeleteCommentResponse": { "properties": { "comment": { - "$ref": "#/components/schemas/Pick_FComment.isDeleted-or-commentHTML-or-commenterName-or-userId_" + "$ref": "#/components/schemas/DeletedCommentResultComment" }, "hardRemoved": { "type": "boolean" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -2514,7 +2560,7 @@ "$ref": "#/components/schemas/Record_string.boolean_" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -2538,10 +2584,7 @@ "status": { "anyOf": [ { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" - }, - { - "$ref": "#/components/schemas/ImportedAPIStatus.FAILED" + "$ref": "#/components/schemas/APIStatus" }, { "type": "string", @@ -2604,14 +2647,7 @@ "VoteDeleteResponse": { "properties": { "status": { - "anyOf": [ - { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" - }, - { - "$ref": "#/components/schemas/ImportedAPIStatus.FAILED" - } - ] + "$ref": "#/components/schemas/APIStatus" }, "wasPendingVote": { "type": "boolean" @@ -2626,7 +2662,7 @@ "GetCommentVoteUserNamesSuccessResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "voteUserNames": { "items": { @@ -2652,7 +2688,7 @@ "$ref": "#/components/schemas/CommentPositions" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -2664,7 +2700,7 @@ "BlockSuccess": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "commentStatuses": { "$ref": "#/components/schemas/Record_string.boolean_" @@ -2697,7 +2733,7 @@ "UnblockSuccess": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "commentStatuses": { "$ref": "#/components/schemas/Record_string.boolean_" @@ -3330,6 +3366,10 @@ "code": { "type": "string" }, + "commentsUpdated": { + "type": "integer", + "format": "int64" + }, "page": { "$ref": "#/components/schemas/APIPage" }, @@ -3509,6 +3549,12 @@ }, "userBadge": { "$ref": "#/components/schemas/UserBadge" + }, + "notes": { + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ @@ -3802,15 +3848,266 @@ "type": "object", "additionalProperties": false }, - "UserId": { - "type": "string" + "CommentLogType": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54 + ], + "type": "number" }, - "FDomain": { - "type": "string" + "RepeatCommentHandlingAction": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "RepeatCommentCheckIgnoredReason": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "CommentLogData": { + "properties": { + "clearContent": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "phrase": { + "type": "string" + }, + "badWord": { + "type": "string" + }, + "word": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "tenantBadgeId": { + "type": "string" + }, + "badgeId": { + "type": "string" + }, + "wasLoggedIn": { + "type": "boolean" + }, + "foundUser": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "engine": { + "type": "string" + }, + "engineResponse": { + "type": "string" + }, + "engineTokens": { + "type": "number", + "format": "double" + }, + "trustFactor": { + "type": "number", + "format": "double" + }, + "rule": { + "$ref": "#/components/schemas/SpamRule" + }, + "userId": { + "type": "string" + }, + "subscribers": { + "type": "number", + "format": "double" + }, + "notificationCount": { + "type": "number", + "format": "double" + }, + "votesBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "repeatAction": { + "$ref": "#/components/schemas/RepeatCommentHandlingAction" + }, + "reason": { + "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + }, + "otherData": {}, + "spamBefore": { + "type": "boolean" + }, + "spamAfter": { + "type": "boolean" + }, + "permanentFlag": { + "type": "string", + "enum": [ + "permanent" + ], + "nullable": false + }, + "approvedBefore": { + "type": "boolean" + }, + "approvedAfter": { + "type": "boolean" + }, + "reviewedBefore": { + "type": "boolean" + }, + "reviewedAfter": { + "type": "boolean" + }, + "textBefore": { + "type": "string" + }, + "textAfter": { + "type": "string" + }, + "expireBefore": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "expireAfter": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "flagCountBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "trustFactorBefore": { + "type": "number", + "format": "double" + }, + "trustFactorAfter": { + "type": "number", + "format": "double" + }, + "referencedCommentId": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false }, - "CommentLog": { - "items": {}, - "type": "array" + "CommentLogEntry": { + "properties": { + "d": { + "type": "string", + "format": "date-time" + }, + "t": { + "$ref": "#/components/schemas/CommentLogType" + }, + "da": { + "$ref": "#/components/schemas/CommentLogData" + } + }, + "required": [ + "d", + "t" + ], + "type": "object", + "additionalProperties": false }, "FComment": { "properties": { @@ -4090,7 +4387,7 @@ }, "logs": { "items": { - "$ref": "#/components/schemas/CommentLog" + "$ref": "#/components/schemas/CommentLogEntry" }, "type": "array", "nullable": true @@ -4385,44 +4682,31 @@ "type": "object", "additionalProperties": false }, - "Pick_FComment.APICommentFieldsKeys_": { + "APICommentBase": { "properties": { - "date": { - "type": "string", - "format": "date-time" - }, "_id": { "type": "string" }, - "tenantId": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "urlIdRaw": { - "type": "string" - }, - "url": { - "type": "string" - }, - "pageTitle": { - "type": "string" - }, - "userId": { - "type": "string" + "aiDeterminedSpam": { + "type": "boolean" }, "anonUserId": { - "type": "string" + "type": "string", + "nullable": true }, - "commenterEmail": { - "type": "string" + "approved": { + "type": "boolean" }, - "commenterName": { - "type": "string" + "avatarSrc": { + "type": "string", + "nullable": true }, - "commenterLink": { - "type": "string" + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true }, "comment": { "type": "string" @@ -4430,61 +4714,62 @@ "commentHTML": { "type": "string" }, - "parentId": { - "type": "string" - }, - "localDateString": { - "type": "string" - }, - "localDateHours": { - "type": "integer", - "format": "int32" - }, - "votes": { - "type": "integer", - "format": "int32" - }, - "votesUp": { - "type": "integer", - "format": "int32" - }, - "votesDown": { - "type": "integer", - "format": "int32" + "commenterEmail": { + "type": "string", + "nullable": true }, - "expireAt": { + "commenterLink": { "type": "string", - "format": "date-time" + "nullable": true }, - "verified": { - "type": "boolean" + "commenterName": { + "type": "string" }, - "verifiedDate": { + "date": { "type": "string", - "format": "date-time" - }, - "notificationSentForParent": { - "type": "boolean" + "format": "date-time", + "nullable": true }, - "notificationSentForParentTenant": { - "type": "boolean" + "displayLabel": { + "type": "string", + "nullable": true }, - "reviewed": { - "type": "boolean" + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], + "nullable": true }, "externalId": { "type": "string" }, "externalParentId": { - "type": "string" + "type": "string", + "nullable": true }, - "avatarSrc": { - "type": "string" + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true }, - "isSpam": { - "type": "boolean" + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "aiDeterminedSpam": { + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "fromProductId": { + "type": "integer", + "format": "int32" + }, + "hasCode": { "type": "boolean" }, "hasImages": { @@ -4493,14 +4778,17 @@ "hasLinks": { "type": "boolean" }, - "hasCode": { - "type": "boolean" + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" }, - "approved": { + "isByAdmin": { "type": "boolean" }, - "locale": { - "type": "string" + "isByModerator": { + "type": "boolean" }, "isDeleted": { "type": "boolean" @@ -4508,32 +4796,35 @@ "isDeletedUser": { "type": "boolean" }, - "isByAdmin": { - "type": "boolean" - }, - "isByModerator": { - "type": "boolean" - }, "isPinned": { - "type": "boolean" + "type": "boolean", + "nullable": true }, "isLocked": { + "type": "boolean", + "nullable": true + }, + "isSpam": { "type": "boolean" }, - "flagCount": { + "localDateHours": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, - "rating": { - "type": "number", - "format": "double" + "localDateString": { + "type": "string", + "nullable": true }, - "displayLabel": { - "type": "string" + "locale": { + "type": "string", + "nullable": true }, - "fromProductId": { - "type": "integer", - "format": "int32" + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" }, "meta": { "properties": { @@ -4545,60 +4836,117 @@ } }, "additionalProperties": {}, - "type": "object" + "type": "object", + "nullable": true }, - "mentions": { + "moderationGroupIds": { "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" + "type": "string" }, - "type": "array" + "type": "array", + "nullable": true }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" + "notificationSentForParent": { + "type": "boolean" }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array" + "notificationSentForParentTenant": { + "type": "boolean" }, - "domain": { + "pageTitle": { + "type": "string", + "nullable": true + }, + "parentId": { + "type": "string", + "nullable": true + }, + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, + "reviewed": { + "type": "boolean" + }, + "tenantId": { "type": "string" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" + "url": { + "type": "string" }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" + "urlId": { + "type": "string" + }, + "urlIdRaw": { + "type": "string" + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "votes": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true } }, "required": [ - "date", "_id", - "tenantId", - "urlId", - "url", - "commenterName", + "approved", "comment", "commentHTML", - "verified", - "approved", - "locale" + "commenterName", + "date", + "locale", + "tenantId", + "url", + "urlId", + "verified" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" + "additionalProperties": false }, "APIComment": { - "$ref": "#/components/schemas/Pick_FComment.APICommentFieldsKeys_" + "allOf": [ + { + "$ref": "#/components/schemas/APICommentBase" + }, + { + "properties": { + "date": { + "type": "number", + "format": "double", + "nullable": true + } + }, + "required": [ + "date" + ], + "type": "object" + } + ] }, "APIGetCommentResponse": { "properties": { @@ -4635,12 +4983,8 @@ "type": "object", "additionalProperties": false }, - "Pick_APIComment.UpdatableCommentFields_": { + "UpdatableCommentParams": { "properties": { - "date": { - "type": "string", - "format": "date-time" - }, "urlId": { "type": "string" }, @@ -4651,19 +4995,27 @@ "type": "string" }, "pageTitle": { - "type": "string" + "type": "string", + "nullable": true }, "userId": { - "type": "string" + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, "commenterEmail": { - "type": "string" + "type": "string", + "nullable": true }, "commenterName": { "type": "string" }, "commenterLink": { - "type": "string" + "type": "string", + "nullable": true }, "comment": { "type": "string" @@ -4672,37 +5024,50 @@ "type": "string" }, "parentId": { - "type": "string" + "type": "string", + "nullable": true + }, + "date": { + "type": "number", + "format": "double", + "nullable": true }, "localDateString": { - "type": "string" + "type": "string", + "nullable": true }, "localDateHours": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votes": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesUp": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "votesDown": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "expireAt": { "type": "string", - "format": "date-time" + "format": "date-time", + "nullable": true }, "verified": { "type": "boolean" }, "verifiedDate": { "type": "string", - "format": "date-time" + "format": "date-time", + "nullable": true }, "notificationSentForParent": { "type": "boolean" @@ -4717,10 +5082,12 @@ "type": "string" }, "externalParentId": { - "type": "string" + "type": "string", + "nullable": true }, "avatarSrc": { - "type": "string" + "type": "string", + "nullable": true }, "isSpam": { "type": "boolean" @@ -4741,17 +5108,21 @@ "type": "boolean" }, "isPinned": { - "type": "boolean" + "type": "boolean", + "nullable": true }, "isLocked": { - "type": "boolean" + "type": "boolean", + "nullable": true }, "flagCount": { "type": "integer", - "format": "int32" + "format": "int32", + "nullable": true }, "displayLabel": { - "type": "string" + "type": "string", + "nullable": true }, "meta": { "properties": { @@ -4763,13 +5134,15 @@ } }, "additionalProperties": {}, - "type": "object" + "type": "object", + "nullable": true }, "moderationGroupIds": { "items": { "type": "string" }, - "type": "array" + "type": "array", + "nullable": true }, "feedbackIds": { "items": { @@ -4778,21 +5151,8 @@ "type": "array" } }, - "required": [ - "date", - "urlId", - "url", - "commenterName", - "comment", - "commentHTML", - "verified", - "approved" - ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" - }, - "UpdatableCommentParams": { - "$ref": "#/components/schemas/Pick_APIComment.UpdatableCommentFields_" + "additionalProperties": false }, "DeleteCommentAction": { "type": "string", @@ -4808,7 +5168,7 @@ "$ref": "#/components/schemas/DeleteCommentAction" }, "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ @@ -4820,7 +5180,7 @@ "SaveCommentResponse": { "properties": { "status": { - "$ref": "#/components/schemas/ImportedAPIStatus.SUCCESS" + "$ref": "#/components/schemas/APIStatus" }, "comment": { "$ref": "#/components/schemas/FComment" @@ -5036,14 +5396,11 @@ "type": "object", "additionalProperties": false }, - "Pick_TenantAuditLog.TenantAuditLogKeys_": { + "APIAuditLog": { "properties": { "_id": { "type": "string" }, - "url": { - "type": "string" - }, "userId": { "type": "string" }, @@ -5071,8 +5428,13 @@ "cron" ] }, + "url": { + "type": "string", + "nullable": true + }, "ip": { - "type": "string" + "type": "string", + "nullable": true }, "when": { "type": "string", @@ -5086,7 +5448,12 @@ "format": "date-time" }, "objectDetails": { - "$ref": "#/components/schemas/Record_string.any_" + "allOf": [ + { + "$ref": "#/components/schemas/Record_string.any_" + } + ], + "nullable": true } }, "required": [ @@ -5095,10 +5462,7 @@ "crudType" ], "type": "object", - "description": "From T, pick a set of properties whose keys are in the union K" - }, - "APIAuditLog": { - "$ref": "#/components/schemas/Pick_TenantAuditLog.TenantAuditLogKeys_" + "additionalProperties": false }, "GetAuditLogsResponse": { "properties": { diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..47d4a00 --- /dev/null +++ b/test.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set -e + +echo "Running FastComments Go SDK tests..." + +# Check required environment variables +if [ -z "$FASTCOMMENTS_API_KEY" ] || [ -z "$FASTCOMMENTS_TENANT_ID" ]; then + echo "Error: FASTCOMMENTS_API_KEY and FASTCOMMENTS_TENANT_ID environment variables must be set" + exit 1 +fi + +# Run all tests +echo "Running unit tests..." +go test ./tests/sso_test.go -v + +echo "" +echo "Running integration tests..." +go test ./tests/sso_integration_test.go -v + +echo "" +echo "✓ All tests passed!"