Add initial implementatin of client /sync endpoint without 'since'
parameter
This commit is contained in:
parent
5f0fd7fabe
commit
7a1bf01869
7 changed files with 121 additions and 12 deletions
|
@ -2,19 +2,19 @@ defmodule ArchitexWeb.Client.Request.Messages do
|
|||
use ArchitexWeb.Request
|
||||
|
||||
@type t :: %__MODULE__{
|
||||
from: String.t(),
|
||||
to: String.t() | nil,
|
||||
dir: String.t(),
|
||||
limit: integer() | nil,
|
||||
filter: String.t() | nil
|
||||
}
|
||||
from: String.t(),
|
||||
to: String.t() | nil,
|
||||
dir: String.t(),
|
||||
limit: integer() | nil,
|
||||
filter: String.t() | nil
|
||||
}
|
||||
|
||||
@primary_key false
|
||||
embedded_schema do
|
||||
field :from, :string
|
||||
field :to, :string
|
||||
field :dir, :string
|
||||
field :limit, :integer
|
||||
field :limit, :integer, default: 10
|
||||
field :filter, :string
|
||||
end
|
||||
|
||||
|
|
14
lib/architex_web/client/request/sync.ex
Normal file
14
lib/architex_web/client/request/sync.ex
Normal file
|
@ -0,0 +1,14 @@
|
|||
defmodule ArchitexWeb.Client.Request.Sync do
|
||||
use ArchitexWeb.Request
|
||||
|
||||
@type t :: %__MODULE__{}
|
||||
|
||||
@primary_key false
|
||||
embedded_schema do
|
||||
field :filter, :string
|
||||
field :since, :string
|
||||
field :full_state, :boolean, default: false
|
||||
field :set_presence, :string, default: "online"
|
||||
field :timeout, :integer, default: 0
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue