Variables
PollAnswer
PollAnswer: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): PollAnswer
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: PollAnswer, writer?: Writer): Writer
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { answerId?: string; text?: string }): PollAnswer
-
Parameters
-
object: { answerId?: string; text?: string }
-
Optional answerId?: string
-
Optional text?: string
-
toJSON: function
-
Parameters
Returns unknown
PollData
PollData: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): PollData
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: PollData, writer?: Writer): Writer
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { allowsAnswerEdits?: boolean; allowsMultipleAnswers?: boolean; endDate?: Date; providedAnswers?: { answerId?: string | undefined; text?: string | undefined; }[]; question?: string }): PollData
-
Parameters
-
object: { allowsAnswerEdits?: boolean; allowsMultipleAnswers?: boolean; endDate?: Date; providedAnswers?: { answerId?: string | undefined; text?: string | undefined; }[]; question?: string }
-
Optional allowsAnswerEdits?: boolean
-
Optional allowsMultipleAnswers?: boolean
-
Optional endDate?: Date
-
Optional providedAnswers?: { answerId?: string | undefined; text?: string | undefined; }[]
-
Optional question?: string
-
toJSON: function
-
Parameters
Returns unknown
UserAnswer
UserAnswer: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): UserAnswer
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: UserAnswer, writer?: Writer): Writer
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { answers?: string[]; postId?: string; user?: string }): UserAnswer
-
Parameters
-
object: { answers?: string[]; postId?: string; user?: string }
-
Optional answers?: string[]
-
Optional postId?: string
-
Optional user?: string
-
toJSON: function
-
Parameters
Returns unknown
Const protobufPackage
protobufPackage: "desmos.posts.v1beta1" = 'desmos.posts.v1beta1'