com.backendless.geo.geofence.GeoFence Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android Show documentation
Show all versions of android Show documentation
Android SDK used by developers to provide Backendless API in apps.
/*
* ********************************************************************************************************************
*
* BACKENDLESS.COM CONFIDENTIAL
*
* ********************************************************************************************************************
*
* Copyright 2012 BACKENDLESS.COM. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,
* if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its
* suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret
* or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden
* unless prior written permission is obtained from Backendless.com.
*
* ********************************************************************************************************************
*/
package com.backendless.geo.geofence;
import com.backendless.geo.GeoPoint;
import java.io.Serializable;
import java.util.List;
/**
* Created by baas on 01.04.15.
*/
public class GeoFence implements Serializable
{
private String objectId;
private String geofenceName;
private long onStayDuration;
private FenceType type;
private List nodes;
private GeoPoint nwPoint;
private GeoPoint sePoint;
public GeoFence()
{
}
public GeoFence( String geofenceName )
{
this.geofenceName = geofenceName;
}
public String getObjectId()
{
return objectId;
}
public void setObjectId( String objectId )
{
this.objectId = objectId;
}
public String getGeofenceName()
{
return geofenceName;
}
public void setGeofenceName( String geofenceName )
{
this.geofenceName = geofenceName;
}
public long getOnStayDuration()
{
return onStayDuration;
}
public void setOnStayDuration( long onStayDuration )
{
this.onStayDuration = onStayDuration;
}
public FenceType getType()
{
return type;
}
public void setType( FenceType type )
{
this.type = type;
}
public List getNodes()
{
return nodes;
}
public void setNodes( List nodes )
{
this.nodes = nodes;
}
public GeoPoint getNwPoint()
{
return nwPoint;
}
public void setNwPoint( GeoPoint nwPoint )
{
this.nwPoint = nwPoint;
}
public GeoPoint getSePoint()
{
return sePoint;
}
public void setSePoint( GeoPoint sePoint )
{
this.sePoint = sePoint;
}
@Override
public boolean equals( Object o )
{
if( this == o )
return true;
if( o == null || getClass() != o.getClass() )
return false;
GeoFence geoFence = (GeoFence) o;
if( !geofenceName.equals( geoFence.geofenceName ) )
return false;
return true;
}
@Override
public int hashCode()
{
return geofenceName.hashCode();
}
}