getUser

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Photo added in v1.1.0

type Photo struct {
	Id       string `json:"id"`
	UniqueId string `json:"uniq_id"`
	Link     string `json:"link"`
}

type ResponsePhotos

type ResponsePhotos struct {
	TotalCount int32 `json:"total_count"`
	PhotoList  []struct {
		Type      string `json:"@type"`
		AddedDate int32  `json:"added_date"`
		Id        int64  `json:"id"`
		Sizes     []struct {
			Height int32 `json:"height"`
			Width  int32 `json:"width"`
			Photo  struct {
				Id           int32 `json:"id"`
				ExpectedSize int32 `json:"expected_size"`
				Size         int32 `json:"size"`
				Remote       struct {
					Type                 string `json:"@type"`
					Id                   string `json:"id"`
					UniqueId             string `json:"unique_id"`
					IsUploadingActive    bool   `json:"is_uploading_active"`
					IsUploadingCompleted bool   `json:"is_uploading_completed"`
					UploadedSize         bool   `json:"uploaded_size"`
				} `json:"remote"`
				Local struct {
					Type            string `json:"@type"`
					CanBeDownloaded bool   `json:"can_be_downloaded"`
					CanBeDeleted    bool   `json:"can_be_deleted"`
					Path            string `json:"path"`
				} `json:"local"`
			} `json:"photo"`
		} `json:"sizes"`
	} `json:"photos"`
}

type ResponseUser

type ResponseUser struct {
	Id          int32  `json:"id"`
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name"`
	Username    string `json:"username"`
	PhoneNumber string `json:"phone_number"`
	Type        struct {
		Type string `json:"@type"`
	} `json:"type"`
}

type User

type User struct {
	Id          int32   `json:"id"`
	FirstName   string  `json:"first_name"`
	LastName    string  `json:"last_name"`
	Username    string  `json:"username"`
	PhoneNumber string  `json:"phone_number"`
	Type        string  `json:"type"`
	Bio         string  `json:"bio"`
	PhotoList   []Photo `json:"photo_list"`
}

func Handle

func Handle(clientStorage *client.Storage, userId int32) User

Jump to

Keyboard shortcuts

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