Module Os_userSource

include module type of struct include Os.User end

Type alias to Types.User.id to allow to use User.id.

Sourceval id_of_json : Deriving_Json_lexer.lexbuf -> id
Sourceval id_to_json : Buffer.t -> id -> unit
Sourceval id_json : id Deriving_Json.t
Sourcetype t = Os.Types.User.t = {
  1. userid : id;
  2. fn : string;
  3. ln : string;
  4. avatar : string option;
  5. language : string option;
}

Type alias to Types.User.t to allow to use User.t.

Sourceval of_json : Deriving_Json_lexer.lexbuf -> t
Sourceval to_json : Buffer.t -> t -> unit
Sourceval json : t Deriving_Json.t
Sourceval userid_of_user : Os.Types.User.t -> Os.Types.User.id

userid_of_user user returns the userid of the user user.

Sourceval firstname_of_user : Os.Types.User.t -> string

firstname_of_user user returns the first name of the user user

Sourceval lastname_of_user : Os.Types.User.t -> string

lastname_of_user user returns the last name of the user user

Sourceval avatar_of_user : Os.Types.User.t -> string option

avatar_of_user user returns the avatar of the user user as Some avatar_uri. It returns None if the user user has no avatar.

Sourceval avatar_uri_of_avatar : ?absolute_path:bool -> string -> Eliom.Content.Xml.uri

avatar_uri_of_avatar ?absolute_path avatar returns the URI (absolute or relative) depending on the value of absolute_path) of the avatar avatar.

Sourceval avatar_uri_of_user : ?absolute_path:bool -> Os.Types.User.t -> Eliom.Content.Xml.uri option

avatar_uri_of_user user returns the avatar URI (absolute or relative) depending on the value of absolute_path) of the avatar of the user user. It returns None is the user user has no avatar.

Sourceval language_of_user : Os.Types.User.t -> string option

language_of_user user returns the language of the user user

Sourceval fullname_of_user : Os.Types.User.t -> string

Retrieve the full name of user (which is the concatenation of the first name and last name).

Sourceval is_complete : Os.Types.User.t -> bool

is_complete user returns true if the first name and the last name of Types.user have been completed yet.