melon-love / elm-gab-api / Gab.EncodeDecode

Encoders and decoders for the types.

ActivityLog

activityLogDecoder : Json.Decode.Decoder Gab.Types.ActivityLog

Decode an ActivityLog.

activityLogEncoder : Gab.Types.ActivityLog -> Json.Encode.Value

Encode an ActivityLog.

activityLogListDecoder : Json.Decode.Decoder Gab.Types.ActivityLogList

Decode an ActivityLogList.

activityLogListEncoder : Gab.Types.ActivityLogList -> Json.Encode.Value

Encode an ActivityLogList.

User

userDecoder : Json.Decode.Decoder Gab.Types.User

Decode a User.

userEncoder : Gab.Types.User -> Json.Encode.Value

Encode a User.

userListDecoder : Json.Decode.Decoder Gab.Types.UserList

Decode a list of Users.

userListEncoder : Gab.Types.UserList -> Json.Encode.Value

Encode a list of Users.

Post

postDecoder : Json.Decode.Decoder Gab.Types.Post

Decode a Post.

postEncoder : Gab.Types.Post -> Json.Encode.Value

Encode a Post.

postListDecoder : Json.Decode.Decoder Gab.Types.PostList

Decode a PostList.

postListEncoder : Gab.Types.PostList -> Json.Encode.Value

Encode a PostList.

Create a new post

postFormEncoder : Gab.Types.PostForm -> Json.Encode.Value

Encode a PostForm. No decoder ever used, so none defined.

mediaIdDecoder : Json.Decode.Decoder String

Decode the ID that comes back from a media-attachments/xxx post.

mediaIdEncoder : String -> Json.Encode.Value

Encode the ID that comes back from a media-attachments/xxx post.

Successful return from operations with nothing more to report.

successDecoder : Json.Decode.Decoder Gab.Types.Success

Decode a successful completion object.

Returned from operations with nothing else of use to report.

successEncoder : Gab.Types.Success -> Json.Encode.Value

Encode a successful completion object.

Returned from operations with nothing else of use to report.

Notifications

notificationTypeDecoder : Json.Decode.Decoder Gab.Types.NotificationType

Decode a NotificationType.

notificationTypeEncoder : Gab.Types.NotificationType -> Json.Encode.Value

Encode a NotificationType.

notificationsLogDecoder : Json.Decode.Decoder Gab.Types.NotificationsLog

Decode a NotificationsLog.

notificationsLogEncoder : Gab.Types.NotificationsLog -> Json.Encode.Value

Encode a NotificationsLog.

notificationDecoder : Json.Decode.Decoder Gab.Types.Notification

Decode a Notification.

notificationEncoder : Gab.Types.Notification -> Json.Encode.Value

Encode a Notification.

Persistent tokens

savedTokenEncoder : Gab.Types.SavedToken -> Json.Encode.Value

Encode a persistent token.

savedTokenDecoder : Json.Decode.Decoder Gab.Types.SavedToken

Decode a persistent token.