package erm_xmpp

  1. Overview
  2. Docs
type item = {
  1. actor : JID.t option;
  2. continue : string option;
  3. reason : string option;
  4. jid : JID.t option;
  5. nick : string option;
  6. affiliation : affiliation option;
  7. role : role option;
}
type data = {
  1. decline : (JID.t option * JID.t option * string option) option;
  2. destroy : (JID.t option * string option) option;
  3. invite : (JID.t option * JID.t option * string option) list;
  4. item : item option;
  5. password : string option;
  6. status : int list;
}
val encode_decline : ?jid_from:JID.t -> ?jid_to:JID.t -> ?reason:Xml.cdata -> unit -> Xml.element
val decode_decline : Xml.element -> JID.t option * JID.t option * string option
val encode_destroy : ?jid:JID.t -> ?reason:Xml.cdata -> unit -> Xml.element
val decode_destroy : Xml.element -> JID.t option * string option
val encode_invite : ?jid_from:JID.t -> ?jid_to:JID.t -> ?reason:Xml.cdata -> unit -> Xml.element
val decode_invite : Xml.element -> JID.t option * JID.t option * string option
val encode_item : ?actor:JID.t -> ?reason:Xml.cdata -> ?continue:Xml.cdata -> ?affiliation:affiliation -> ?jid:JID.t -> ?nick:Xml.cdata -> ?role:role -> unit -> Xml.element
val decode_item : Xml.element -> item
val encode_password : Xml.cdata -> Xml.element
val decode_password : Xml.element -> string
val encode_status : int -> Xml.element
val decode_status : Xml.element -> int
val encode : data -> Xml.element
val decode : Xml.element -> data
OCaml

Innovation. Community. Security.