/* * Copyright 2014 The Skfiy Open Association. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.skfiy.typhon.spi.society; /** * * @author Kevin Zou <kevinz@skfiy.org> */ public class SocietyResult { private int sid; private String name; private String icon; private String summary; private int levelLimit; private int memberNum; public SocietyResult() { } public SocietyResult(Society society) { sid = society.getSid(); name = society.getName(); icon = society.getIcon(); summary = society.getSummary(); levelLimit = society.getLevelLimit(); memberNum = society.getMembers().size(); } public int getSid() { return sid; } public void setSid(int sid) { this.sid = sid; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getIcon() { return icon; } public void setIcon(String icon) { this.icon = icon; } public String getSummary() { return summary; } public void setSummary(String summary) { this.summary = summary; } public int getLevelLimit() { return levelLimit; } public void setLevelLimit(int levelLimit) { this.levelLimit = levelLimit; } public int getMemberNum() { return memberNum; } public void setMemberNum(int memberNum) { this.memberNum = memberNum; } }