diff options
Diffstat (limited to 'client/Piztor/src/com/macaroon/piztor/Req.java')
-rw-r--r-- | client/Piztor/src/com/macaroon/piztor/Req.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/client/Piztor/src/com/macaroon/piztor/Req.java b/client/Piztor/src/com/macaroon/piztor/Req.java index f4c3a1f..4de1045 100644 --- a/client/Piztor/src/com/macaroon/piztor/Req.java +++ b/client/Piztor/src/com/macaroon/piztor/Req.java @@ -112,3 +112,35 @@ class ReqSendMessage extends Req{ } } +//--------------------------------------// +// Set Marker // +//--------------------------------------// + +class ReqSetMarker extends Req{ + double latitude; + double longitude; + int deadline; + + ReqSetMarker(String token,String name,double lat,double lot,int dtime,long time,long alive){ + super(7,token,name,time,alive); //for type 7 + latitude = lat; + longitude = lot; + deadline = dtime; + } +} + +//--------------------------------------// +// Set Password // +//--------------------------------------// + +class ReqSetPassword extends Req{ + String oldpassword; + String newpassword; + + ReqSetPassword(String token,String name,String oldpass,String newpass,long time,long alive){ + super(8,token,name,time,alive); //for type 8 + oldpassword = oldpass; + newpassword = newpass; + } +} + |