melon-love/elm-gab-api/9.0.0

NOTE: the latest version is 11.0.0

Gab.EncodeDecode

Encoders and decoders for the types.

ActivityLog

activityLogDecoder : Decoder ActivityLog

Decode an ActivityLog.

activityLogEncoder : ActivityLog -> Value

Encode an ActivityLog.

activityLogListDecoder : Decoder ActivityLogList

Decode an ActivityLogList.

activityLogListEncoder : ActivityLogList -> Value

Encode an ActivityLogList.

User

userDecoder : Decoder User

Decode a User.

userEncoder : User -> Value

Encode a User.

userListDecoder : Decoder UserList

Decode a list of Users.

userListEncoder : UserList -> Value

Encode a list of Users.

Post

postDecoder : Decoder Post

Decode a Post.

postEncoder : Post -> Value

Encode a Post.

postListDecoder : Decoder PostList

Decode a PostList.

postListEncoder : PostList -> Value

Encode a PostList.

Create a new post

postFormEncoder : PostForm -> Value

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

mediaIdDecoder : Decoder String

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

mediaIdEncoder : String -> Value

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

Successful return from operations with nothing more to report.

successDecoder : Decoder Success

Decode a successful completion object.

Returned from operations with nothing else of use to report.

successEncoder : Success -> Value

Encode a successful completion object.

Returned from operations with nothing else of use to report.

Notifications

Decode a NotificationType.

Encode a NotificationType.

notificationsLogDecoder : Decoder NotificationsLog

Decode a NotificationsLog.

notificationsLogEncoder : NotificationsLog -> Value

Encode a NotificationsLog.

notificationDecoder : Decoder Notification

Decode a Notification.

notificationEncoder : Notification -> Value

Encode a Notification.

Persistent tokens

savedTokenEncoder : SavedToken -> Value

Encode a persistent token.

savedTokenDecoder : Decoder SavedToken

Decode a persistent token.