Types

package
v0.0.0-...-961c423 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CLASSIFICATION_RECIPE_SERVICE_RECIPE = "002"
View Source
const CLASSIFICATION_RECIPE_USER_NON_RECIPE = "000"
View Source
const CLASSIFICATION_RECIPE_USER_RECIPE = "001"
View Source
const EDAM_NOTE_SOURCE_MAIL_CLIP = "mail.clip"
View Source
const EDAM_NOTE_SOURCE_MAIL_SMTP_GATEWAY = "mail.smtp"
View Source
const EDAM_NOTE_SOURCE_WEB_CLIP = "web.clip"

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type Accounting

type Accounting struct {
	UploadLimit            int64              `thrift:"uploadLimit,1"`
	UploadLimitEnd         Timestamp          `thrift:"uploadLimitEnd,2"`
	UploadLimitNextMonth   int64              `thrift:"uploadLimitNextMonth,3"`
	PremiumServiceStatus   PremiumOrderStatus `thrift:"premiumServiceStatus,4"`
	PremiumOrderNumber     string             `thrift:"premiumOrderNumber,5"`
	PremiumCommerceService string             `thrift:"premiumCommerceService,6"`
	PremiumServiceStart    Timestamp          `thrift:"premiumServiceStart,7"`
	PremiumServiceSKU      string             `thrift:"premiumServiceSKU,8"`
	LastSuccessfulCharge   Timestamp          `thrift:"lastSuccessfulCharge,9"`
	LastFailedCharge       Timestamp          `thrift:"lastFailedCharge,10"`
	LastFailedChargeReason string             `thrift:"lastFailedChargeReason,11"`
	NextPaymentDue         Timestamp          `thrift:"nextPaymentDue,12"`
	PremiumLockUntil       Timestamp          `thrift:"premiumLockUntil,13"`
	Updated                Timestamp          `thrift:"updated,14"`
	// unused field # 15
	PremiumSubscriptionNumber string           `thrift:"premiumSubscriptionNumber,16"`
	LastRequestedCharge       Timestamp        `thrift:"lastRequestedCharge,17"`
	Currency                  string           `thrift:"currency,18"`
	UnitPrice                 int32            `thrift:"unitPrice,19"`
	BusinessId                int32            `thrift:"businessId,20"`
	BusinessName              string           `thrift:"businessName,21"`
	BusinessRole              BusinessUserRole `thrift:"businessRole,22"`
	UnitDiscount              int32            `thrift:"unitDiscount,23"`
	NextChargeDate            Timestamp        `thrift:"nextChargeDate,24"`
}

func NewAccounting

func NewAccounting() *Accounting

func (*Accounting) IsSetBusinessId

func (p *Accounting) IsSetBusinessId() bool

func (*Accounting) IsSetBusinessName

func (p *Accounting) IsSetBusinessName() bool

func (*Accounting) IsSetBusinessRole

func (p *Accounting) IsSetBusinessRole() bool

func (*Accounting) IsSetCurrency

func (p *Accounting) IsSetCurrency() bool

func (*Accounting) IsSetLastFailedCharge

func (p *Accounting) IsSetLastFailedCharge() bool

func (*Accounting) IsSetLastFailedChargeReason

func (p *Accounting) IsSetLastFailedChargeReason() bool

func (*Accounting) IsSetLastRequestedCharge

func (p *Accounting) IsSetLastRequestedCharge() bool

func (*Accounting) IsSetLastSuccessfulCharge

func (p *Accounting) IsSetLastSuccessfulCharge() bool

func (*Accounting) IsSetNextChargeDate

func (p *Accounting) IsSetNextChargeDate() bool

func (*Accounting) IsSetNextPaymentDue

func (p *Accounting) IsSetNextPaymentDue() bool

func (*Accounting) IsSetPremiumCommerceService

func (p *Accounting) IsSetPremiumCommerceService() bool

func (*Accounting) IsSetPremiumLockUntil

func (p *Accounting) IsSetPremiumLockUntil() bool

func (*Accounting) IsSetPremiumOrderNumber

func (p *Accounting) IsSetPremiumOrderNumber() bool

func (*Accounting) IsSetPremiumServiceSKU

func (p *Accounting) IsSetPremiumServiceSKU() bool

func (*Accounting) IsSetPremiumServiceStart

func (p *Accounting) IsSetPremiumServiceStart() bool

func (*Accounting) IsSetPremiumServiceStatus

func (p *Accounting) IsSetPremiumServiceStatus() bool

func (*Accounting) IsSetPremiumSubscriptionNumber

func (p *Accounting) IsSetPremiumSubscriptionNumber() bool

func (*Accounting) IsSetUnitDiscount

func (p *Accounting) IsSetUnitDiscount() bool

func (*Accounting) IsSetUnitPrice

func (p *Accounting) IsSetUnitPrice() bool

func (*Accounting) IsSetUpdated

func (p *Accounting) IsSetUpdated() bool

func (*Accounting) IsSetUploadLimit

func (p *Accounting) IsSetUploadLimit() bool

func (*Accounting) IsSetUploadLimitEnd

func (p *Accounting) IsSetUploadLimitEnd() bool

func (*Accounting) IsSetUploadLimitNextMonth

func (p *Accounting) IsSetUploadLimitNextMonth() bool

func (*Accounting) Read

func (p *Accounting) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Accounting) String

func (p *Accounting) String() string

func (*Accounting) Write

func (p *Accounting) Write(ctx context.Context, oprot thrift.TProtocol) error

type BusinessNotebook

type BusinessNotebook struct {
	NotebookDescription string                       `thrift:"notebookDescription,1"`
	Privilege           SharedNotebookPrivilegeLevel `thrift:"privilege,2"`
	Recommended         bool                         `thrift:"recommended,3"`
}

func NewBusinessNotebook

func NewBusinessNotebook() *BusinessNotebook

func (*BusinessNotebook) IsSetNotebookDescription

func (p *BusinessNotebook) IsSetNotebookDescription() bool

func (*BusinessNotebook) IsSetPrivilege

func (p *BusinessNotebook) IsSetPrivilege() bool

func (*BusinessNotebook) IsSetRecommended

func (p *BusinessNotebook) IsSetRecommended() bool

func (*BusinessNotebook) Read

func (p *BusinessNotebook) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*BusinessNotebook) String

func (p *BusinessNotebook) String() string

func (*BusinessNotebook) Write

func (p *BusinessNotebook) Write(ctx context.Context, oprot thrift.TProtocol) error

type BusinessUserInfo

type BusinessUserInfo struct {
	BusinessId   int32            `thrift:"businessId,1"`
	BusinessName string           `thrift:"businessName,2"`
	Role         BusinessUserRole `thrift:"role,3"`
	Email        string           `thrift:"email,4"`
}

func NewBusinessUserInfo

func NewBusinessUserInfo() *BusinessUserInfo

func (*BusinessUserInfo) IsSetBusinessId

func (p *BusinessUserInfo) IsSetBusinessId() bool

func (*BusinessUserInfo) IsSetBusinessName

func (p *BusinessUserInfo) IsSetBusinessName() bool

func (*BusinessUserInfo) IsSetEmail

func (p *BusinessUserInfo) IsSetEmail() bool

func (*BusinessUserInfo) IsSetRole

func (p *BusinessUserInfo) IsSetRole() bool

func (*BusinessUserInfo) Read

func (p *BusinessUserInfo) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*BusinessUserInfo) String

func (p *BusinessUserInfo) String() string

func (*BusinessUserInfo) Write

func (p *BusinessUserInfo) Write(ctx context.Context, oprot thrift.TProtocol) error

type BusinessUserRole

type BusinessUserRole int64

Enumeration of the roles that a User can have within an Evernote Business account.

ADMIN: The user is an administrator of the Evernote Business account.

NORMAL: The user is a regular user within the Evernote Business account.

const (
	BusinessUserRole_ADMIN  BusinessUserRole = 1
	BusinessUserRole_NORMAL BusinessUserRole = 2
)

func BusinessUserRoleFromString

func BusinessUserRoleFromString(s string) (BusinessUserRole, error)

func (BusinessUserRole) String

func (p BusinessUserRole) String() string

type Data

type Data struct {
	BodyHash []byte `thrift:"bodyHash,1"`
	Size     int32  `thrift:"size,2"`
	Body     []byte `thrift:"body,3"`
}

func NewData

func NewData() *Data

func (*Data) IsSetBody

func (p *Data) IsSetBody() bool

func (*Data) IsSetBodyHash

func (p *Data) IsSetBodyHash() bool

func (*Data) IsSetSize

func (p *Data) IsSetSize() bool

func (*Data) Read

func (p *Data) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Data) String

func (p *Data) String() string

func (*Data) Write

func (p *Data) Write(ctx context.Context, oprot thrift.TProtocol) error

type Guid

type Guid string

Most data elements within a user's account (e.g. notebooks, notes, tags, resources, etc.) are internally referred to using a globally unique identifier that is written in a standard string format. For example:

"8743428c-ef91-4d05-9e7c-4a2e856e813a"

The internal components of the GUID are not given any particular meaning: only the entire string is relevant as a unique identifier.

type LazyMap

type LazyMap struct {
	KeysOnly map[string]bool   `thrift:"keysOnly,1"`
	FullMap  map[string]string `thrift:"fullMap,2"`
}

func NewLazyMap

func NewLazyMap() *LazyMap

func (*LazyMap) IsSetFullMap

func (p *LazyMap) IsSetFullMap() bool

func (*LazyMap) IsSetKeysOnly

func (p *LazyMap) IsSetKeysOnly() bool

func (*LazyMap) Read

func (p *LazyMap) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*LazyMap) String

func (p *LazyMap) String() string

func (*LazyMap) Write

func (p *LazyMap) Write(ctx context.Context, oprot thrift.TProtocol) error

type LinkedNotebook

type LinkedNotebook struct {
	// unused field # 1
	ShareName         string `thrift:"shareName,2"`
	Username          string `thrift:"username,3"`
	ShardId           string `thrift:"shardId,4"`
	ShareKey          string `thrift:"shareKey,5"`
	Uri               string `thrift:"uri,6"`
	Guid              Guid   `thrift:"guid,7"`
	UpdateSequenceNum int32  `thrift:"updateSequenceNum,8"`
	NoteStoreUrl      string `thrift:"noteStoreUrl,9"`
	WebApiUrlPrefix   string `thrift:"webApiUrlPrefix,10"`
	Stack             string `thrift:"stack,11"`
	BusinessId        int32  `thrift:"businessId,12"`
}

func NewLinkedNotebook

func NewLinkedNotebook() *LinkedNotebook

func (*LinkedNotebook) IsSetBusinessId

func (p *LinkedNotebook) IsSetBusinessId() bool

func (*LinkedNotebook) IsSetGuid

func (p *LinkedNotebook) IsSetGuid() bool

func (*LinkedNotebook) IsSetNoteStoreUrl

func (p *LinkedNotebook) IsSetNoteStoreUrl() bool

func (*LinkedNotebook) IsSetShardId

func (p *LinkedNotebook) IsSetShardId() bool

func (*LinkedNotebook) IsSetShareKey

func (p *LinkedNotebook) IsSetShareKey() bool

func (*LinkedNotebook) IsSetShareName

func (p *LinkedNotebook) IsSetShareName() bool

func (*LinkedNotebook) IsSetStack

func (p *LinkedNotebook) IsSetStack() bool

func (*LinkedNotebook) IsSetUpdateSequenceNum

func (p *LinkedNotebook) IsSetUpdateSequenceNum() bool

func (*LinkedNotebook) IsSetUri

func (p *LinkedNotebook) IsSetUri() bool

func (*LinkedNotebook) IsSetUsername

func (p *LinkedNotebook) IsSetUsername() bool

func (*LinkedNotebook) IsSetWebApiUrlPrefix

func (p *LinkedNotebook) IsSetWebApiUrlPrefix() bool

func (*LinkedNotebook) Read

func (p *LinkedNotebook) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*LinkedNotebook) String

func (p *LinkedNotebook) String() string

func (*LinkedNotebook) Write

func (p *LinkedNotebook) Write(ctx context.Context, oprot thrift.TProtocol) error

type Note

type Note struct {
	Guid              Guid            `thrift:"guid,1"`
	Title             string          `thrift:"title,2"`
	Content           string          `thrift:"content,3"`
	ContentHash       []byte          `thrift:"contentHash,4"`
	ContentLength     int32           `thrift:"contentLength,5"`
	Created           Timestamp       `thrift:"created,6"`
	Updated           Timestamp       `thrift:"updated,7"`
	Deleted           Timestamp       `thrift:"deleted,8"`
	Active            bool            `thrift:"active,9"`
	UpdateSequenceNum int32           `thrift:"updateSequenceNum,10"`
	NotebookGuid      string          `thrift:"notebookGuid,11"`
	TagGuids          []Guid          `thrift:"tagGuids,12"`
	Resources         []*Resource     `thrift:"resources,13"`
	Attributes        *NoteAttributes `thrift:"attributes,14"`
	TagNames          []string        `thrift:"tagNames,15"`
}

func NewNote

func NewNote() *Note

func (*Note) IsSetActive

func (p *Note) IsSetActive() bool

func (*Note) IsSetAttributes

func (p *Note) IsSetAttributes() bool

func (*Note) IsSetContent

func (p *Note) IsSetContent() bool

func (*Note) IsSetContentHash

func (p *Note) IsSetContentHash() bool

func (*Note) IsSetContentLength

func (p *Note) IsSetContentLength() bool

func (*Note) IsSetCreated

func (p *Note) IsSetCreated() bool

func (*Note) IsSetDeleted

func (p *Note) IsSetDeleted() bool

func (*Note) IsSetGuid

func (p *Note) IsSetGuid() bool

func (*Note) IsSetNotebookGuid

func (p *Note) IsSetNotebookGuid() bool

func (*Note) IsSetResources

func (p *Note) IsSetResources() bool

func (*Note) IsSetTagGuids

func (p *Note) IsSetTagGuids() bool

func (*Note) IsSetTagNames

func (p *Note) IsSetTagNames() bool

func (*Note) IsSetTitle

func (p *Note) IsSetTitle() bool

func (*Note) IsSetUpdateSequenceNum

func (p *Note) IsSetUpdateSequenceNum() bool

func (*Note) IsSetUpdated

func (p *Note) IsSetUpdated() bool

func (*Note) Read

func (p *Note) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Note) String

func (p *Note) String() string

func (*Note) Write

func (p *Note) Write(ctx context.Context, oprot thrift.TProtocol) error

type NoteAttributes

type NoteAttributes struct {
	SubjectDate Timestamp `thrift:"subjectDate,1"`
	// unused field # 2
	// unused field # 3
	// unused field # 4
	// unused field # 5
	// unused field # 6
	// unused field # 7
	// unused field # 8
	// unused field # 9
	Latitude          float64   `thrift:"latitude,10"`
	Longitude         float64   `thrift:"longitude,11"`
	Altitude          float64   `thrift:"altitude,12"`
	Author            string    `thrift:"author,13"`
	Source            string    `thrift:"source,14"`
	SourceURL         string    `thrift:"sourceURL,15"`
	SourceApplication string    `thrift:"sourceApplication,16"`
	ShareDate         Timestamp `thrift:"shareDate,17"`
	ReminderOrder     int64     `thrift:"reminderOrder,18"`
	ReminderDoneTime  Timestamp `thrift:"reminderDoneTime,19"`
	ReminderTime      Timestamp `thrift:"reminderTime,20"`
	PlaceName         string    `thrift:"placeName,21"`
	ContentClass      string    `thrift:"contentClass,22"`
	ApplicationData   *LazyMap  `thrift:"applicationData,23"`
	LastEditedBy      string    `thrift:"lastEditedBy,24"`
	// unused field # 25
	Classifications map[string]string `thrift:"classifications,26"`
	CreatorId       UserID            `thrift:"creatorId,27"`
	LastEditorId    UserID            `thrift:"lastEditorId,28"`
}

func NewNoteAttributes

func NewNoteAttributes() *NoteAttributes

func (*NoteAttributes) IsSetAltitude

func (p *NoteAttributes) IsSetAltitude() bool

func (*NoteAttributes) IsSetApplicationData

func (p *NoteAttributes) IsSetApplicationData() bool

func (*NoteAttributes) IsSetAuthor

func (p *NoteAttributes) IsSetAuthor() bool

func (*NoteAttributes) IsSetClassifications

func (p *NoteAttributes) IsSetClassifications() bool

func (*NoteAttributes) IsSetContentClass

func (p *NoteAttributes) IsSetContentClass() bool

func (*NoteAttributes) IsSetCreatorId

func (p *NoteAttributes) IsSetCreatorId() bool

func (*NoteAttributes) IsSetLastEditedBy

func (p *NoteAttributes) IsSetLastEditedBy() bool

func (*NoteAttributes) IsSetLastEditorId

func (p *NoteAttributes) IsSetLastEditorId() bool

func (*NoteAttributes) IsSetLatitude

func (p *NoteAttributes) IsSetLatitude() bool

func (*NoteAttributes) IsSetLongitude

func (p *NoteAttributes) IsSetLongitude() bool

func (*NoteAttributes) IsSetPlaceName

func (p *NoteAttributes) IsSetPlaceName() bool

func (*NoteAttributes) IsSetReminderDoneTime

func (p *NoteAttributes) IsSetReminderDoneTime() bool

func (*NoteAttributes) IsSetReminderOrder

func (p *NoteAttributes) IsSetReminderOrder() bool

func (*NoteAttributes) IsSetReminderTime

func (p *NoteAttributes) IsSetReminderTime() bool

func (*NoteAttributes) IsSetShareDate

func (p *NoteAttributes) IsSetShareDate() bool

func (*NoteAttributes) IsSetSource

func (p *NoteAttributes) IsSetSource() bool

func (*NoteAttributes) IsSetSourceApplication

func (p *NoteAttributes) IsSetSourceApplication() bool

func (*NoteAttributes) IsSetSourceURL

func (p *NoteAttributes) IsSetSourceURL() bool

func (*NoteAttributes) IsSetSubjectDate

func (p *NoteAttributes) IsSetSubjectDate() bool

func (*NoteAttributes) Read

func (p *NoteAttributes) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*NoteAttributes) String

func (p *NoteAttributes) String() string

func (*NoteAttributes) Write

func (p *NoteAttributes) Write(ctx context.Context, oprot thrift.TProtocol) error

type NoteSortOrder

type NoteSortOrder int64

This enumeration defines the possible sort ordering for notes when they are returned from a search result.

const (
	NoteSortOrder_CREATED                NoteSortOrder = 1
	NoteSortOrder_UPDATED                NoteSortOrder = 2
	NoteSortOrder_RELEVANCE              NoteSortOrder = 3
	NoteSortOrder_UPDATE_SEQUENCE_NUMBER NoteSortOrder = 4
	NoteSortOrder_TITLE                  NoteSortOrder = 5
)

func NoteSortOrderFromString

func NoteSortOrderFromString(s string) (NoteSortOrder, error)

func (NoteSortOrder) String

func (p NoteSortOrder) String() string

type Notebook

type Notebook struct {
	Guid Guid   `thrift:"guid,1"`
	Name string `thrift:"name,2"`
	// unused field # 3
	// unused field # 4
	UpdateSequenceNum int32     `thrift:"updateSequenceNum,5"`
	DefaultNotebook   bool      `thrift:"defaultNotebook,6"`
	ServiceCreated    Timestamp `thrift:"serviceCreated,7"`
	ServiceUpdated    Timestamp `thrift:"serviceUpdated,8"`
	// unused field # 9
	Publishing        *Publishing           `thrift:"publishing,10"`
	Published         bool                  `thrift:"published,11"`
	Stack             string                `thrift:"stack,12"`
	SharedNotebookIds []int64               `thrift:"sharedNotebookIds,13"`
	SharedNotebooks   []*SharedNotebook     `thrift:"sharedNotebooks,14"`
	BusinessNotebook  *BusinessNotebook     `thrift:"businessNotebook,15"`
	Contact           *User                 `thrift:"contact,16"`
	Restrictions      *NotebookRestrictions `thrift:"restrictions,17"`
}

func NewNotebook

func NewNotebook() *Notebook

func (*Notebook) IsSetBusinessNotebook

func (p *Notebook) IsSetBusinessNotebook() bool

func (*Notebook) IsSetContact

func (p *Notebook) IsSetContact() bool

func (*Notebook) IsSetDefaultNotebook

func (p *Notebook) IsSetDefaultNotebook() bool

func (*Notebook) IsSetGuid

func (p *Notebook) IsSetGuid() bool

func (*Notebook) IsSetName

func (p *Notebook) IsSetName() bool

func (*Notebook) IsSetPublished

func (p *Notebook) IsSetPublished() bool

func (*Notebook) IsSetPublishing

func (p *Notebook) IsSetPublishing() bool

func (*Notebook) IsSetRestrictions

func (p *Notebook) IsSetRestrictions() bool

func (*Notebook) IsSetServiceCreated

func (p *Notebook) IsSetServiceCreated() bool

func (*Notebook) IsSetServiceUpdated

func (p *Notebook) IsSetServiceUpdated() bool

func (*Notebook) IsSetSharedNotebookIds

func (p *Notebook) IsSetSharedNotebookIds() bool

func (*Notebook) IsSetSharedNotebooks

func (p *Notebook) IsSetSharedNotebooks() bool

func (*Notebook) IsSetStack

func (p *Notebook) IsSetStack() bool

func (*Notebook) IsSetUpdateSequenceNum

func (p *Notebook) IsSetUpdateSequenceNum() bool

func (*Notebook) Read

func (p *Notebook) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Notebook) String

func (p *Notebook) String() string

func (*Notebook) Write

func (p *Notebook) Write(ctx context.Context, oprot thrift.TProtocol) error

type NotebookDescriptor

type NotebookDescriptor struct {
	Guid                Guid   `thrift:"guid,1"`
	NotebookDisplayName string `thrift:"notebookDisplayName,2"`
	ContactName         string `thrift:"contactName,3"`
	HasSharedNotebook   bool   `thrift:"hasSharedNotebook,4"`
	JoinedUserCount     int32  `thrift:"joinedUserCount,5"`
}

func NewNotebookDescriptor

func NewNotebookDescriptor() *NotebookDescriptor

func (*NotebookDescriptor) IsSetContactName

func (p *NotebookDescriptor) IsSetContactName() bool

func (*NotebookDescriptor) IsSetGuid

func (p *NotebookDescriptor) IsSetGuid() bool

func (*NotebookDescriptor) IsSetHasSharedNotebook

func (p *NotebookDescriptor) IsSetHasSharedNotebook() bool

func (*NotebookDescriptor) IsSetJoinedUserCount

func (p *NotebookDescriptor) IsSetJoinedUserCount() bool

func (*NotebookDescriptor) IsSetNotebookDisplayName

func (p *NotebookDescriptor) IsSetNotebookDisplayName() bool

func (*NotebookDescriptor) Read

func (*NotebookDescriptor) String

func (p *NotebookDescriptor) String() string

func (*NotebookDescriptor) Write

func (p *NotebookDescriptor) Write(ctx context.Context, oprot thrift.TProtocol) error

type NotebookRestrictions

type NotebookRestrictions struct {
	NoReadNotes                            bool                               `thrift:"noReadNotes,1"`
	NoCreateNotes                          bool                               `thrift:"noCreateNotes,2"`
	NoUpdateNotes                          bool                               `thrift:"noUpdateNotes,3"`
	NoExpungeNotes                         bool                               `thrift:"noExpungeNotes,4"`
	NoShareNotes                           bool                               `thrift:"noShareNotes,5"`
	NoEmailNotes                           bool                               `thrift:"noEmailNotes,6"`
	NoSendMessageToRecipients              bool                               `thrift:"noSendMessageToRecipients,7"`
	NoUpdateNotebook                       bool                               `thrift:"noUpdateNotebook,8"`
	NoExpungeNotebook                      bool                               `thrift:"noExpungeNotebook,9"`
	NoSetDefaultNotebook                   bool                               `thrift:"noSetDefaultNotebook,10"`
	NoSetNotebookStack                     bool                               `thrift:"noSetNotebookStack,11"`
	NoPublishToPublic                      bool                               `thrift:"noPublishToPublic,12"`
	NoPublishToBusinessLibrary             bool                               `thrift:"noPublishToBusinessLibrary,13"`
	NoCreateTags                           bool                               `thrift:"noCreateTags,14"`
	NoUpdateTags                           bool                               `thrift:"noUpdateTags,15"`
	NoExpungeTags                          bool                               `thrift:"noExpungeTags,16"`
	NoSetParentTag                         bool                               `thrift:"noSetParentTag,17"`
	NoCreateSharedNotebooks                bool                               `thrift:"noCreateSharedNotebooks,18"`
	UpdateWhichSharedNotebookRestrictions  SharedNotebookInstanceRestrictions `thrift:"updateWhichSharedNotebookRestrictions,19"`
	ExpungeWhichSharedNotebookRestrictions SharedNotebookInstanceRestrictions `thrift:"expungeWhichSharedNotebookRestrictions,20"`
}

func NewNotebookRestrictions

func NewNotebookRestrictions() *NotebookRestrictions

func (*NotebookRestrictions) IsSetExpungeWhichSharedNotebookRestrictions

func (p *NotebookRestrictions) IsSetExpungeWhichSharedNotebookRestrictions() bool

func (*NotebookRestrictions) IsSetNoCreateNotes

func (p *NotebookRestrictions) IsSetNoCreateNotes() bool

func (*NotebookRestrictions) IsSetNoCreateSharedNotebooks

func (p *NotebookRestrictions) IsSetNoCreateSharedNotebooks() bool

func (*NotebookRestrictions) IsSetNoCreateTags

func (p *NotebookRestrictions) IsSetNoCreateTags() bool

func (*NotebookRestrictions) IsSetNoEmailNotes

func (p *NotebookRestrictions) IsSetNoEmailNotes() bool

func (*NotebookRestrictions) IsSetNoExpungeNotebook

func (p *NotebookRestrictions) IsSetNoExpungeNotebook() bool

func (*NotebookRestrictions) IsSetNoExpungeNotes

func (p *NotebookRestrictions) IsSetNoExpungeNotes() bool

func (*NotebookRestrictions) IsSetNoExpungeTags

func (p *NotebookRestrictions) IsSetNoExpungeTags() bool

func (*NotebookRestrictions) IsSetNoPublishToBusinessLibrary

func (p *NotebookRestrictions) IsSetNoPublishToBusinessLibrary() bool

func (*NotebookRestrictions) IsSetNoPublishToPublic

func (p *NotebookRestrictions) IsSetNoPublishToPublic() bool

func (*NotebookRestrictions) IsSetNoReadNotes

func (p *NotebookRestrictions) IsSetNoReadNotes() bool

func (*NotebookRestrictions) IsSetNoSendMessageToRecipients

func (p *NotebookRestrictions) IsSetNoSendMessageToRecipients() bool

func (*NotebookRestrictions) IsSetNoSetDefaultNotebook

func (p *NotebookRestrictions) IsSetNoSetDefaultNotebook() bool

func (*NotebookRestrictions) IsSetNoSetNotebookStack

func (p *NotebookRestrictions) IsSetNoSetNotebookStack() bool

func (*NotebookRestrictions) IsSetNoSetParentTag

func (p *NotebookRestrictions) IsSetNoSetParentTag() bool

func (*NotebookRestrictions) IsSetNoShareNotes

func (p *NotebookRestrictions) IsSetNoShareNotes() bool

func (*NotebookRestrictions) IsSetNoUpdateNotebook

func (p *NotebookRestrictions) IsSetNoUpdateNotebook() bool

func (*NotebookRestrictions) IsSetNoUpdateNotes

func (p *NotebookRestrictions) IsSetNoUpdateNotes() bool

func (*NotebookRestrictions) IsSetNoUpdateTags

func (p *NotebookRestrictions) IsSetNoUpdateTags() bool

func (*NotebookRestrictions) IsSetUpdateWhichSharedNotebookRestrictions

func (p *NotebookRestrictions) IsSetUpdateWhichSharedNotebookRestrictions() bool

func (*NotebookRestrictions) Read

func (*NotebookRestrictions) String

func (p *NotebookRestrictions) String() string

func (*NotebookRestrictions) Write

type PremiumInfo

type PremiumInfo struct {
	CurrentTime                Timestamp          `thrift:"currentTime,1,required"`
	Premium                    bool               `thrift:"premium,2,required"`
	PremiumRecurring           bool               `thrift:"premiumRecurring,3,required"`
	PremiumExpirationDate      Timestamp          `thrift:"premiumExpirationDate,4"`
	PremiumExtendable          bool               `thrift:"premiumExtendable,5,required"`
	PremiumPending             bool               `thrift:"premiumPending,6,required"`
	PremiumCancellationPending bool               `thrift:"premiumCancellationPending,7,required"`
	CanPurchaseUploadAllowance bool               `thrift:"canPurchaseUploadAllowance,8,required"`
	SponsoredGroupName         string             `thrift:"sponsoredGroupName,9"`
	SponsoredGroupRole         SponsoredGroupRole `thrift:"sponsoredGroupRole,10"`
	PremiumUpgradable          bool               `thrift:"premiumUpgradable,11"`
}

func NewPremiumInfo

func NewPremiumInfo() *PremiumInfo

func (*PremiumInfo) IsSetPremiumExpirationDate

func (p *PremiumInfo) IsSetPremiumExpirationDate() bool

func (*PremiumInfo) IsSetPremiumUpgradable

func (p *PremiumInfo) IsSetPremiumUpgradable() bool

func (*PremiumInfo) IsSetSponsoredGroupName

func (p *PremiumInfo) IsSetSponsoredGroupName() bool

func (*PremiumInfo) IsSetSponsoredGroupRole

func (p *PremiumInfo) IsSetSponsoredGroupRole() bool

func (*PremiumInfo) Read

func (p *PremiumInfo) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*PremiumInfo) String

func (p *PremiumInfo) String() string

func (*PremiumInfo) Write

func (p *PremiumInfo) Write(ctx context.Context, oprot thrift.TProtocol) error

type PremiumOrderStatus

type PremiumOrderStatus int64

This enumeration defines the possible states of a premium account

NONE: the user has never attempted to become a premium subscriber

PENDING: the user has requested a premium account but their charge has not

been confirmed

ACTIVE: the user has been charged and their premium account is in good standing

FAILED: the system attempted to charge the was denied. Their premium

privileges have been revoked. We will periodically attempt to re-validate
their order.

CANCELLATION_PENDING: the user has requested that no further charges be made

but the current account is still active.

CANCELED: the premium account was canceled either because of failure to pay

or user cancelation. No more attempts will be made to activate the account.
const (
	PremiumOrderStatus_NONE                 PremiumOrderStatus = 0
	PremiumOrderStatus_PENDING              PremiumOrderStatus = 1
	PremiumOrderStatus_ACTIVE               PremiumOrderStatus = 2
	PremiumOrderStatus_FAILED               PremiumOrderStatus = 3
	PremiumOrderStatus_CANCELLATION_PENDING PremiumOrderStatus = 4
	PremiumOrderStatus_CANCELED             PremiumOrderStatus = 5
)

func PremiumOrderStatusFromString

func PremiumOrderStatusFromString(s string) (PremiumOrderStatus, error)

func (PremiumOrderStatus) String

func (p PremiumOrderStatus) String() string

type PrivilegeLevel

type PrivilegeLevel int64

This enumeration defines the possible permission levels for a user. Free accounts will have a level of NORMAL and paid Premium accounts will have a level of PREMIUM.

const (
	PrivilegeLevel_NORMAL  PrivilegeLevel = 1
	PrivilegeLevel_PREMIUM PrivilegeLevel = 3
	PrivilegeLevel_VIP     PrivilegeLevel = 5
	PrivilegeLevel_MANAGER PrivilegeLevel = 7
	PrivilegeLevel_SUPPORT PrivilegeLevel = 8
	PrivilegeLevel_ADMIN   PrivilegeLevel = 9
)

func PrivilegeLevelFromString

func PrivilegeLevelFromString(s string) (PrivilegeLevel, error)

func (PrivilegeLevel) String

func (p PrivilegeLevel) String() string

type Publishing

type Publishing struct {
	Uri               string        `thrift:"uri,1"`
	Order             NoteSortOrder `thrift:"order,2"`
	Ascending         bool          `thrift:"ascending,3"`
	PublicDescription string        `thrift:"publicDescription,4"`
}

func NewPublishing

func NewPublishing() *Publishing

func (*Publishing) IsSetAscending

func (p *Publishing) IsSetAscending() bool

func (*Publishing) IsSetOrder

func (p *Publishing) IsSetOrder() bool

func (*Publishing) IsSetPublicDescription

func (p *Publishing) IsSetPublicDescription() bool

func (*Publishing) IsSetUri

func (p *Publishing) IsSetUri() bool

func (*Publishing) Read

func (p *Publishing) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Publishing) String

func (p *Publishing) String() string

func (*Publishing) Write

func (p *Publishing) Write(ctx context.Context, oprot thrift.TProtocol) error

type QueryFormat

type QueryFormat int64

Every search query is specified as a sequence of characters. Currently, only the USER query format is supported.

const (
	QueryFormat_USER QueryFormat = 1
	QueryFormat_SEXP QueryFormat = 2
)

func QueryFormatFromString

func QueryFormatFromString(s string) (QueryFormat, error)

func (QueryFormat) String

func (p QueryFormat) String() string

type ReminderEmailConfig

type ReminderEmailConfig int64

An enumeration describing the configuration state related to receiving reminder e-mails from the service. Reminder e-mails summarize notes based on their Note.attributes.reminderTime values.

DO_NOT_SEND: The user has selected to not receive reminder e-mail.

SEND_DAILY_EMAIL: The user has selected to receive reminder e-mail for those

days when there is a reminder.
const (
	ReminderEmailConfig_DO_NOT_SEND      ReminderEmailConfig = 1
	ReminderEmailConfig_SEND_DAILY_EMAIL ReminderEmailConfig = 2
)

func ReminderEmailConfigFromString

func ReminderEmailConfigFromString(s string) (ReminderEmailConfig, error)

func (ReminderEmailConfig) String

func (p ReminderEmailConfig) String() string

type Resource

type Resource struct {
	Guid        Guid   `thrift:"guid,1"`
	NoteGuid    Guid   `thrift:"noteGuid,2"`
	Data        *Data  `thrift:"data,3"`
	Mime        string `thrift:"mime,4"`
	Width       int16  `thrift:"width,5"`
	Height      int16  `thrift:"height,6"`
	Duration    int16  `thrift:"duration,7"`
	Active      bool   `thrift:"active,8"`
	Recognition *Data  `thrift:"recognition,9"`
	// unused field # 10
	Attributes        *ResourceAttributes `thrift:"attributes,11"`
	UpdateSequenceNum int32               `thrift:"updateSequenceNum,12"`
	AlternateData     *Data               `thrift:"alternateData,13"`
}

func NewResource

func NewResource() *Resource

func (*Resource) IsSetActive

func (p *Resource) IsSetActive() bool

func (*Resource) IsSetAlternateData

func (p *Resource) IsSetAlternateData() bool

func (*Resource) IsSetAttributes

func (p *Resource) IsSetAttributes() bool

func (*Resource) IsSetData

func (p *Resource) IsSetData() bool

func (*Resource) IsSetDuration

func (p *Resource) IsSetDuration() bool

func (*Resource) IsSetGuid

func (p *Resource) IsSetGuid() bool

func (*Resource) IsSetHeight

func (p *Resource) IsSetHeight() bool

func (*Resource) IsSetMime

func (p *Resource) IsSetMime() bool

func (*Resource) IsSetNoteGuid

func (p *Resource) IsSetNoteGuid() bool

func (*Resource) IsSetRecognition

func (p *Resource) IsSetRecognition() bool

func (*Resource) IsSetUpdateSequenceNum

func (p *Resource) IsSetUpdateSequenceNum() bool

func (*Resource) IsSetWidth

func (p *Resource) IsSetWidth() bool

func (*Resource) Read

func (p *Resource) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Resource) String

func (p *Resource) String() string

func (*Resource) Write

func (p *Resource) Write(ctx context.Context, oprot thrift.TProtocol) error

type ResourceAttributes

type ResourceAttributes struct {
	SourceURL       string    `thrift:"sourceURL,1"`
	Timestamp       Timestamp `thrift:"timestamp,2"`
	Latitude        float64   `thrift:"latitude,3"`
	Longitude       float64   `thrift:"longitude,4"`
	Altitude        float64   `thrift:"altitude,5"`
	CameraMake      string    `thrift:"cameraMake,6"`
	CameraModel     string    `thrift:"cameraModel,7"`
	ClientWillIndex bool      `thrift:"clientWillIndex,8"`
	RecoType        string    `thrift:"recoType,9"`
	FileName        string    `thrift:"fileName,10"`
	Attachment      bool      `thrift:"attachment,11"`
	ApplicationData *LazyMap  `thrift:"applicationData,12"`
}

func NewResourceAttributes

func NewResourceAttributes() *ResourceAttributes

func (*ResourceAttributes) IsSetAltitude

func (p *ResourceAttributes) IsSetAltitude() bool

func (*ResourceAttributes) IsSetApplicationData

func (p *ResourceAttributes) IsSetApplicationData() bool

func (*ResourceAttributes) IsSetAttachment

func (p *ResourceAttributes) IsSetAttachment() bool

func (*ResourceAttributes) IsSetCameraMake

func (p *ResourceAttributes) IsSetCameraMake() bool

func (*ResourceAttributes) IsSetCameraModel

func (p *ResourceAttributes) IsSetCameraModel() bool

func (*ResourceAttributes) IsSetClientWillIndex

func (p *ResourceAttributes) IsSetClientWillIndex() bool

func (*ResourceAttributes) IsSetFileName

func (p *ResourceAttributes) IsSetFileName() bool

func (*ResourceAttributes) IsSetLatitude

func (p *ResourceAttributes) IsSetLatitude() bool

func (*ResourceAttributes) IsSetLongitude

func (p *ResourceAttributes) IsSetLongitude() bool

func (*ResourceAttributes) IsSetRecoType

func (p *ResourceAttributes) IsSetRecoType() bool

func (*ResourceAttributes) IsSetSourceURL

func (p *ResourceAttributes) IsSetSourceURL() bool

func (*ResourceAttributes) IsSetTimestamp

func (p *ResourceAttributes) IsSetTimestamp() bool

func (*ResourceAttributes) Read

func (*ResourceAttributes) String

func (p *ResourceAttributes) String() string

func (*ResourceAttributes) Write

func (p *ResourceAttributes) Write(ctx context.Context, oprot thrift.TProtocol) error

type SavedSearch

type SavedSearch struct {
	Guid              Guid              `thrift:"guid,1"`
	Name              string            `thrift:"name,2"`
	Query             string            `thrift:"query,3"`
	Format            QueryFormat       `thrift:"format,4"`
	UpdateSequenceNum int32             `thrift:"updateSequenceNum,5"`
	Scope             *SavedSearchScope `thrift:"scope,6"`
}

func NewSavedSearch

func NewSavedSearch() *SavedSearch

func (*SavedSearch) IsSetFormat

func (p *SavedSearch) IsSetFormat() bool

func (*SavedSearch) IsSetGuid

func (p *SavedSearch) IsSetGuid() bool

func (*SavedSearch) IsSetName

func (p *SavedSearch) IsSetName() bool

func (*SavedSearch) IsSetQuery

func (p *SavedSearch) IsSetQuery() bool

func (*SavedSearch) IsSetScope

func (p *SavedSearch) IsSetScope() bool

func (*SavedSearch) IsSetUpdateSequenceNum

func (p *SavedSearch) IsSetUpdateSequenceNum() bool

func (*SavedSearch) Read

func (p *SavedSearch) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*SavedSearch) String

func (p *SavedSearch) String() string

func (*SavedSearch) Write

func (p *SavedSearch) Write(ctx context.Context, oprot thrift.TProtocol) error

type SavedSearchScope

type SavedSearchScope struct {
	IncludeAccount                 bool `thrift:"includeAccount,1"`
	IncludePersonalLinkedNotebooks bool `thrift:"includePersonalLinkedNotebooks,2"`
	IncludeBusinessLinkedNotebooks bool `thrift:"includeBusinessLinkedNotebooks,3"`
}

func NewSavedSearchScope

func NewSavedSearchScope() *SavedSearchScope

func (*SavedSearchScope) IsSetIncludeAccount

func (p *SavedSearchScope) IsSetIncludeAccount() bool

func (*SavedSearchScope) IsSetIncludeBusinessLinkedNotebooks

func (p *SavedSearchScope) IsSetIncludeBusinessLinkedNotebooks() bool

func (*SavedSearchScope) IsSetIncludePersonalLinkedNotebooks

func (p *SavedSearchScope) IsSetIncludePersonalLinkedNotebooks() bool

func (*SavedSearchScope) Read

func (p *SavedSearchScope) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*SavedSearchScope) String

func (p *SavedSearchScope) String() string

func (*SavedSearchScope) Write

func (p *SavedSearchScope) Write(ctx context.Context, oprot thrift.TProtocol) error

type SharedNotebook

type SharedNotebook struct {
	Id                 int64                            `thrift:"id,1"`
	UserId             int32                            `thrift:"userId,2"`
	NotebookGuid       string                           `thrift:"notebookGuid,3"`
	Email              string                           `thrift:"email,4"`
	NotebookModifiable bool                             `thrift:"notebookModifiable,5"`
	RequireLogin       bool                             `thrift:"requireLogin,6"`
	ServiceCreated     Timestamp                        `thrift:"serviceCreated,7"`
	ShareKey           string                           `thrift:"shareKey,8"`
	Username           string                           `thrift:"username,9"`
	ServiceUpdated     Timestamp                        `thrift:"serviceUpdated,10"`
	Privilege          SharedNotebookPrivilegeLevel     `thrift:"privilege,11"`
	AllowPreview       bool                             `thrift:"allowPreview,12"`
	RecipientSettings  *SharedNotebookRecipientSettings `thrift:"recipientSettings,13"`
}

func NewSharedNotebook

func NewSharedNotebook() *SharedNotebook

func (*SharedNotebook) IsSetAllowPreview

func (p *SharedNotebook) IsSetAllowPreview() bool

func (*SharedNotebook) IsSetEmail

func (p *SharedNotebook) IsSetEmail() bool

func (*SharedNotebook) IsSetId

func (p *SharedNotebook) IsSetId() bool

func (*SharedNotebook) IsSetNotebookGuid

func (p *SharedNotebook) IsSetNotebookGuid() bool

func (*SharedNotebook) IsSetNotebookModifiable

func (p *SharedNotebook) IsSetNotebookModifiable() bool

func (*SharedNotebook) IsSetPrivilege

func (p *SharedNotebook) IsSetPrivilege() bool

func (*SharedNotebook) IsSetRecipientSettings

func (p *SharedNotebook) IsSetRecipientSettings() bool

func (*SharedNotebook) IsSetRequireLogin

func (p *SharedNotebook) IsSetRequireLogin() bool

func (*SharedNotebook) IsSetServiceCreated

func (p *SharedNotebook) IsSetServiceCreated() bool

func (*SharedNotebook) IsSetServiceUpdated

func (p *SharedNotebook) IsSetServiceUpdated() bool

func (*SharedNotebook) IsSetShareKey

func (p *SharedNotebook) IsSetShareKey() bool

func (*SharedNotebook) IsSetUserId

func (p *SharedNotebook) IsSetUserId() bool

func (*SharedNotebook) IsSetUsername

func (p *SharedNotebook) IsSetUsername() bool

func (*SharedNotebook) Read

func (p *SharedNotebook) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*SharedNotebook) String

func (p *SharedNotebook) String() string

func (*SharedNotebook) Write

func (p *SharedNotebook) Write(ctx context.Context, oprot thrift.TProtocol) error

type SharedNotebookInstanceRestrictions

type SharedNotebookInstanceRestrictions int64

An enumeration describing restrictions on the domain of shared notebook instances that are valid for a given operation, as used, for example, in NotebookRestrictions.

ONLY_JOINED_OR_PREVIEW: The domain consists of shared notebooks that

"belong" to the recipient or still available for preview by any recipient.
Shared notebooks that the recipient has joined (the username has already been
assigned to our user) are in the domain.  Additionally, shared notebooks
that allow preview and have not yet been joined are in the domain.

NO_SHARED_NOTEBOOKS: No shared notebooks are applicable to the operation.

const (
	SharedNotebookInstanceRestrictions_ONLY_JOINED_OR_PREVIEW SharedNotebookInstanceRestrictions = 1
	SharedNotebookInstanceRestrictions_NO_SHARED_NOTEBOOKS    SharedNotebookInstanceRestrictions = 2
)

func SharedNotebookInstanceRestrictionsFromString

func SharedNotebookInstanceRestrictionsFromString(s string) (SharedNotebookInstanceRestrictions, error)

func (SharedNotebookInstanceRestrictions) String

type SharedNotebookPrivilegeLevel

type SharedNotebookPrivilegeLevel int64

Privilege levels for accessing shared notebooks.

READ_NOTEBOOK: Recipient is able to read the contents of the shared notebook

but does to have access to information about other recipients of the
notebook or the activity stream information.

MODIFY_NOTEBOOK_PLUS_ACTIVITY: Recipient has rights to read and modify the contents

of the shared notebook, including the right to move notes to the trash and to create
notes in the notebook.  The recipient can also access information about other
recipients and the activity stream.

READ_NOTEBOOK_PLUS_ACTIVITY: Recipient has READ_NOTEBOOK rights and can also

access information about other recipients and the activity stream.

GROUP: If the user belongs to a group, such as a Business, that has a defined

privilege level, use the privilege level of the group as the privilege for
the individual.

FULL_ACCESS: Recipient has full rights to the shared notebook and recipient lists,

including privilege to revoke and create invitations and to change privilege
levels on invitations for individuals.  This privilege level is primarily intended
for use by individual shares.

BUSINESS_FULL_ACCESS: Intended for use with Business Notebooks, a BUSINESS_FULL_ACCESS level is FULL_ACCESS with the additional rights to change how the notebook will appear in the business library, including the rights to publish and unpublish the notebook from the library.

const (
	SharedNotebookPrivilegeLevel_READ_NOTEBOOK                 SharedNotebookPrivilegeLevel = 0
	SharedNotebookPrivilegeLevel_MODIFY_NOTEBOOK_PLUS_ACTIVITY SharedNotebookPrivilegeLevel = 1
	SharedNotebookPrivilegeLevel_READ_NOTEBOOK_PLUS_ACTIVITY   SharedNotebookPrivilegeLevel = 2
	SharedNotebookPrivilegeLevel_GROUP                         SharedNotebookPrivilegeLevel = 3
	SharedNotebookPrivilegeLevel_FULL_ACCESS                   SharedNotebookPrivilegeLevel = 4
	SharedNotebookPrivilegeLevel_BUSINESS_FULL_ACCESS          SharedNotebookPrivilegeLevel = 5
)

func SharedNotebookPrivilegeLevelFromString

func SharedNotebookPrivilegeLevelFromString(s string) (SharedNotebookPrivilegeLevel, error)

func (SharedNotebookPrivilegeLevel) String

type SharedNotebookRecipientSettings

type SharedNotebookRecipientSettings struct {
	ReminderNotifyEmail bool `thrift:"reminderNotifyEmail,1"`
	ReminderNotifyInApp bool `thrift:"reminderNotifyInApp,2"`
}

func NewSharedNotebookRecipientSettings

func NewSharedNotebookRecipientSettings() *SharedNotebookRecipientSettings

func (*SharedNotebookRecipientSettings) IsSetReminderNotifyEmail

func (p *SharedNotebookRecipientSettings) IsSetReminderNotifyEmail() bool

func (*SharedNotebookRecipientSettings) IsSetReminderNotifyInApp

func (p *SharedNotebookRecipientSettings) IsSetReminderNotifyInApp() bool

func (*SharedNotebookRecipientSettings) Read

func (*SharedNotebookRecipientSettings) String

func (*SharedNotebookRecipientSettings) Write

type SponsoredGroupRole

type SponsoredGroupRole int64

Enumeration of the roles that a User can have within a sponsored group.

GROUP_MEMBER: The user is a member of the group with no special privileges.

GROUP_ADMIN: The user is an administrator within the group.

GROUP_OWNER: The user is the owner of the group.

const (
	SponsoredGroupRole_GROUP_MEMBER SponsoredGroupRole = 1
	SponsoredGroupRole_GROUP_ADMIN  SponsoredGroupRole = 2
	SponsoredGroupRole_GROUP_OWNER  SponsoredGroupRole = 3
)

func SponsoredGroupRoleFromString

func SponsoredGroupRoleFromString(s string) (SponsoredGroupRole, error)

func (SponsoredGroupRole) String

func (p SponsoredGroupRole) String() string

type Tag

type Tag struct {
	Guid              Guid   `thrift:"guid,1"`
	Name              string `thrift:"name,2"`
	ParentGuid        Guid   `thrift:"parentGuid,3"`
	UpdateSequenceNum int32  `thrift:"updateSequenceNum,4"`
}

func NewTag

func NewTag() *Tag

func (*Tag) IsSetGuid

func (p *Tag) IsSetGuid() bool

func (*Tag) IsSetName

func (p *Tag) IsSetName() bool

func (*Tag) IsSetParentGuid

func (p *Tag) IsSetParentGuid() bool

func (*Tag) IsSetUpdateSequenceNum

func (p *Tag) IsSetUpdateSequenceNum() bool

func (*Tag) Read

func (p *Tag) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Tag) String

func (p *Tag) String() string

func (*Tag) Write

func (p *Tag) Write(ctx context.Context, oprot thrift.TProtocol) error

type Timestamp

type Timestamp int64

An Evernote Timestamp is the date and time of an event in UTC time. This is expressed as a specific number of milliseconds since the standard base "epoch" of:

January 1, 1970, 00:00:00 GMT

NOTE: the time is expressed at the resolution of milliseconds, but the value is only precise to the level of seconds. This means that the last three (decimal) digits of the timestamp will be '000'.

The Thrift IDL specification does not include a native date/time type, so this value is used instead.

The service will accept timestamp values (e.g. for Note created and update times) between 1000-01-01 and 9999-12-31

type User

type User struct {
	Id       UserID `thrift:"id,1"`
	Username string `thrift:"username,2"`
	Email    string `thrift:"email,3"`
	Name     string `thrift:"name,4"`
	// unused field # 5
	Timezone  string         `thrift:"timezone,6"`
	Privilege PrivilegeLevel `thrift:"privilege,7"`
	// unused field # 8
	Created Timestamp `thrift:"created,9"`
	Updated Timestamp `thrift:"updated,10"`
	Deleted Timestamp `thrift:"deleted,11"`
	// unused field # 12
	Active           bool              `thrift:"active,13"`
	ShardId          string            `thrift:"shardId,14"`
	Attributes       *UserAttributes   `thrift:"attributes,15"`
	Accounting       *Accounting       `thrift:"accounting,16"`
	PremiumInfo      *PremiumInfo      `thrift:"premiumInfo,17"`
	BusinessUserInfo *BusinessUserInfo `thrift:"businessUserInfo,18"`
}

func NewUser

func NewUser() *User

func (*User) IsSetAccounting

func (p *User) IsSetAccounting() bool

func (*User) IsSetActive

func (p *User) IsSetActive() bool

func (*User) IsSetAttributes

func (p *User) IsSetAttributes() bool

func (*User) IsSetBusinessUserInfo

func (p *User) IsSetBusinessUserInfo() bool

func (*User) IsSetCreated

func (p *User) IsSetCreated() bool

func (*User) IsSetDeleted

func (p *User) IsSetDeleted() bool

func (*User) IsSetEmail

func (p *User) IsSetEmail() bool

func (*User) IsSetId

func (p *User) IsSetId() bool

func (*User) IsSetName

func (p *User) IsSetName() bool

func (*User) IsSetPremiumInfo

func (p *User) IsSetPremiumInfo() bool

func (*User) IsSetPrivilege

func (p *User) IsSetPrivilege() bool

func (*User) IsSetShardId

func (p *User) IsSetShardId() bool

func (*User) IsSetTimezone

func (p *User) IsSetTimezone() bool

func (*User) IsSetUpdated

func (p *User) IsSetUpdated() bool

func (*User) IsSetUsername

func (p *User) IsSetUsername() bool

func (*User) Read

func (p *User) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*User) String

func (p *User) String() string

func (*User) Write

func (p *User) Write(ctx context.Context, oprot thrift.TProtocol) error

type UserAttributes

type UserAttributes struct {
	DefaultLocationName   string   `thrift:"defaultLocationName,1"`
	DefaultLatitude       float64  `thrift:"defaultLatitude,2"`
	DefaultLongitude      float64  `thrift:"defaultLongitude,3"`
	Preactivation         bool     `thrift:"preactivation,4"`
	ViewedPromotions      []string `thrift:"viewedPromotions,5"`
	IncomingEmailAddress  string   `thrift:"incomingEmailAddress,6"`
	RecentMailedAddresses []string `thrift:"recentMailedAddresses,7"`
	// unused field # 8
	Comments string `thrift:"comments,9"`
	// unused field # 10
	DateAgreedToTermsOfService Timestamp `thrift:"dateAgreedToTermsOfService,11"`
	MaxReferrals               int32     `thrift:"maxReferrals,12"`
	ReferralCount              int32     `thrift:"referralCount,13"`
	RefererCode                string    `thrift:"refererCode,14"`
	SentEmailDate              Timestamp `thrift:"sentEmailDate,15"`
	SentEmailCount             int32     `thrift:"sentEmailCount,16"`
	DailyEmailLimit            int32     `thrift:"dailyEmailLimit,17"`
	EmailOptOutDate            Timestamp `thrift:"emailOptOutDate,18"`
	PartnerEmailOptInDate      Timestamp `thrift:"partnerEmailOptInDate,19"`
	PreferredLanguage          string    `thrift:"preferredLanguage,20"`
	PreferredCountry           string    `thrift:"preferredCountry,21"`
	ClipFullPage               bool      `thrift:"clipFullPage,22"`
	TwitterUserName            string    `thrift:"twitterUserName,23"`
	TwitterId                  string    `thrift:"twitterId,24"`
	GroupName                  string    `thrift:"groupName,25"`
	RecognitionLanguage        string    `thrift:"recognitionLanguage,26"`
	// unused field # 27
	ReferralProof       string              `thrift:"referralProof,28"`
	EducationalDiscount bool                `thrift:"educationalDiscount,29"`
	BusinessAddress     string              `thrift:"businessAddress,30"`
	HideSponsorBilling  bool                `thrift:"hideSponsorBilling,31"`
	TaxExempt           bool                `thrift:"taxExempt,32"`
	UseEmailAutoFiling  bool                `thrift:"useEmailAutoFiling,33"`
	ReminderEmailConfig ReminderEmailConfig `thrift:"reminderEmailConfig,34"`
}

func NewUserAttributes

func NewUserAttributes() *UserAttributes

func (*UserAttributes) IsSetBusinessAddress

func (p *UserAttributes) IsSetBusinessAddress() bool

func (*UserAttributes) IsSetClipFullPage

func (p *UserAttributes) IsSetClipFullPage() bool

func (*UserAttributes) IsSetComments

func (p *UserAttributes) IsSetComments() bool

func (*UserAttributes) IsSetDailyEmailLimit

func (p *UserAttributes) IsSetDailyEmailLimit() bool

func (*UserAttributes) IsSetDateAgreedToTermsOfService

func (p *UserAttributes) IsSetDateAgreedToTermsOfService() bool

func (*UserAttributes) IsSetDefaultLatitude

func (p *UserAttributes) IsSetDefaultLatitude() bool

func (*UserAttributes) IsSetDefaultLocationName

func (p *UserAttributes) IsSetDefaultLocationName() bool

func (*UserAttributes) IsSetDefaultLongitude

func (p *UserAttributes) IsSetDefaultLongitude() bool

func (*UserAttributes) IsSetEducationalDiscount

func (p *UserAttributes) IsSetEducationalDiscount() bool

func (*UserAttributes) IsSetEmailOptOutDate

func (p *UserAttributes) IsSetEmailOptOutDate() bool

func (*UserAttributes) IsSetGroupName

func (p *UserAttributes) IsSetGroupName() bool

func (*UserAttributes) IsSetHideSponsorBilling

func (p *UserAttributes) IsSetHideSponsorBilling() bool

func (*UserAttributes) IsSetIncomingEmailAddress

func (p *UserAttributes) IsSetIncomingEmailAddress() bool

func (*UserAttributes) IsSetMaxReferrals

func (p *UserAttributes) IsSetMaxReferrals() bool

func (*UserAttributes) IsSetPartnerEmailOptInDate

func (p *UserAttributes) IsSetPartnerEmailOptInDate() bool

func (*UserAttributes) IsSetPreactivation

func (p *UserAttributes) IsSetPreactivation() bool

func (*UserAttributes) IsSetPreferredCountry

func (p *UserAttributes) IsSetPreferredCountry() bool

func (*UserAttributes) IsSetPreferredLanguage

func (p *UserAttributes) IsSetPreferredLanguage() bool

func (*UserAttributes) IsSetRecentMailedAddresses

func (p *UserAttributes) IsSetRecentMailedAddresses() bool

func (*UserAttributes) IsSetRecognitionLanguage

func (p *UserAttributes) IsSetRecognitionLanguage() bool

func (*UserAttributes) IsSetRefererCode

func (p *UserAttributes) IsSetRefererCode() bool

func (*UserAttributes) IsSetReferralCount

func (p *UserAttributes) IsSetReferralCount() bool

func (*UserAttributes) IsSetReferralProof

func (p *UserAttributes) IsSetReferralProof() bool

func (*UserAttributes) IsSetReminderEmailConfig

func (p *UserAttributes) IsSetReminderEmailConfig() bool

func (*UserAttributes) IsSetSentEmailCount

func (p *UserAttributes) IsSetSentEmailCount() bool

func (*UserAttributes) IsSetSentEmailDate

func (p *UserAttributes) IsSetSentEmailDate() bool

func (*UserAttributes) IsSetTaxExempt

func (p *UserAttributes) IsSetTaxExempt() bool

func (*UserAttributes) IsSetTwitterId

func (p *UserAttributes) IsSetTwitterId() bool

func (*UserAttributes) IsSetTwitterUserName

func (p *UserAttributes) IsSetTwitterUserName() bool

func (*UserAttributes) IsSetUseEmailAutoFiling

func (p *UserAttributes) IsSetUseEmailAutoFiling() bool

func (*UserAttributes) IsSetViewedPromotions

func (p *UserAttributes) IsSetViewedPromotions() bool

func (*UserAttributes) Read

func (p *UserAttributes) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*UserAttributes) String

func (p *UserAttributes) String() string

func (*UserAttributes) Write

func (p *UserAttributes) Write(ctx context.Context, oprot thrift.TProtocol) error

type UserID

type UserID int32

Every Evernote account is assigned a unique numeric identifier which will not change for the life of the account. This is independent of the (string-based) "username" which is known by the user for login purposes. The user should have no reason to know their UserID.

Jump to

Keyboard shortcuts

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