Class: Model

Apps.FindDevice~Model

new Model(service)

Name Type Description
service Mobizen(Service)

Members

attributes boolean

Properties:
Name Type Default Description
isServiceAgree boolean false
isAvailable boolean false
isRingOn boolean false
isLockScreen boolean false
lockMessage string
lockPhoneNumber string
isTrackingOn boolean false
trakingDelay number 5

post number

inner devicekey string

inner socket Mobizen.Socket

A provider of Mobizen/Socket API.

inner user string

Methods

Name Type Description
key string
Returns:
Type Description
?

removeLocation(locationId){Promise}

Name Type Description
locationId string
Returns:
Type Description
Promise

requestLocation(){Promise}

Returns:
Type Description
Promise

requestTracking(startdate, enddate){Promise}

Name Type Description
startdate number
enddate number
Returns:
Type Description
Promise

saveAgree(bool){Promise}

Name Type Description
bool boolean
Returns:
Type Description
Promise

saveLocateLog(locationResult){Promise}

Name Type Description
locationResult object
Returns:
Type Description
Promise

sendLocation(lat, lng){Promise}

Name Type Description
lat number
lng number
Returns:
Type Description
Promise

set(key, value)

Name Type Description
key string
value ?

inner request(url, params){Promise}

Name Type Description
url string
params object
Returns:
Type Description
Promise
comments powered by Disqus