添加机器人的朋友圈接口

This commit is contained in:
heavyrian2012
2024-11-03 10:06:10 +08:00
parent f3f08b3026
commit 1b8cf3e5f9
18 changed files with 469 additions and 14 deletions
@@ -157,5 +157,16 @@ public interface APIPath {
String Robot_Group_Transfer = "/robot/group/transfer";
String Robot_Group_Set_Manager = "/robot/group/manager/set";
String Robot_Moments_Post_Feed = "/robot/moments/feed/post";
String Robot_Moments_Pull_Feeds = "/robot/moments/feed/pull";
String Robot_Moments_Post_Comment = "/robot/moments/comment/post";
String Robot_Moments_Pull_Comment = "/robot/moments/comment/pull";
String Robot_Moments_Fetch_Feed = "/robot/moments/feed/pull_one";
String Robot_Moments_Fetch_Profiles = "/robot/moments/profiles/pull";
String Robot_Moments_Recall_Comment = "/robot/moments/comment/recall";
String Robot_Moments_Recall_Feed = "/robot/moments/feed/recall";
String Robot_Moments_Update_Profiles_List_Value = "/robot/moments/profiles/list/push";
String Robot_Moments_Update_Profiles_Value = "/robot/moments/profiles/value/push";
String Robot_Conference_Request = "/robot/conference/request";
}
@@ -0,0 +1,38 @@
package cn.wildfirechat.pojos.moments;
import java.util.List;
public class CommentMsgPojo {
//commentId;
public long commentId;
//sender;
public String sender;
//timestamp
public long serverTime;
//feedId
public long feedId;
//type
public int type;
//content
public String text;
//to replyTo
public String replyTo;
//extra
public String extra;
public int ftype;
public String fcontent;
public String fsender;
public List<MediaEntry> fmedias;
}
@@ -0,0 +1,30 @@
package cn.wildfirechat.pojos.moments;
public class CommentPojo {
//commentId;
public long commentId;
//replyId;
public long replyId;
//sender;
public String sender;
//timestamp
public long timestamp;
//feedId
public long feedId;
//type
public int type;
//content
public String text;
//to replyTo
public String replyTo;
//extra
public String extra;
}
@@ -0,0 +1,38 @@
package cn.wildfirechat.pojos.moments;
import java.util.List;
public class FeedPojo {
//feedid
public long feedId;
//sender
public String sender;
//timestamp
public long timestamp;
//type
public int type;
//content
public String text;
//media urls
public List<MediaEntry> medias;
//to users
public List<String> to;
//excloud users
public List<String> ex;
//mentioned users
public List<String> mu;
//extra
public String extra;
public List<CommentPojo> comments;
}
@@ -0,0 +1,7 @@
package cn.wildfirechat.pojos.moments;
import java.util.List;
public class FeedsPojo {
public List<FeedPojo> feeds;
}
@@ -0,0 +1,9 @@
package cn.wildfirechat.pojos.moments;
public class IdPojo {
//feedid
public long id;
//feedid
public long id2;
}
@@ -0,0 +1,8 @@
package cn.wildfirechat.pojos.moments;
public class MediaEntry {
public String m;
public String t;
public int w;
public int h;
}
@@ -0,0 +1,14 @@
package cn.wildfirechat.pojos.moments;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
public class MomentProfilePojo {
public String bgUrl;
public List<String> blackList;
public List<String> blockList;
//stranger visiable count
public int svc;
public int visiableScope;
}
@@ -0,0 +1,11 @@
package cn.wildfirechat.pojos.moments;
public class PostFeedResult {
public long id;
public long timestamp;
public PostFeedResult(long id, long timestamp) {
this.id = id;
this.timestamp = timestamp;
}
}
@@ -0,0 +1,11 @@
package cn.wildfirechat.pojos.moments;
import java.util.List;
public class PullCommentsRequestPojo {
public static class IdPair {
public long fid;
public long cid;
}
public List<IdPair> ids;
}
@@ -0,0 +1,8 @@
package cn.wildfirechat.pojos.moments;
public class PullFeedRequestPojo {
//feedid
public long feedId;
public int count;
public String user;
}
@@ -0,0 +1,5 @@
package cn.wildfirechat.pojos.moments;
public class PullOneFeedRequestPojo {
public long feedId;
}
@@ -0,0 +1,9 @@
package cn.wildfirechat.pojos.moments;
public class PullProfileRequestPojo {
//userId
public String u;
//update date
public long d;
}
@@ -0,0 +1,14 @@
package cn.wildfirechat.pojos.moments;
import java.util.List;
public class PushProfileListRequestPojo {
//block or black
public boolean b;
//add user list
public List<String> al;
//remove user list
public List<String> rl;
}
@@ -0,0 +1,16 @@
package cn.wildfirechat.pojos.moments;
public class PushProfileValueRequestPojo {
/*
WFMUpdateUserProfileType_BackgroudUrl,
WFMUpdateUserProfileType_StrangerVisiableCount,
WFMUpdateUserProfileType_VisiableScope
*/
public int t;
//string value depends on t
public String v;
//int value depends on t
public int i;
}
@@ -347,6 +347,25 @@ public class ProtoConstants {
int Forbidden_Mute_Group_Member = 0x800;
}
public interface MomentsContentType {
int Moments_Content_Text_Type = 0;
int Moments_Content_Image_Type = 1;
int Moments_Content_Video_Type = 2;
int Moments_Content_Link_Type = 3;
}
public interface MomentsCommentType {
int Moments_Comment_Text_Type = 0;
int Moments_Comment_Thumbup_Type = 1;
}
public interface MomentsVisibleScope {
int Moments_VisibleScope_NoLimit = 0;
int Moments_VisibleScope_3Days = 1;
int Moments_VisibleScope_1Month = 2;
int Moments_VisibleScope_6Months = 3;
};
public static final int MESSAGE_CONTENT_TYPE_CREATE_GROUP = 104;
public static final int MESSAGE_CONTENT_TYPE_ADD_GROUP_MEMBER = 105;
public static final int MESSAGE_CONTENT_TYPE_KICKOF_GROUP_MEMBER = 106;