All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gitee.huangguiming.Imcode.responses.IMGetAllGroupResponses Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package io.gitee.huangguiming.Imcode.responses;

import io.gitee.huangguiming.Imcode.utils.IMGsonBuilder;
import io.gitee.huangguiming.Imcode.utils.IMGsonResponsesBuilder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class IMGetAllGroupResponses extends IMBashResponse{


    /**
     * App 当前的群组总数。如果仅需要返回特定群组形态的群组,可以通过 GroupType 进行过滤,
     * 但此时返回的 TotalCount 的含义就变成了 App 中该群组形态的群组总数;
     * 例如:假设 App 旗下总共 50000 个群组,其中有 20000 个为公开群组,
     * 如果将请求包体中的 GroupType 设置为 Public,
     * 那么不论 Limit 和 Offset 怎样设置,应答包体中的 TotalCount 都为 20000
     * ,且 GroupIdList 中的群组全部为公开群组
     */
    private Integer TotalCount;

    private List GroupIdList;

    private Integer Next;

    public static IMGetAllGroupResponses fromJson(String json) {
        return IMGsonResponsesBuilder.create().fromJson(json, IMGetAllGroupResponses.class);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy