responses

package
v0.0.0-...-b569ada Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityNews

type ActivityNews struct {
	Response
	NewStories           []models.Story      `json:"new_stories"`
	OldStories           []models.Story      `json:"old_stories"`
	Continuation         interface{}         `json:"continuation"`
	FriendRequestStories []models.Story      `json:"friend_request_stories"`
	Counts               models.Counts       `json:"counts"`
	Subscription         models.Subscription `json:"subscription"`
	Partition            interface{}         `json:"partition"`
	ContinuationToken    interface{}         `json:"continuation_token"`
	AdsManager           interface{}         `json:"ads_manager"`
	Aymf                 models.Aymf         `json:"aymf"`
}

type BlockedMedia

type BlockedMedia struct {
	Response
	MediaIds interface{} `json:"media_ids"`
}

type BootstrapUsers

type BootstrapUsers struct {
	Response
	Surfaces []models.Surface `json:"surfaces"`
	Users    []models.User    `json:"users"`
}

type CheckUsername

type CheckUsername struct {
	Response
	Username  string `json:"username,omitempty"`
	Available bool   `json:"available,omitempty"`
	Error     string `json:"error,omitempty"`
	ErrorType string `json:"error_type,omitempty"`
}

type Comment

type Comment struct {
	Response
	Comment *models.Comment `json:"comment"`
}

type CommentLike

type CommentLike struct {
	Response
}

type CreateBusinessInfo

type CreateBusinessInfo struct {
	Response
	Users []models.User `json:"users,omitempty"`
}

type DirectInbox

type DirectInbox struct {
	Response
	PendingRequestsTotal interface{}        `json:"pending_requests_total"`
	SeqId                int64              `json:"seq_id"`
	Viewer               models.User        `json:"viewer"`
	PendingRequestsUsers []models.User      `json:"pending_requests_users"`
	Inbox                models.DirectInbox `json:"inbox"`
	Megaphone            models.Megaphone   `json:"megaphone"`
	SnapshotAtMs         int64              `json:"snapshot_at_ms"`
}

type DirectRankedRecipients

type DirectRankedRecipients struct {
	Response
	Expires          int                            `json:"expires"`
	RankedRecipients []models.DirectRankedRecipient `json:"ranked_recipients"`
	Filtered         bool                           `json:"filtered"`
	RequestId        string                         `json:"request_id"`
	RankToken        string                         `json:"rank_token"`
}

type Explore

type Explore struct {
	Response
	NumResults          int                  `json:"num_results"`
	AutoLoadMoreEnabled interface{}          `json:"auto_load_more_enabled"`
	Items               []models.ExploreItem `json:"items"`
	MoreAvailable       interface{}          `json:"more_available"`
	NextMaxId           interface{}          `json:"next_max_id"`
	MaxId               string               `json:"max_id"`
	RankToken           string               `json:"rank_token"`
}

type FacebookOta

type FacebookOta struct {
	Response
	Bundles   interface{} `json:"bundles"`
	RequestId string      `json:"request_id"`
}

type FetchQPData

type FetchQPData struct {
	Response
	RequestStatus       string               `json:"request_status"`
	ExtraInfo           []models.QpExtraInfo `json:"extra_info"`
	QpData              []models.QpData      `json:"qp_data"`
	ClientCacheTtlInSec int                  `json:"client_cache_ttl_in_sec"`
	ErrorMsg            interface{}          `json:"error_msg"`
}

type FollowerAndFollowing

type FollowerAndFollowing struct {
	Response
	Users                         []models.User         `json:"users"`
	SuggestedUsers                models.SuggestedUsers `json:"suggested_users"`
	TruncateFollowRequestsAtIndex int                   `json:"truncate_follow_requests_at_index"`
	NextMaxId                     string                `json:"next_max_id"`
	PageSize                      int64                 `json:"page_size"`
	BigList                       bool                  `json:"big_list"`
}

type Friendship

type Friendship struct {
	Response
	FriendshipStatus models.FriendshipStatus `json:"friendship_status"`
}

type FriendshipsShow

type FriendshipsShow struct {
	Response
	models.FriendshipStatus
}

type Generic

type Generic struct {
	Response
}

type HighlightFeed

type HighlightFeed struct {
	Response
	AutoLoadMoreEnabled bool                `json:"auto_load_more_enabled"`
	NextMaxId           string              `json:"next_max_id"`
	Stories             *[]models.Story     `json:"stories,omitempty"`
	ShowEmptyState      bool                `json:"show_empty_state"`
	Tray                *[]models.StoryTray `json:"tray,omitempty"`
	TvChannel           interface{}         `json:"tv_channel"`
}

type LauncherSync

type LauncherSync struct {
	Response
	Configs map[string]interface{} `json:"configs"`
}

type Login

type Login struct {
	Response
	/*Pk                         int              `json:"pk"`
	Username                   string           `json:"username"`
	HasAnonymousProfilePicture bool             `json:"has_anonymous_profile_picture"`
	ProfilePicUrl              string           `json:"profile_pic_url"`
	ProfilePicId               string           `json:"profile_pic_id"`
	FullName                   string           `json:"full_name"`
	IsPrivate                  bool             `json:"is_private"`
	IsVerified                 bool             `json:"is_verified"`
	AllowedCommenterType       string           `json:"allowed_commenter_type"`
	ReelAutoArchive            string           `json:"reel_auto_archive"`
	AllowContactsSync          bool             `json:"allow_contacts_sync"`
	PhoneNumber                string           `json:"phone_number"`
	CountryCode                int              `json:"country_code"`
	NationalNumber             int              `json:"national_number"`*/
	Buttons            interface{}           `json:"buttons,omitempty"`
	InvalidCredentials interface{}           `json:"invalid_credentials,omitempty"`
	LoggedInUser       models.User           `json:"logged_in_user,omitempty"`
	TwoFactorRequired  bool                  `json:"two_factor_required,omitempty"`
	TwoFactorInfo      *models.TwoFactorInfo `json:"two_factor_info,omitempty"`
	CheckPointUrl      string                `json:"check_point_url,omitempty"`
	Lock               interface{}           `json:"lock,omitempty"`
	HelpUrl            string                `json:"help_url,omitempty"`
	Challenge          *models.Challenge     `json:"challenge,omitempty"`
}

type LoomFetchConfig

type LoomFetchConfig struct {
	Response
	SystemControl models.SystemControl `json:"system_control"`
	TraceControl  models.TraceControl  `json:"trace_control"`
	Id            int                  `json:"id"`
}

type MSISDNHeader

type MSISDNHeader struct {
	Response
	PhoneNumber         string `json:"phone_number,omitempty"`
	Url                 string `json:"url,omitempty"`
	RemainingTTLSeconds int    `json:"remaining_ttl_seconds,omitempty"`
	Ttl                 int    `json:"ttl,omitempty"`
}

type MediaComment

type MediaComment struct {
	Response
	Comments                []models.Comment `json:"comments"`
	CommentCount            int              `json:"comment_count"`
	CommentLikesEnabled     bool             `json:"comment_likes_enabled"`
	NextMaxId               string           `json:"next_max_id"`
	NextMinId               string           `json:"next_min_id"`
	Caption                 models.Caption   `json:"caption"`
	HasMoreComments         bool             `json:"has_more_comments"`
	CaptionIsEdited         bool             `json:"caption_is_edited"`
	PreviewComments         interface{}      `json:"preview_comments"`
	HasMoreHeadloadComments bool             `json:"has_more_headload_comments"`
	MediaHeaderDisplay      string           `json:"media_header_display"`
	ThreadingEnabled        bool             `json:"threading_enabled"`
}

type MediaInfo

type MediaInfo struct {
	Response
	AutoLoadMoreEnabled bool          `json:"auto_load_more_enabled"`
	NumResults          int           `json:"num_results"`
	MoreAvailable       bool          `json:"more_available"`
	Items               []models.Item `json:"items"`
}

type PendingFollowRequests

type PendingFollowRequests struct {
	Response
	Users []models.User `json:"users,omitempty"`
}

type Presences

type Presences struct {
	Response
	UserPresence interface{} `json:"user_presence"`
}

type ProfileNotice

type ProfileNotice struct {
	Response
	HasChangePasswordMegaphone bool `json:"has_change_password_megaphone"`
}

type PushRegister

type PushRegister struct {
	Response
}

type RecentSearches

type RecentSearches struct {
	Response
	Recent []models.Suggested `json:"recent"`
}

type ReelsMedia

type ReelsMedia struct {
	Response
	ReelsMedia *[]models.Reel          `json:"reels_media,omitempty"`
	Reels      *map[string]models.Reel `json:"reels,omitempty"`
}

type ReelsTrayFeed

type ReelsTrayFeed struct {
	Response
	StoryRankingToken                string                   `json:"story_ranking_token"`
	Broadcasts                       []models.Broadcast       `json:"broadcasts"`
	Tray                             []models.StoryTray       `json:"tray"`
	PostLive                         models.PostLive          `json:"post_live"`
	StickerVersion                   int                      `json:"sticker_version"`
	FaceFilterNuxVersion             int                      `json:"face_filter_nux_version"`
	StoriesViewerGesturesNuxEligible bool                     `json:"stories_viewer_gestures_nux_eligible"`
	HasNewNuxStory                   bool                     `json:"has_new_nux_story"`
	Suggestions                      []models.TraySuggestions `json:"suggestions"`
}

type Response

type Response struct {
	Status string `json:"status,omitempty"`

	Message    interface{} `json:"message,omitempty"`
	ErrorType  *string     `json:"error_type,omitempty"`
	ErrorTitle interface{} `json:"error_title,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) GetErrorType

func (r *Response) GetErrorType() (str *string)

func (*Response) GetHTTPResponse

func (r *Response) GetHTTPResponse() *http.Response

func (*Response) GetMessage

func (r *Response) GetMessage() (str string)

func (*Response) GetRawResponse

func (r *Response) GetRawResponse() string

func (*Response) IsOk

func (r *Response) IsOk() bool

func (*Response) SetHTTPResponse

func (r *Response) SetHTTPResponse(response *http.Response)

func (*Response) SetIsOk

func (r *Response) SetIsOk()

func (*Response) SetRawResponse

func (r *Response) SetRawResponse(response string)

type ResponseInterface

type ResponseInterface interface {
	SetHTTPResponse(resp *http.Response)
	SetRawResponse(raw string)
	SetIsOk()
	IsOk() bool
	GetMessage() string
	GetErrorType() *string
}

type ResumableOffset

type ResumableOffset struct {
	Response
	Offset *int `json:"offset"`
}

func (*ResumableOffset) IsOk

func (ro *ResumableOffset) IsOk() bool

type ResumableUpload

type ResumableUpload struct {
	Response
	XsharingNonces interface{} `json:"xsharing_nonces"`
	UploadId       int         `json:"upload_id"`
}

type SearchFollowerAndFollowing

type SearchFollowerAndFollowing struct {
	Response
	Users                         []models.User         `json:"users"`
	SuggestedUsers                models.SuggestedUsers `json:"suggested_users"`
	TruncateFollowRequestsAtIndex int                   `json:"truncate_follow_requests_at_index"`
	NextMaxId                     int64                 `json:"next_max_id"`
	PageSize                      int64                 `json:"page_size"`
	BigList                       bool                  `json:"big_list"`
}

type SuggestedSearches

type SuggestedSearches struct {
	Response
	Suggested []models.Suggested `json:"suggested"`
	RankToken string             `json:"rank_token"`
}

type SwitchPersonalProfile

type SwitchPersonalProfile struct {
	Response
	Users []models.User `json:"users,omitempty"`
}

type Sync

type Sync struct {
	Response
	//Experiments []map[string]interface{} `json:"experiments"`
	Experiments []models.Experiment `json:"experiments"`
}

type TVChannels

type TVChannels struct {
	Response
	Type          string         `json:"type"`
	Title         string         `json:"title"`
	Id            string         `json:"id"`
	Items         *[]models.Item `json:"items,omitempty"`
	MoreAvailable bool           `json:"more_available"`
	MaxId         string         `json:"max_id"`
	SeenState     interface{}    `json:"seen_state"`
	UserDict      models.User    `json:"user_dict"`
}

type TimelineFeed

type TimelineFeed struct {
	Response
	NumResults                  int               `json:"num_results"`
	ClientGapEnforcerMatrix     interface{}       `json:"client_gap_enforcer_matrix"`
	IsDirectV2Enabled           bool              `json:"is_direct_v_2_enabled"`
	AutoLoadMoreEnabled         bool              `json:"auto_load_more_enabled"`
	MoreAvailable               bool              `json:"more_available"`
	NextMaxId                   interface{}       `json:"next_max_id"`
	PaginationInfo              interface{}       `json:"pagination_info"`
	FeedItems                   []models.FeedItem `json:"feed_items"`
	Megaphone                   models.FeedAysf   `json:"megaphone"`
	ClientFeedChangelistApplied bool              `json:"client_feed_changelist_applied"`
	ViewStateVersion            string            `json:"view_state_version"`
	FeedPillText                string            `json:"feed_pill_text"`
	ClientSessionId             string            `json:"client_session_id"`
}

type TokenResult

type TokenResult struct {
	Response
	Token models.Token
}

type UploadPhoto

type UploadPhoto struct {
	Response
	UploadId string `json:"upload_id"`
	MediaId  string `json:"media_id"`
}

type UserInfo

type UserInfo struct {
	Response
	Megaphone *interface{} `json:"megaphone,omitempty"`
	User      *models.User `json:"user,omitempty"`
}

type UserReelMediaFeed

type UserReelMediaFeed struct {
	Response
	Id int64 `json:"id"`
	/*
	 * Unix "taken_at" timestamp of the newest item in their story reel.
	 */
	LatestReelMedia int64 `json:"latest_reel_media"`
	/*
	 * The "taken_at" timestamp of the last story media you have seen for
	 * that user (the current reels user). Defaults to `0` (not seen).
	 */
	Seen               int64              `json:"seen"`
	CanReply           bool               `json:"can_reply"`
	CanReshare         bool               `json:"can_reshare"`
	ReelType           string             `json:"reel_type"`
	CoverMedia         *models.CoverMedia `json:"cover_media,omitempty"`
	User               models.User        `json:"user"`
	Items              *[]models.Item     `json:"items,omitempty"`
	RankedPosition     string             `json:"ranked_position"`
	Title              string             `json:"title"`
	SeenRankedPosition string             `json:"seen_ranked_position"`
	ExpiringAt         int64              `json:"expiring_at"`
	HasBestiesMedia    bool               `json:"has_besties_media"` // Uses int(0) for false and 1 for true.
	Location           *models.Location   `json:"location,omitempty"`
	PrefetchCount      int                `json:"prefetch_count"`
	Broadcast          *models.Broadcast  `json:"broadcast,omitempty"`
}

type UserStoryFeed

type UserStoryFeed struct {
	Response
	Broadcast    *models.Broadcast    `json:"broadcast,omitempty"`
	Reel         *models.Reel         `json:"reel,omitempty"`
	PostLiveItem *models.PostLiveItem `json:"post_live_item,omitempty"`
}

type UserTimelineFeed

type UserTimelineFeed struct {
	Response
	Items               *[]models.Item `json:"items,omitempty"`
	NumResults          int            `json:"num_results"`
	MoreAvailable       bool           `json:"more_available"`
	NextMaxId           string         `json:"next_max_id"`
	MaxId               string         `json:"max_id"`
	AutoLoadMoreEnabled bool           `json:"auto_load_more_enabled"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL