Unverified Commit 1cf4c936 authored by Yang Libin's avatar Yang Libin Committed by GitHub

fix: request bean annotation (#28)

parent 7fe49057
......@@ -22,7 +22,7 @@ Add the Maven dependency:
<dependency>
<groupId>io.github.doocs</groupId>
<artifactId>im-server-sdk-java</artifactId>
<version>0.0.3</version>
<version>0.0.4</version>
</dependency>
```
......
......@@ -6,7 +6,7 @@
<groupId>io.github.doocs</groupId>
<artifactId>im-server-sdk-java</artifactId>
<version>0.0.3</version>
<version>0.0.4</version>
<packaging>jar</packaging>
<name>qcloud-im-server-sdk-java</name>
......
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author bingo
* @since 2021/7/30 17:27
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AccountCheckItem {
@JsonProperty("UserID")
private String userId;
......
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author bingo
* @since 2021/7/30 17:09
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AccountDeleteItem {
@JsonProperty("UserID")
private String userId;
......
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* @author hyh
* @since 2021/07/29 15:37
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AddFriendItem {
@JsonProperty("To_Account")
private String toAccount;
......
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author bingo
* @since 2021/7/31 10:55
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AndroidInfo {
@JsonProperty("Sound")
private String sound;
......
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author bingo
* @since 2021/7/31 11:03
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ApnsInfo {
@JsonProperty("BadgeMode")
private String badgeMode;
......
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* @author bingo
* @since 2021/7/31 20:31
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class GetIpListRequest extends GenericRequest {
}
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.github.doocs.im.model.response.MsgBodyItem;
......@@ -9,6 +10,7 @@ import java.util.List;
* @author bingo
* @since 2021/8/4 15:23
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ImportGroupMsgListItem {
@JsonProperty("From_Account")
private String fromAccount;
......
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author bingo
* @since 2021/8/1 11:20
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MemberProfile {
@JsonProperty("Member_Account")
private String memberAccount;
......@@ -27,4 +29,73 @@ public class MemberProfile {
@JsonProperty("NameCard")
private String nameCard;
public MemberProfile() {
}
public MemberProfile(String memberAccount, String role, Integer joinTime, Integer msgSeq, String msgFlag, Integer lastSendMsgTime, String nameCard) {
this.memberAccount = memberAccount;
this.role = role;
this.joinTime = joinTime;
this.msgSeq = msgSeq;
this.msgFlag = msgFlag;
this.lastSendMsgTime = lastSendMsgTime;
this.nameCard = nameCard;
}
public String getMemberAccount() {
return memberAccount;
}
public void setMemberAccount(String memberAccount) {
this.memberAccount = memberAccount;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public Integer getJoinTime() {
return joinTime;
}
public void setJoinTime(Integer joinTime) {
this.joinTime = joinTime;
}
public Integer getMsgSeq() {
return msgSeq;
}
public void setMsgSeq(Integer msgSeq) {
this.msgSeq = msgSeq;
}
public String getMsgFlag() {
return msgFlag;
}
public void setMsgFlag(String msgFlag) {
this.msgFlag = msgFlag;
}
public Integer getLastSendMsgTime() {
return lastSendMsgTime;
}
public void setLastSendMsgTime(Integer lastSendMsgTime) {
this.lastSendMsgTime = lastSendMsgTime;
}
public String getNameCard() {
return nameCard;
}
public void setNameCard(String nameCard) {
this.nameCard = nameCard;
}
}
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author bingo
* @since 2021/7/31 10:52
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class OfflinePushInfo {
@JsonProperty("PushFlag")
private Integer pushFlag;
......
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
......@@ -8,6 +9,7 @@ import java.util.List;
* @author bingo
* @since 2021/8/1 11:35
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResponseFilter {
@JsonProperty("GroupBaseInfoFilter")
private List<String> groupBaseInfoFilter;
......
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author hyh
* @since 2021/07/31 14:24
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SnsItem {
@JsonProperty("Tag")
private String tag;
......
package io.github.doocs.im.model.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
......@@ -8,6 +9,7 @@ import java.util.List;
* @author hyh
* @since 2021/07/31 14:22
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UpdateItem {
@JsonProperty("To_Account")
private String toAccount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment