Variables
Attachment
Attachment: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): Attachment
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: Attachment, writer?: Writer): Writer
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { mimeType?: string; tags?: string[]; uri?: string }): Attachment
-
Parameters
-
object: { mimeType?: string; tags?: string[]; uri?: string }
-
Optional mimeType?: string
-
Optional tags?: string[]
-
Optional uri?: string
-
toJSON: function
-
Parameters
Returns unknown
Attribute
Attribute: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): Attribute
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: Attribute, writer?: Writer): Writer
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { key?: string; value?: string }): Attribute
-
Parameters
-
object: { key?: string; value?: string }
-
Optional key?: string
-
Optional value?: string
-
toJSON: function
-
Parameters
Returns unknown
Post
Post: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): Post
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: Post, writer?: Writer): Writer
-
Parameters
-
message: Post
-
writer: Writer = ...
Returns Writer
-
fromJSON: function
- fromJSON(object: any): Post
-
fromPartial: function
- fromPartial(object: { additionalAttributes?: { key?: string | undefined; value?: string | undefined; }[]; attachments?: { uri?: string | undefined; mimeType?: string | undefined; tags?: string[] | undefined; }[]; commentsState?: CommentsState; created?: Date; creator?: string; lastEdited?: Date; message?: string; parentId?: string; pollData?: { question?: string | undefined; providedAnswers?: { answerId?: string | undefined; text?: string | undefined; }[] | undefined; endDate?: Date | undefined; allowsMultipleAnswers?: boolean | undefined; allowsAnswerEdits?: boolean | undefined; }; postId?: string; subspace?: string }): Post
-
Parameters
-
object: { additionalAttributes?: { key?: string | undefined; value?: string | undefined; }[]; attachments?: { uri?: string | undefined; mimeType?: string | undefined; tags?: string[] | undefined; }[]; commentsState?: CommentsState; created?: Date; creator?: string; lastEdited?: Date; message?: string; parentId?: string; pollData?: { question?: string | undefined; providedAnswers?: { answerId?: string | undefined; text?: string | undefined; }[] | undefined; endDate?: Date | undefined; allowsMultipleAnswers?: boolean | undefined; allowsAnswerEdits?: boolean | undefined; }; postId?: string; subspace?: string }
-
Optional additionalAttributes?: { key?: string | undefined; value?: string | undefined; }[]
-
Optional attachments?: { uri?: string | undefined; mimeType?: string | undefined; tags?: string[] | undefined; }[]
-
-
Optional created?: Date
-
Optional creator?: string
-
Optional lastEdited?: Date
-
Optional message?: string
-
Optional parentId?: string
-
Optional pollData?: { question?: string | undefined; providedAnswers?: { answerId?: string | undefined; text?: string | undefined; }[] | undefined; endDate?: Date | undefined; allowsMultipleAnswers?: boolean | undefined; allowsAnswerEdits?: boolean | undefined; }
-
Optional postId?: string
-
Optional subspace?: string
-
toJSON: function
- toJSON(message: Post): unknown
-
Parameters
Returns unknown
Const protobufPackage
protobufPackage: "desmos.posts.v1beta1" = 'desmos.posts.v1beta1'