mo_profile

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusActive    = "active"
	StatusInvited   = "invited"
	StatusSuspended = "suspended"
	StatusRemoved   = "removed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	Raw                   json.RawMessage
	TeamMemberId          string `path:"team_member_id" json:"team_member_id"`
	Email                 string `path:"email" json:"email"`
	EmailVerified         bool   `path:"email_verified" json:"email_verified"`
	Status                string `path:"status.\\.tag" json:"status"`
	GivenName             string `path:"name.given_name" json:"given_name"`
	Surname               string `path:"name.surname" json:"surname"`
	FamiliarName          string `path:"name.familiar_name" json:"familiar_name"`
	DisplayName           string `path:"name.display_name" json:"display_name"`
	AbbreviatedName       string `path:"name.abbreviated_name" json:"abbreviated_name"`
	MemberFolderId        string `path:"member_folder_id" json:"member_folder_id"`
	ExternalId            string `path:"external_id" json:"external_id"`
	AccountId             string `path:"account_id" json:"account_id"`
	AccountType           string `path:"account_type.\\.tag" json:"account_type"`
	JoinedOn              string `path:"joined_on" json:"joined_on"`
	IsDirectoryRestricted bool   `path:"is_directory_restricted" json:"is_directory_restricted"`
}

func (Profile) IsAccepted

func (z Profile) IsAccepted() bool

True when the status is active or suspended.

func (Profile) IsActive

func (z Profile) IsActive() bool

func (Profile) IsInvited

func (z Profile) IsInvited() bool

func (Profile) IsRemoved

func (z Profile) IsRemoved() bool

func (Profile) IsSuspended

func (z Profile) IsSuspended() bool

Jump to

Keyboard shortcuts

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