Package io.getstream.chat.java.models
Class Command
- java.lang.Object
-
- io.getstream.chat.java.models.Command
-
- Direct Known Subclasses:
Command.CommandGetResponse
public class Command extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Command.CommandCreateRequestData
static class
Command.CommandCreateResponse
static class
Command.CommandDeleteRequest
static class
Command.CommandDeleteResponse
static class
Command.CommandGetRequest
static class
Command.CommandGetResponse
static class
Command.CommandListRequest
static class
Command.CommandListResponse
static class
Command.CommandUpdateRequestData
static class
Command.CommandUpdateResponse
-
Constructor Summary
Constructors Constructor Description Command()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
static @NotNull Command.CommandCreateRequestData.CommandCreateRequest
create()
Creates a create requeststatic @NotNull Command.CommandDeleteRequest
delete(@NotNull java.lang.String name)
Creates a delete requestboolean
equals(java.lang.Object o)
static @NotNull Command.CommandGetRequest
get(@NotNull java.lang.String name)
Creates a get request@Nullable java.lang.String
getArgs()
@NotNull java.util.Date
getCreatedAt()
@NotNull java.lang.String
getDescription()
@NotNull java.lang.String
getName()
@Nullable java.lang.String
getSetValue()
@NotNull java.util.Date
getUpdatedAt()
int
hashCode()
static @NotNull Command.CommandListRequest
list()
Creates a list requestvoid
setArgs(@Nullable java.lang.String args)
void
setCreatedAt(@NotNull java.util.Date createdAt)
void
setDescription(@NotNull java.lang.String description)
void
setName(@NotNull java.lang.String name)
void
setSetValue(@Nullable java.lang.String setValue)
void
setUpdatedAt(@NotNull java.util.Date updatedAt)
java.lang.String
toString()
static @NotNull Command.CommandUpdateRequestData.CommandUpdateRequest
update(@NotNull java.lang.String name)
Creates an update request
-
-
-
Method Detail
-
create
@NotNull public static @NotNull Command.CommandCreateRequestData.CommandCreateRequest create()
Creates a create request- Returns:
- the created request
-
get
@NotNull public static @NotNull Command.CommandGetRequest get(@NotNull @NotNull java.lang.String name)
Creates a get request- Parameters:
name
- the command name- Returns:
- the created request
-
update
@NotNull public static @NotNull Command.CommandUpdateRequestData.CommandUpdateRequest update(@NotNull @NotNull java.lang.String name)
Creates an update request- Parameters:
name
- the command name- Returns:
- the created request
-
delete
@NotNull public static @NotNull Command.CommandDeleteRequest delete(@NotNull @NotNull java.lang.String name)
Creates a delete request- Parameters:
name
- the command name- Returns:
- the created request
-
list
@NotNull public static @NotNull Command.CommandListRequest list()
Creates a list request- Returns:
- the created request
-
getCreatedAt
@NotNull public @NotNull java.util.Date getCreatedAt()
-
getUpdatedAt
@NotNull public @NotNull java.util.Date getUpdatedAt()
-
getName
@NotNull public @NotNull java.lang.String getName()
-
getDescription
@NotNull public @NotNull java.lang.String getDescription()
-
getArgs
@Nullable public @Nullable java.lang.String getArgs()
-
getSetValue
@Nullable public @Nullable java.lang.String getSetValue()
-
setCreatedAt
public void setCreatedAt(@NotNull @NotNull java.util.Date createdAt)
-
setUpdatedAt
public void setUpdatedAt(@NotNull @NotNull java.util.Date updatedAt)
-
setName
public void setName(@NotNull @NotNull java.lang.String name)
-
setDescription
public void setDescription(@NotNull @NotNull java.lang.String description)
-
setArgs
public void setArgs(@Nullable @Nullable java.lang.String args)
-
setSetValue
public void setSetValue(@Nullable @Nullable java.lang.String setValue)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-