Back to project page WebCamViewer.
The source code is released under:
Apache License
If you think the Android project WebCamViewer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * ****************************************************************************** * Copyright (c) 2013-2014 Tomas Valenta. *//from w w w. ja v a 2s. c om * 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 cz.yetanotherview.webcamviewer.app.model; import java.util.Date; public class WebCam { private long id; private long uniId; private String webCamName; private String webCamUrl; private int position; private int status; private double latitude; private double longitude; private String country; private boolean popular; private Date dateAdded; private String created_at; // constructors public WebCam() { } public WebCam(String webCamName, String webCamUrl, int position, int status) { this.webCamName = webCamName; this.webCamUrl = webCamUrl; this.position = position; this.status = status; } public WebCam(String webCamName, String webCamUrl, int position, int status, double latitude, double longitude) { this.webCamName = webCamName; this.webCamUrl = webCamUrl; this.position = position; this.status = status; this.latitude = latitude; this.longitude = longitude; } public WebCam(long id, String webCamName, String webCamUrl, int position, int status) { this.id = id; this.webCamName = webCamName; this.webCamUrl = webCamUrl; this.position = position; this.status = status; } // setters public void setId(long id) { this.id = id; } public void setUniId(long uniId) { this.uniId = uniId; } public void setName(String webcamName) { this.webCamName = webcamName; } public void setUrl(String webcamUrl) { this.webCamUrl = webcamUrl; } public void setPosition(int position) { this.position = position; } public void setStatus(int status) { this.status = status; } public void setLatitude(double latitude) { this.latitude = latitude; } public void setLongitude(double longitude) { this.longitude = longitude; } public void setCountry(String country) { this.country = country; } public void setPopular(boolean popular) { this.popular = popular; } public void setDateAdded(Date dateAdded) { this.dateAdded = dateAdded; } public void setCreatedAt(String created_at){ this.created_at = created_at; } // getters public long getId() { return this.id; } public long getUniId() { return this.uniId; } public String getName() { return this.webCamName; } public String getUrl() { return this.webCamUrl; } public int getPosition() { return this.position; } public int getStatus() { return this.status; } public double getLatitude() { return this.latitude; } public double getLongitude() { return this.longitude; } public String getCountry() { return this.country; } public boolean isPopular() { return this.popular; } public Date getDateAdded() { return this.dateAdded; } public String getCreatedAt() { return this.created_at; } }