diff options
author | Goblin911 <goblinliu@gmail.com> | 2013-08-26 11:16:39 +0800 |
---|---|---|
committer | Goblin911 <goblinliu@gmail.com> | 2013-08-26 11:16:39 +0800 |
commit | 686cf083c79fce3a032d229bb1b7ea8ed49046c0 (patch) | |
tree | 7cf2c333b0c63e8286a58f84215bfb55b8f83fb6 /client/Piztor/src/com/macaroon/piztor/ResLogin.java | |
parent | 6400b18210587cb25b475bc2d3979b9a6da5eda4 (diff) |
add new network, but userinfo need to rewrite.
Diffstat (limited to 'client/Piztor/src/com/macaroon/piztor/ResLogin.java')
-rw-r--r-- | client/Piztor/src/com/macaroon/piztor/ResLogin.java | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/client/Piztor/src/com/macaroon/piztor/ResLogin.java b/client/Piztor/src/com/macaroon/piztor/ResLogin.java index 5b597a4..e2f138c 100644 --- a/client/Piztor/src/com/macaroon/piztor/ResLogin.java +++ b/client/Piztor/src/com/macaroon/piztor/ResLogin.java @@ -1,15 +1,17 @@ -package com.macaroon.piztor; - - -//--------------------------------------// -// Respond to login // -//--------------------------------------// - -public class ResLogin extends Res{ - int t; //user token - - ResLogin(int token,int status){ - super(0,status); //for type 0 - t = token; - } +package com.macaroon.piztor;
+
+
+//--------------------------------------//
+// Respond to login //
+//--------------------------------------//
+
+public class ResLogin extends Res{
+ String t; //user token
+ int uid; //userid
+
+ ResLogin(int id,String token,int status){
+ super(0,status); //for type 0
+ t = token;
+ uid = id;
+ }
}
\ No newline at end of file |