Documentation ¶
Index ¶
- Variables
- type Community
- type CommunityAndMembership
- type DeleteUserResponse
- type GetCommunityListResponse
- type GetCommunityRequest
- type GetCommunityResponse
- type GetCommunityUserListRequest
- type GetCommunityUserListResponse
- type GetCommunityUserRequest
- type GetCommunityUserResponse
- type GetFileRequest
- type GetInvitationListResponse
- type GetPostHistoryRequest
- type GetPostHistoryResponse
- type GetPostListRequest
- type GetPostListResponse
- type GetPostRequest
- type GetPostResponse
- type GetPostThreadRequest
- type GetPostThreadResponse
- type GetUserProfileResponse
- type Invitation
- type Membership
- type Post
- type PostCommunityInviteRequest
- type PostCommunityInviteResponse
- type PostCommunityLeaveRequest
- type PostCommunityLeaveResponse
- type PostCommunityRequest
- type PostCommunityResponse
- type PostFileResponse
- type PostHistory
- type PostInvitationAcceptRequest
- type PostInvitationAcceptResponse
- type PostInvitationRejectRequest
- type PostInvitationRejectResponse
- type PostLoginEndRequest
- type PostLoginEndResponse
- type PostLoginStartRequest
- type PostLoginStartResponse
- type PostLogoutResponse
- type PostPinPostRequest
- type PostPinPostResponse
- type PostPostRequest
- type PostPostResponse
- type PostUnpinPostRequest
- type PostUnpinPostResponse
- type PostUnvotePostRequest
- type PostUnvotePostResponse
- type PostUserEmailEndRequest
- type PostUserEmailEndResponse
- type PostUserEmailStartRequest
- type PostUserEmailStartResponse
- type PostUserPhoneEndRequest
- type PostUserPhoneEndResponse
- type PostUserPhoneStartRequest
- type PostUserPhoneStartResponse
- type PostUserProfileRequest
- type PostUserProfileResponse
- type PostVotePostPollRequest
- type PostVotePostPollResponse
- type PostVotePostRequest
- type PostVotePostResponse
- type PostWidgets
- type PutPostRequest
- type PutPostResponse
- type SeedArguments
- type User
- type UserAndMembership
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExcInvalidPhone = internal.NewException(http.StatusBadRequest, "ERR_INVALID_PHONE") ExcInvalidEmail = internal.NewException(http.StatusBadRequest, "ERR_INVALID_EMAIL") )
Functions ¶
This section is empty.
Types ¶
type CommunityAndMembership ¶
type CommunityAndMembership struct { Community Community `json:"community"` Membership *Membership `json:"membership,omitempty"` }
type DeleteUserResponse ¶
type GetCommunityListResponse ¶
type GetCommunityListResponse struct { class.Payload Communities []CommunityAndMembership `json:"communities"` }
type GetCommunityRequest ¶
type GetCommunityResponse ¶
type GetCommunityResponse struct { class.Payload CommunityAndMembership }
type GetCommunityUserListResponse ¶
type GetCommunityUserListResponse struct { class.Payload Users []UserAndMembership `json:"users"` }
type GetCommunityUserRequest ¶
type GetCommunityUserResponse ¶
type GetCommunityUserResponse struct { class.Payload UserAndMembership }
type GetFileRequest ¶
type GetInvitationListResponse ¶
type GetInvitationListResponse struct { class.Payload Invitations []Invitation `json:"invitations"` }
type GetPostHistoryRequest ¶
type GetPostHistoryResponse ¶
type GetPostHistoryResponse struct { class.Payload History []PostHistory `json:"history"` }
type GetPostListRequest ¶
type GetPostListResponse ¶
type GetPostRequest ¶
type GetPostResponse ¶
type GetPostThreadRequest ¶
type GetPostThreadResponse ¶
type GetUserProfileResponse ¶
type Invitation ¶
type Membership ¶
type Post ¶
type Post struct { ID string `json:"id"` ThreadID *string `json:"thread_id"` CreatorID string `json:"creator_id"` Type string `json:"type"` Priority *int `json:"priority"` RecipientIDs *[]string `json:"recipient_ids"` VoterIDs []string `json:"voter_ids"` Subposts int `json:"subposts"` CreatedAt time.Time `json:"created_at"` PostHistory }
type PostCommunityInviteRequest ¶
type PostCommunityInviteRequest struct { class.Payload ID string `param:"id" validate:"required"` Phone string `json:"phone" validate:"required"` Door string `json:"door"` Role string `json:"role" validate:"required"` }
func (*PostCommunityInviteRequest) Process ¶
func (self *PostCommunityInviteRequest) Process() error
type PostCommunityInviteResponse ¶
type PostCommunityInviteResponse struct { class.Payload Invitation }
type PostCommunityRequest ¶
type PostCommunityResponse ¶
type PostCommunityResponse struct { class.Payload CommunityAndMembership }
type PostFileResponse ¶
type PostHistory ¶
type PostInvitationAcceptResponse ¶
type PostInvitationAcceptResponse struct { class.Payload Membership }
type PostLoginEndRequest ¶
type PostLoginEndResponse ¶
type PostLoginStartRequest ¶
func (*PostLoginStartRequest) Process ¶
func (self *PostLoginStartRequest) Process() error
type PostLoginStartResponse ¶
type PostLogoutResponse ¶
type PostPinPostRequest ¶
type PostPinPostResponse ¶
type PostPostRequest ¶
type PostPostRequest struct { class.Payload CommunityID string `param:"id" validate:"required"` Type string `json:"type" validate:"required"` ThreadID *string `json:"thread_id" validate:"omitempty,required"` Priority *int `json:"priority" validate:"omitempty,required"` RecipientIDs *[]string `json:"recipient_ids" validate:"omitempty,required"` Message string `json:"message" validate:"required"` Categories *[]string `json:"categories" validate:"omitempty,required"` State *string `json:"state" validate:"omitempty,required"` Media *[]string `json:"media" validate:"omitempty,required"` Widgets *struct { PollOptions *[]string `json:"poll_options" validate:"omitempty,required"` } `json:"widgets" validate:"omitempty,required"` }
type PostPostResponse ¶
type PostUnpinPostRequest ¶
type PostUnpinPostResponse ¶
type PostUnvotePostRequest ¶
type PostUnvotePostResponse ¶
type PostUserEmailEndRequest ¶
type PostUserEmailStartRequest ¶
type PostUserEmailStartRequest struct { class.Payload Email string `json:"email" validate:"required"` }
func (*PostUserEmailStartRequest) Process ¶
func (self *PostUserEmailStartRequest) Process() error
type PostUserPhoneEndRequest ¶
type PostUserPhoneStartRequest ¶
type PostUserPhoneStartRequest struct { class.Payload Phone string `json:"phone" validate:"required"` }
func (*PostUserPhoneStartRequest) Process ¶
func (self *PostUserPhoneStartRequest) Process() error
type PostUserProfileRequest ¶
type PostUserProfileRequest struct { class.Payload Name *string `json:"name" validate:"omitempty,required"` LastName *string `json:"last_name" validate:"omitempty,required"` Picture *string `json:"picture" validate:"omitempty,required"` Birthday *date.Date `json:"birthday" validate:"omitempty,required"` }
type PostUserProfileResponse ¶
type PostVotePostPollRequest ¶
type PostVotePostRequest ¶
type PostVotePostResponse ¶
type PostWidgets ¶
type PutPostRequest ¶
type PutPostRequest struct { class.Payload CommunityID string `param:"community_id" validate:"required"` PostID string `param:"post_id" validate:"required"` Message *string `json:"message" validate:"omitempty,required"` Categories *[]string `json:"categories" validate:"omitempty,required"` State *string `json:"state" validate:"omitempty,required"` Media *[]string `json:"media" validate:"omitempty,required"` Widgets *struct { PollOptions *[]string `json:"poll_options" validate:"omitempty,required"` } `json:"widgets" validate:"omitempty,required"` }
type PutPostResponse ¶
type UserAndMembership ¶
type UserAndMembership struct { User User `json:"user"` Membership Membership `json:"membership"` }
Click to show internal directories.
Click to hide internal directories.