/*
* Copyright 2015 Evgeny Dolganov (evgenij.dolganov@gmail.com).
*
* 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 och.api.model.chat.host;
import java.util.Date;
import java.util.List;
import och.api.model.user.User;
public class ClientHost {
public long id;
public String name;
public boolean important;
public Date created;
//extra
public List<User> owners;
public ClientHost() {
}
public ClientHost(long id, String name) {
this(id, name, true);
}
public ClientHost(long id, String name, boolean important) {
this.id = id;
this.name = name;
this.important = important;
this.created = new Date();
}
public void setId(long id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
public void setImportant(Boolean important) {
if(important == null) important = true;
this.important = important;
}
public void setCreated(Date created) {
this.created = created;
}
public void setOwners(List<User> owners) {
this.owners = owners;
}
}