Beaconstac Android  0.9.9
com.mobstac.beaconstac.core.MSPlace Class Reference
Inheritance diagram for com.mobstac.beaconstac.core.MSPlace:
com.mobstac.beaconstac.models.ModelBase

Public Member Functions

 MSPlace (long placeID, String name, String address, double latitude, double longitude, float radius)
 
long getPlaceID ()
 
String getName ()
 
double getLatitude ()
 
double getLongitude ()
 
float getRadius ()
 
String getAddress ()
 
void onConnected (Bundle bundle)
 
void onConnectionSuspended (int i)
 
void onConnectionFailed (ConnectionResult connectionResult)
 
void onResult (Status status)
 
int describeContents ()
 
 MSPlace (Parcel p)
 
void writeToParcel (Parcel dest, int flags)
 
- Public Member Functions inherited from com.mobstac.beaconstac.models.ModelBase
 ModelBase (Object...objects)
 

Static Public Member Functions

static String getCreateString ()
 
static String[] getAllColumns ()
 
static String getTableName ()
 

Static Public Attributes

static final String TAG
 
static final Creator< MSPlaceCREATOR
 

Protected Member Functions

 MSPlace (Context context)
 
void syncPlacesWithServer ()
 
ArrayList< MSPlacegetAllPlaces ()
 
void startGeofenceMonitoring ()
 
void stopGeofenceMonitoring ()
 
synchronized void buildGoogleApiClient ()
 

Protected Attributes

GoogleApiClient mGoogleApiClient
 
ArrayList< Geofence > mGeofenceList
 

Additional Inherited Members

- Static Protected Attributes inherited from com.mobstac.beaconstac.models.ModelBase
static final String idString = "_id"
 
static final String[] base_columns = { idString }
 

Detailed Description

Created by garimabatra on 6/23/15.

Constructor & Destructor Documentation

com.mobstac.beaconstac.core.MSPlace.MSPlace ( Context  context)
protected

Initialization of MSPlace model

Parameters
context
com.mobstac.beaconstac.core.MSPlace.MSPlace ( Parcel  p)

Parcealable constructor

Member Function Documentation

ArrayList<MSPlace> com.mobstac.beaconstac.core.MSPlace.getAllPlaces ( )
protected

Fetches places from local DB

Returns
A list of MSPlace objects
static String com.mobstac.beaconstac.core.MSPlace.getCreateString ( )
static
Returns
comma-separated sql to create the table
void com.mobstac.beaconstac.core.MSPlace.startGeofenceMonitoring ( )
protected

Method to register all places in DB for geofence monitoring

void com.mobstac.beaconstac.core.MSPlace.stopGeofenceMonitoring ( )
protected

Method to stop monitoring for all geofences

void com.mobstac.beaconstac.core.MSPlace.syncPlacesWithServer ( )
protected

Fetches the list of places from server and stores in the local DB

Member Data Documentation

final Creator<MSPlace> com.mobstac.beaconstac.core.MSPlace.CREATOR
static
Initial value:
= new Creator<MSPlace>() {
@Override
public MSPlace createFromParcel(Parcel source) {
return new MSPlace(source);
}
@Override
public MSPlace[] newArray(int size) {
return new MSPlace[size];
}
}
ArrayList<Geofence> com.mobstac.beaconstac.core.MSPlace.mGeofenceList
protected

The list of geofences used in this sample.

GoogleApiClient com.mobstac.beaconstac.core.MSPlace.mGoogleApiClient
protected

Provides the entry point to Google Play services.

final String com.mobstac.beaconstac.core.MSPlace.TAG
static
Initial value:
= MSPlace.class
.getSimpleName()

The documentation for this class was generated from the following file: