com.foxinmy.weixin4j.mp.model
Class Group

java.lang.Object
  extended by com.foxinmy.weixin4j.mp.model.Group
All Implemented Interfaces:
Serializable

public class Group
extends Object
implements Serializable

分组

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:
Serialized Form

Constructor Summary
Group(int id, String name)
           
Group(int id, String name, int count)
           
Group(String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getCount()
           
 int getId()
           
 String getName()
           
 int hashCode()
           
 String toCreateJson()
          返回创建分组所需的json格式字符串
 String toModifyJson()
          返回修改分组所需的json格式字符串
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Group

public Group(int id,
             String name)

Group

public Group(String name)

Group

public Group(int id,
             String name,
             int count)
Method Detail

getId

public int getId()

getName

public String getName()

getCount

public int getCount()

toCreateJson

public String toCreateJson()
返回创建分组所需的json格式字符串

Returns:
{"group": {"name": "test"}}

toModifyJson

public String toModifyJson()
返回修改分组所需的json格式字符串

Returns:
{"group": {"id": 107, "name": "test"}}

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014–2017. All rights reserved.