ducnt il y a 3 semaines
Parent
commit
8dcf582346
45 fichiers modifiés avec 4972 ajouts et 0 suppressions
  1. 0 0
      HappyFootballProcess/HappyFootballProcess/src/.svn/wc.db-journal
  2. BIN
      HappyFootballProcess/VAS_FW_Process_v2.0.jar.zip
  3. BIN
      HappyFootballWs/HappyFootballWs/lib/VAS_FW_Process_v2.0.jar
  4. 100 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/AccountInfo.java
  5. 92 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/ChargeLog.java
  6. 55 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/CommandObj.java
  7. 99 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/HistoryPlayObj.java
  8. 117 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/HistoryPrizeObj.java
  9. 133 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/HistoryQuestionObj.java
  10. 131 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/LuckyCode.java
  11. 97 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/LuckySpinObj.java
  12. 380 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/MoRecord.java
  13. 95 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/MpsConfigObj.java
  14. 24 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/NewRegRes.java
  15. 42 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/ObjProcess.java
  16. 225 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/PrizeObj.java
  17. 217 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/PrizeWinner.java
  18. 175 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Product.java
  19. 138 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/ProductInfo.java
  20. 104 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionConfig.java
  21. 49 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionInvitation.java
  22. 41 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionLevel.java
  23. 49 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionList.java
  24. 79 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionNumberTimesPlay.java
  25. 69 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionPlayHis.java
  26. 154 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionStockObj.java
  27. 67 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Questions.java
  28. 86 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/RegInfoWs.java
  29. 23 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Register.java
  30. 129 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/RegisterInfo.java
  31. 296 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Request.java
  32. 236 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Response.java
  33. 54 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/ResponseMps.java
  34. 63 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/ResponseQuest.java
  35. 55 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Route.java
  36. 40 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/SmsMtObj.java
  37. 240 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/SpinResultObj.java
  38. 50 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/SubInfo.java
  39. 472 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Subscriber.java
  40. 94 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/TicketPackgObj.java
  41. 94 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/TicketUserObj.java
  42. 74 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/TopPlayer.java
  43. 93 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/UserCoinObj.java
  44. 141 0
      HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/WebServiceLog.java
  45. BIN
      HappyFootballWs/VAS_FW_Webservice.jar.zip

+ 0 - 0
HappyFootballProcess/HappyFootballProcess/src/.svn/wc.db-journal


BIN
HappyFootballProcess/VAS_FW_Process_v2.0.jar.zip


BIN
HappyFootballWs/HappyFootballWs/lib/VAS_FW_Process_v2.0.jar


+ 100 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/AccountInfo.java

@@ -0,0 +1,100 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+import java.sql.Timestamp;
+
+/**
+ *
+ * @author
+ */
+public class AccountInfo {
+
+    public static final String ACCOUNT_ID = "ACCOUNT_ID";
+    public static final String MSISDN = "MSISDN";
+    public static final String PASSWORD = "PASSWORD";
+    public static final String CREATE_DATE = "CREATE_DATE";
+    public static final String STATUS = "STATUS";
+    public static final String LAST_UPDATE = "LAST_UPDATE";
+    public static final String LAST_LOGIN = "LAST_LOGIN";
+    public static final String POINT = "POINT";
+    private int accountId;
+    private String msisdn;
+    private String password;
+    private int status;
+    private Timestamp createDate;
+    private Timestamp lastUpdate;
+    private Timestamp lastLogin;
+    private int point;
+
+    public Timestamp getLastLogin() {
+        return lastLogin;
+    }
+
+    public void setLastLogin(Timestamp lastLogin) {
+        this.lastLogin = lastLogin;
+    }
+
+    public int getAccountId() {
+        return accountId;
+    }
+
+    public void setAccountId(int accountId) {
+        this.accountId = accountId;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getPassword() {
+        return password;
+    }
+
+    public void setPassword(String password) {
+        this.password = password;
+    }
+
+    public int getStatus() {
+        return status;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+
+    public Timestamp getCreateDate() {
+        return createDate;
+    }
+
+    public void setCreateDate(Timestamp createDate) {
+        this.createDate = createDate;
+    }
+
+    public Timestamp getLastUpdate() {
+        return lastUpdate;
+    }
+
+    public void setLastUpdate(Timestamp lastUpdate) {
+        this.lastUpdate = lastUpdate;
+    }
+
+    public int getPoint() {
+        return point;
+    }
+
+    public void setPoint(int point) {
+        this.point = point;
+    }
+
+    @Override
+    public String toString() {
+        return msisdn;
+    }
+}

+ 92 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/ChargeLog.java

@@ -0,0 +1,92 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+import java.sql.Timestamp;
+
+/**
+ *
+ * @author
+ */
+public class ChargeLog {
+
+    private int id;
+    private String msisdn;
+    private double fee;
+    private String description;
+    private Timestamp chargeTime;
+    private String productName;
+    private String channel;
+    private int accountId;
+
+    public int getAccountId() {
+        return accountId;
+    }
+
+    public void setAccountId(int accountId) {
+        this.accountId = accountId;
+    }
+
+    public String getChannel() {
+        return channel;
+    }
+
+    public void setChannel(String channel) {
+        this.channel = channel;
+    }
+
+    public String getProductName() {
+        return productName;
+    }
+
+    public void setProductName(String productName) {
+        this.productName = productName;
+    }
+
+    public int getId() {
+        return id;
+    }
+
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public double getFee() {
+        return fee;
+    }
+
+    public void setFee(double fee) {
+        this.fee = fee;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public Timestamp getChargeTime() {
+        return chargeTime;
+    }
+
+    public void setChargeTime(Timestamp chargeTime) {
+        this.chargeTime = chargeTime;
+    }
+
+    @Override
+    public String toString() {
+        return msisdn + "|" + fee;
+    }
+}

+ 55 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/CommandObj.java

@@ -0,0 +1,55 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author Sungroup
+ */
+public class CommandObj {
+
+    public static final String ID = "COMMAND_ID";
+    public static final String COMMAND_CODE = "COMMAND_CODE";
+    public static final String CHANNEL = "CHANNEL";
+    public static final String ACTION_TYPE = "ACTION_TYPE";
+    private long id;
+    private String commandCode;
+    private String channel;
+    private int actionType;
+
+    public long getId() {
+        return id;
+    }
+
+    public void setId(long id) {
+        this.id = id;
+    }
+
+    public String getCommandCode() {
+        return commandCode;
+    }
+
+    public void setCommandCode(String commandCode) {
+        this.commandCode = commandCode;
+    }
+
+    public String getChannel() {
+        return channel;
+    }
+
+    public void setChannel(String channel) {
+        this.channel = channel;
+    }
+
+    public int getActionType() {
+        return actionType;
+    }
+
+    public void setActionType(int actionType) {
+        this.actionType = actionType;
+    }
+
+}

+ 99 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/HistoryPlayObj.java

@@ -0,0 +1,99 @@
+package com.vas.ws.obj;
+
+import java.util.List;
+
+/**
+ *
+ * @author nvta8hp0
+ */
+public class HistoryPlayObj {
+
+    public static final String ID = "ID";
+    public static final String MSISDN = "MSISDN";
+    public static final String START_TIME = "START_TIME";
+    public static final String LAST_UPDATE = "LAST_UPDATE";
+    public static final String LEVEL_PASSED = "LEVEL_PASSED";
+    public static final String PUBLIC_KEY = "PUBLIC_KEY";
+    public static final String PRIVATE_KEY = "PRIVATE_KEY";
+    public static final String TOPIC_ID = "TOPIC_ID";
+    private long id;
+    private String msisdn;
+    private String startTime;
+    private String lastUpdate;
+    private int levelPassed;
+    private String publicKey;
+    private String privateKey;
+    private long topicId;
+//    private List<HistoryQuestionObj> listQuestion;
+
+//    public List<HistoryQuestionObj> getListQuestion() {
+//        return listQuestion;
+//    }
+//
+//    public void setListQuestion(List<HistoryQuestionObj> listQuestion) {
+//        this.listQuestion = listQuestion;
+//    }
+    public long getId() {
+        return id;
+    }
+
+    public void setId(long id) {
+        this.id = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getStartTime() {
+        return startTime;
+    }
+
+    public void setStartTime(String startTime) {
+        this.startTime = startTime;
+    }
+
+    public String getLastUpdate() {
+        return lastUpdate;
+    }
+
+    public void setLastUpdate(String lastUpdate) {
+        this.lastUpdate = lastUpdate;
+    }
+
+    public int getLevelPassed() {
+        return levelPassed;
+    }
+
+    public void setLevelPassed(int levelPassed) {
+        this.levelPassed = levelPassed;
+    }
+
+    public String getPublicKey() {
+        return publicKey;
+    }
+
+    public void setPublicKey(String publicKey) {
+        this.publicKey = publicKey;
+    }
+
+    public String getPrivateKey() {
+        return privateKey;
+    }
+
+    public void setPrivateKey(String privateKey) {
+        this.privateKey = privateKey;
+    }
+
+    public long getTopicId() {
+        return topicId;
+    }
+
+    public void setTopicId(long topicId) {
+        this.topicId = topicId;
+    }
+}

+ 117 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/HistoryPrizeObj.java

@@ -0,0 +1,117 @@
+package com.vas.ws.obj;
+
+import java.util.List;
+
+/**
+ *
+ * @author nvta8hp0
+ */
+public class HistoryPrizeObj {
+
+    public static final String PLAY_ID = "PLAY_ID";
+    public static final String MSISDN = "MSISDN";
+    public static final String START_TIME = "START_TIME";
+    public static final String LEVEL_PASSED = "LEVEL_PASSED";
+    public static final String TOPIC_ID = "TOPIC_ID";
+    public static final String ADDED_POINT = "ADDED_POINT";
+    public static final String ADDED_MONEY = "ADDED_MONEY";
+    public static final String LOYALTY_POINT = "LOYALTY_POINT";
+    public static final String LUCKY_TICKET = "LUCKY_TICKET";
+//    public static final String MONEY = "MONEY";
+    private long playId;
+    private String msisdn;
+    private String startTime;
+    private int levelPassed;
+    private long topicId;
+    private int addedPoint;
+    private int addedMoney;
+    private int loyaltyPoint;
+    private int luckyTicket;
+//    private int money;
+
+//    public int getMoney() {
+//        return money;
+//    }
+//
+//    public void setMoney(int money) {
+//        this.money = money;
+//    }
+
+    public int getAddedMoney() {
+        return addedMoney;
+    }
+
+    public void setAddedMoney(int addedMoney) {
+        this.addedMoney = addedMoney;
+    }
+
+    public int getLoyaltyPoint() {
+        return loyaltyPoint;
+    }
+
+    public void setLoyaltyPoint(int loyaltyPoint) {
+        this.loyaltyPoint = loyaltyPoint;
+    }
+ 
+
+    public int getLuckyTicket() {
+        return luckyTicket;
+    }
+
+    public void setLuckyTicket(int luckyTicket) {
+        this.luckyTicket = luckyTicket;
+    }
+
+    public long getPlayId() {
+        return playId;
+    }
+
+    public void setPlayId(long playId) {
+        this.playId = playId;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getStartTime() {
+        return startTime;
+    }
+
+    public void setStartTime(String startTime) {
+        this.startTime = startTime;
+    }
+
+    public int getLevelPassed() {
+        return levelPassed;
+    }
+
+    public void setLevelPassed(int levelPassed) {
+        this.levelPassed = levelPassed;
+    }
+
+    public long getTopicId() {
+        return topicId;
+    }
+
+    public void setTopicId(long topicId) {
+        this.topicId = topicId;
+    }
+
+    public int getAddedPoint() {
+        return addedPoint;
+    }
+
+    public void setAddedPoint(int addedPoint) {
+        this.addedPoint = addedPoint;
+    }
+
+    @Override
+    public String toString() {
+        return msisdn + "-" + levelPassed;
+    }
+}

+ 133 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/HistoryQuestionObj.java

@@ -0,0 +1,133 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author nvta8hp0
+ */
+public class HistoryQuestionObj {
+
+    public static final String ID = "ID";
+    public static final String MSISDN = "MSISDN";
+    public static final String START_TIME = "START_TIME";
+    public static final String LAST_UPDATE = "LAST_UPDATE";
+    public static final String QUESTION_ID = "QUESTION_ID";
+    public static final String SUBMIT_SCORE = "SUBMIT_SCORE";
+    public static final String PASSED = "PASSED";
+    public static final String ADDED_POINT = "ADDED_POINT";
+    public static final String PRIZE_ID = "PRIZE_ID";
+    public static final String PLAY_ID = "PLAY_ID";
+    public static final String QUESTION_ORDER = "QUESTION_ORDER";
+    private long id;
+    private String msisdn;
+    private String startTime;
+    private String lastUpdate;
+    private long questionId;
+    private String submitScore;
+    private int passed;
+    private int addedPoint;
+    private int prizeId;
+    private long playId;
+    private int questionOrder;
+    private QuestionStockObj questionObj;
+
+    public QuestionStockObj getQuestionObj() {
+        return questionObj;
+    }
+
+    public void setQuestionObj(QuestionStockObj questionObj) {
+        this.questionObj = questionObj;
+    }
+
+    public long getId() {
+        return id;
+    }
+
+    public void setId(long id) {
+        this.id = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getStartTime() {
+        return startTime;
+    }
+
+    public void setStartTime(String startTime) {
+        this.startTime = startTime;
+    }
+
+    public String getLastUpdate() {
+        return lastUpdate;
+    }
+
+    public void setLastUpdate(String lastUpdate) {
+        this.lastUpdate = lastUpdate;
+    }
+
+    public long getQuestionId() {
+        return questionId;
+    }
+
+    public void setQuestionId(long questionId) {
+        this.questionId = questionId;
+    }
+
+    public String getSubmitScore() {
+        return submitScore;
+    }
+
+    public void setSubmitScore(String submitScore) {
+        this.submitScore = submitScore;
+    }
+
+    public int getPassed() {
+        return passed;
+    }
+
+    public void setPassed(int passed) {
+        this.passed = passed;
+    }
+
+    public int getAddedPoint() {
+        return addedPoint;
+    }
+
+    public void setAddedPoint(int addedPoint) {
+        this.addedPoint = addedPoint;
+    }
+
+    public int getPrizeId() {
+        return prizeId;
+    }
+
+    public void setPrizeId(int prizeId) {
+        this.prizeId = prizeId;
+    }
+
+    public long getPlayId() {
+        return playId;
+    }
+
+    public void setPlayId(long playId) {
+        this.playId = playId;
+    }
+
+    public int getQuestionOrder() {
+        return questionOrder;
+    }
+
+    public void setQuestionOrder(int questionOrder) {
+        this.questionOrder = questionOrder;
+    }
+
+}

+ 131 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/LuckyCode.java

@@ -0,0 +1,131 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author
+ */
+public class LuckyCode {
+
+    private int id;
+    private String msisdn;
+    private String code;
+    private String insertTime;
+    private String expireTime;
+    private int period;
+    private int status;
+    private long remainTime;
+    private String confirmTime;
+    private int confirmChannel;
+    private int fee;
+    private int countTimes;
+    private int codeType;
+
+    public int getCodeType() {
+        return codeType;
+    }
+
+    public void setCodeType(int codeType) {
+        this.codeType = codeType;
+    }
+
+    public int getCountTimes() {
+        return countTimes;
+    }
+
+    public void setCountTimes(int countTimes) {
+        this.countTimes = countTimes;
+    }
+
+    public long getRemainTime() {
+        return remainTime;
+    }
+
+    public void setRemainTime(long remainTime) {
+        this.remainTime = remainTime;
+    }
+
+    public int getFee() {
+        return fee;
+    }
+
+    public void setFee(int fee) {
+        this.fee = fee;
+    }
+
+    public int getId() {
+        return id;
+    }
+
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getInsertTime() {
+        return insertTime;
+    }
+
+    public void setInsertTime(String insertTime) {
+        this.insertTime = insertTime;
+    }
+
+    public String getExpireTime() {
+        return expireTime;
+    }
+
+    public void setExpireTime(String expireTime) {
+        this.expireTime = expireTime;
+    }
+
+    public int getPeriod() {
+        return period;
+    }
+
+    public void setPeriod(int period) {
+        this.period = period;
+    }
+
+    public int getStatus() {
+        return status;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+
+    public String getConfirmTime() {
+        return confirmTime;
+    }
+
+    public void setConfirmTime(String confirmTime) {
+        this.confirmTime = confirmTime;
+    }
+
+    public int getConfirmChannel() {
+        return confirmChannel;
+    }
+
+    public void setConfirmChannel(int confirmChannel) {
+        this.confirmChannel = confirmChannel;
+    }
+
+}

+ 97 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/LuckySpinObj.java

@@ -0,0 +1,97 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.vas.ws.obj;
+
+import java.sql.Timestamp;
+
+/**
+ *
+ * @author Sungroup
+ */
+public class LuckySpinObj {
+
+    public static final String ID = "ID";
+    public static final String MSISDN = "MSISDN";
+    public static final String ADDED = "ADDED";
+    public static final String USED = "USED";
+    public static final String INSERT_TIME = "INSERT_TIME";
+    public static final String EXPIRE_TIME = "EXPIRE_TIME";
+    public static final String LAST_UPDATE = "LAST_UPDATE";
+    public static final String CHANNEL_ADD = "CHANNEL_ADD";
+    public static final String REGISTER_ID = "REGISTER_ID";
+    private long id;
+    private String msisdn;
+    private long added;
+    private long used;
+    private Timestamp insertTime;
+    private Timestamp expireTime;
+    private Timestamp lastUpdate;
+    private String channelAdd;
+
+    public long getId() {
+        return id;
+    }
+
+    public void setId(long id) {
+        this.id = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public long getAdded() {
+        return added;
+    }
+
+    public void setAdded(long added) {
+        this.added = added;
+    }
+
+    public long getUsed() {
+        return used;
+    }
+
+    public void setUsed(long used) {
+        this.used = used;
+    }
+
+    public Timestamp getInsertTime() {
+        return insertTime;
+    }
+
+    public void setInsertTime(Timestamp insertTime) {
+        this.insertTime = insertTime;
+    }
+
+    public Timestamp getExpireTime() {
+        return expireTime;
+    }
+
+    public void setExpireTime(Timestamp expireTime) {
+        this.expireTime = expireTime;
+    }
+
+    public Timestamp getLastUpdate() {
+        return lastUpdate;
+    }
+
+    public void setLastUpdate(Timestamp lastUpdate) {
+        this.lastUpdate = lastUpdate;
+    }
+
+    public String getChannelAdd() {
+        return channelAdd;
+    }
+
+    public void setChannelAdd(String channelAdd) {
+        this.channelAdd = channelAdd;
+    }
+
+}

+ 380 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/MoRecord.java

@@ -0,0 +1,380 @@
+/*
+ * Copyright 2011 Viettel Telecom. All rights reserved.
+ * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
+ */
+package com.vas.ws.obj;
+
+import java.sql.Timestamp;
+
+/**
+ * Thong tin ban ghi MO
+ *
+ * @author TungTT
+ * @version 1.0
+ * @since 01-03-2011
+ */
+public class MoRecord {
+
+    public static final String MO_ID = "MO_ID";
+    public static final String MSISDN = "MSISDN";
+    public static final String COMMAND = "COMMAND";
+    public static final String PARAM = "PARAM";
+    public static final String RECEIVE_TIME = "RECEIVE_TIME";
+    public static final String STATUS = "STATUS";
+    public static final String CHANNEL = "CHANNEL";
+    public static final String ACTION_TYPE = "ACTION_TYPE";
+    // tungnv 05102013
+    public static final String MO_HIS_ID = "MO_HIS_ID";
+    public static final String PRODUCT_NAME = "PRODUCT_NAME";
+    public static final String RETRY_TURN = "RETRY_TURN";
+    public static final String INSERT_TIME = "INSERT_TIME";
+    public static final String SUB_ID = "SUB_ID";
+    public static final String PRODUCT_CODE = "PRODUCT_CODE";
+    public static final String SUB_TYPE = "SUB_TYPE";
+    //tungnv 09012014
+    public static final String REG_DATA = "REG_DATA";
+    //
+    public static final int PREPAID = 1;
+    public static final int POSTPAID = 0;
+    //
+    private Long id;
+    private String msisdn;
+    private Long subId;
+    private String productCode;
+    private Integer subType;
+    private String command;
+    private String param;
+    private Timestamp receiveTime;
+    private String channel;
+    private Integer actionType;
+    private String errCode;
+    private String errOcs;
+    private long fee;
+    private String nodeName;
+    private String clusterName;
+    //
+    private String message;
+    private Object object;
+    //VT Free
+    private String productName;
+    private long validateCode;
+    private Object obj;
+    private long feeAction;
+    private long promotionValue;
+    //update 30112011
+    private long timeStart;
+    private Object registeredMsisdn;
+    private Timestamp lastRegister;
+    private String threadName;
+    private int status;
+    private int retryTurn;
+    private Timestamp insertTime;
+    private long moHisId;
+    //tungnv 09012014
+    private boolean regData;
+    //tungnv 07042014
+    private int passPromotion;
+    //tungnv 24072014
+    private int channelType;
+    private String startTime;
+    private String expireTime;
+
+    public int getChannelType() {
+        return channelType;
+    }
+
+    public void setChannelType(int channelType) {
+        this.channelType = channelType;
+    }
+
+    public String getStartTime() {
+        return startTime;
+    }
+
+    public void setStartTime(String startTime) {
+        this.startTime = startTime;
+    }
+
+    public String getExpireTime() {
+        return expireTime;
+    }
+
+    public void setExpireTime(String expireTime) {
+        this.expireTime = expireTime;
+    }
+
+    public int getStatus() {
+        return status;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+
+    public int getRetryTurn() {
+        return retryTurn;
+    }
+
+    public void setRetryTurn(int retryTurn) {
+        this.retryTurn = retryTurn;
+    }
+
+    public Timestamp getInsertTime() {
+        return insertTime;
+    }
+
+    public void setInsertTime(Timestamp insertTime) {
+        this.insertTime = insertTime;
+    }
+
+    public long getMoHisId() {
+        return moHisId;
+    }
+
+    public void setMoHisId(long moHisId) {
+        this.moHisId = moHisId;
+    }
+
+    public int getPassPromotion() {
+        return passPromotion;
+    }
+
+    public void setPassPromotion(int passPromotion) {
+        this.passPromotion = passPromotion;
+    }
+
+    public boolean isRegData() {
+        return regData;
+    }
+
+    public void setRegData(boolean regData) {
+        this.regData = regData;
+    }
+
+    public String getThreadName() {
+        return threadName;
+    }
+
+    public void setThreadName(String threadName) {
+        this.threadName = threadName;
+    }
+
+    public Timestamp getLastRegister() {
+        return lastRegister;
+    }
+
+    public void setLastRegister(Timestamp lastRegister) {
+        this.lastRegister = lastRegister;
+    }
+
+    public long getPromotionValue() {
+        return promotionValue;
+    }
+
+//    public Timestamp getExpireTime() {
+//        return expireTime;
+//    }
+//
+//    public void setExpireTime(Timestamp expireTime) {
+//        this.expireTime = expireTime;
+//    }
+    public void setPromotionValue(long promotionValue) {
+        this.promotionValue = promotionValue;
+    }
+
+    public long getFeeAction() {
+        return feeAction;
+    }
+
+    public void setFeeAction(long feeAction) {
+        this.feeAction = feeAction;
+    }
+
+    public Object getObj() {
+        return obj;
+    }
+
+    public void setObj(Object obj) {
+        this.obj = obj;
+    }
+
+    public long getValidateCode() {
+        return validateCode;
+    }
+
+    public void setValidateCode(long validateCode) {
+        this.validateCode = validateCode;
+    }
+
+    public String getProductName() {
+        return productName;
+    }
+
+    public void setProductName(String productName) {
+        this.productName = productName;
+    }
+
+    public Object getObject() {
+        return object;
+    }
+
+    public void setObject(Object object) {
+        this.object = object;
+    }
+
+    @Override
+    public String toString() {
+        return id + "|" + msisdn;
+    }
+
+    public MoRecord() {
+    }
+
+    public String getMessage() {
+        return message;
+    }
+
+    public void setMessage(String message) {
+        this.message = message;
+    }
+
+    public String getProductCode() {
+        return productCode;
+    }
+
+    public void setProductCode(String productCode) {
+        this.productCode = productCode;
+    }
+
+    public Integer getSubType() {
+        return subType;
+    }
+
+    public void setSubType(Integer subType) {
+        this.subType = subType;
+    }
+
+    public Long getSubId() {
+        return subId;
+    }
+
+    public void setSubId(Long subId) {
+        this.subId = subId;
+    }
+
+    public String getClusterName() {
+        return clusterName;
+    }
+
+    public void setClusterName(String clusterName) {
+        this.clusterName = clusterName;
+    }
+
+    public String getNodeName() {
+        return nodeName;
+    }
+
+    public void setNodeName(String nodeName) {
+        this.nodeName = nodeName;
+    }
+
+    public Integer getActionType() {
+        return actionType;
+    }
+
+    public void setActionType(Integer actionType) {
+        this.actionType = actionType;
+    }
+
+    public String getChannel() {
+        return channel;
+    }
+
+    public void setChannel(String channel) {
+        this.channel = channel;
+    }
+
+    public String getCommand() {
+        return command;
+    }
+
+    public void setCommand(String command) {
+        this.command = command;
+    }
+
+    public String getErrCode() {
+        return errCode;
+    }
+
+    public void setErrCode(String errCode) {
+        this.errCode = errCode;
+    }
+
+    public String getErrOcs() {
+        return errOcs;
+    }
+
+    public void setErrOcs(String errOcs) {
+        this.errOcs = errOcs;
+    }
+
+    public long getFee() {
+        return fee;
+    }
+
+    public void setFee(long fee) {
+        this.fee = fee;
+    }
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getParam() {
+        return param;
+    }
+
+    public void setParam(String param) {
+        this.param = param;
+    }
+
+    public Timestamp getReceiveTime() {
+        return receiveTime;
+    }
+
+    public void setReceiveTime(Timestamp receiveTime) {
+        this.receiveTime = receiveTime;
+    }
+
+    public long getID() {
+        return this.id;
+    }
+
+    public long getTimeStart() {
+        return timeStart;
+    }
+
+    public void setTimeStart(long timeStart) {
+        this.timeStart = timeStart;
+    }
+
+    public Object getRegisteredMsisdn() {
+        return registeredMsisdn;
+    }
+
+    public void setRegisteredMsisdn(Object registeredMsisdn) {
+        this.registeredMsisdn = registeredMsisdn;
+    }
+}

+ 95 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/MpsConfigObj.java

@@ -0,0 +1,95 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author sungroup
+ */
+public class MpsConfigObj {
+
+    public static final String SERVICE = "SERVICE";
+    public static final String SUB_SERVICE = "SUB_SERVICE";
+    public static final String CP_NAME = "CP_NAME";
+    public static final String COMMAND = "COMMAND";
+    public static final String CATEGORY = "CATEGORY";
+    public static final String PRICE = "PRICE";
+    public static final String ACTION_CODE = "ACTION_CODE";
+    public static final String KEY_PATH = "KEY_PATH";
+    private String service;
+    private String subService;
+    private String cpName;
+    private String command;
+    private String category;
+    private String price;
+    private String actionCode;
+    private String keyPath;
+
+    public String getKeyPath() {
+        return keyPath;
+    }
+
+    public void setKeyPath(String keyPath) {
+        this.keyPath = keyPath;
+    }
+
+    public String getService() {
+        return service;
+    }
+
+    public void setService(String service) {
+        this.service = service;
+    }
+
+    public String getSubService() {
+        return subService;
+    }
+
+    public void setSubService(String subService) {
+        this.subService = subService;
+    }
+
+    public String getCpName() {
+        return cpName;
+    }
+
+    public void setCpName(String cpName) {
+        this.cpName = cpName;
+    }
+
+    public String getCommand() {
+        return command;
+    }
+
+    public void setCommand(String command) {
+        this.command = command;
+    }
+
+    public String getCategory() {
+        return category;
+    }
+
+    public void setCategory(String category) {
+        this.category = category;
+    }
+
+    public String getPrice() {
+        return price;
+    }
+
+    public void setPrice(String price) {
+        this.price = price;
+    }
+
+    public String getActionCode() {
+        return actionCode;
+    }
+
+    public void setActionCode(String actionCode) {
+        this.actionCode = actionCode;
+    }
+
+}

+ 24 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/NewRegRes.java

@@ -0,0 +1,24 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.vas.ws.obj;
+
+import java.util.List;
+
+/**
+ *
+ * @author nvta8hp0
+ */
+public class NewRegRes {
+
+    public int err;
+    public String message;
+    public int checkPoint;
+    public List<Datum> data;
+
+    public static class Datum {
+
+        public String msisdn;
+    }
+}

+ 42 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/ObjProcess.java

@@ -0,0 +1,42 @@
+/*
+ * Copyright 2011 Viettel Telecom. All rights reserved.
+ * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author kdvt_tungtt8
+ * @version x.x
+ * @since May 27, 2011
+ */
+public class ObjProcess {
+
+    private Object process;
+    private boolean running;
+    //private int module;
+
+//    public int getModule() {
+//        return module;
+//    }
+//
+//    public void setModule(int module) {
+//        this.module = module;
+//    }
+
+    public Object getProcess() {
+        return process;
+    }
+
+    public void setProcess(Object process) {
+        this.process = process;
+    }
+
+    public boolean isRunning() {
+        return running;
+    }
+
+    public void setRunning(boolean running) {
+        this.running = running;
+    }
+}

+ 225 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/PrizeObj.java

@@ -0,0 +1,225 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+import com.vas.wsfw.common.Common;
+import org.json.JSONObject;
+
+/**
+ *
+ * @author Sungroup
+ */
+public class PrizeObj {
+
+    public static final String IS_PAD = "IS_PAD";
+    public static final String MONEY_CONVERTED = "MONEY_CONVERTED";
+    public static final String PERIOD = "PERIOD";
+    public static final String ID = "ID";
+    public static final String ACTION_CODE = "ACTION_CODE";
+    public static final String ACTION_TYPE = "ACTION_TYPE";
+    public static final String DESCRIPTION = "DESCRIPTION";
+    public static final String STATUS = "STATUS";
+    public static final String IS_TOP = "IS_TOP";
+    public static final String PRIZE_NAME = "PRIZE_NAME";
+    public static final String SUB_GROUP_PRIZE = "SUB_GROUP_PRIZE";
+    public static final String PREFIX_MSISDN = "PREFIX_MSISDN";
+    public static final String VALUE_PRIZE = "VALUE_PRIZE";
+    private int isPad;
+    private double moneyConverted;
+    private int period;
+    private long id;
+    private String actionCode;
+    private String actionType;
+    private String prizeName;
+    private String description;
+    private String prizeName1;
+    private String description1;
+    private String prizeName2;
+    private String description2;
+    private int status;
+    private int isTop;
+    private int subGroupPrize;
+    private String prefixMsisdn;
+    private int valuePrize;
+
+    public int getValuePrize() {
+        return valuePrize;
+    }
+
+    public void setValuePrize(int valuePrize) {
+        this.valuePrize = valuePrize;
+    }
+
+    public String getActionType() {
+        return actionType;
+    }
+
+    public void setActionType(String actionType) {
+        this.actionType = actionType;
+    }
+
+    public int getIsPad() {
+        return isPad;
+    }
+
+    public void setIsPad(int isPad) {
+        this.isPad = isPad;
+    }
+
+    public double getMoneyConverted() {
+        return moneyConverted;
+    }
+
+    public void setMoneyConverted(double moneyConverted) {
+        this.moneyConverted = moneyConverted;
+    }
+
+    public int getPeriod() {
+        return period;
+    }
+
+    public void setPeriod(int period) {
+        this.period = period;
+    }
+
+    public long getId() {
+        return id;
+    }
+
+    public void setId(long id) {
+        this.id = id;
+    }
+
+    public String getActionCode() {
+        return actionCode;
+    }
+
+    public void setActionCode(String actionCode) {
+        this.actionCode = actionCode;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        try {
+            JSONObject jo = new JSONObject(description);
+            this.description = jo.getString("description");
+            this.description1 = jo.getString("description1");
+            this.description2 = jo.getString("description2");
+        } catch (Exception ex) {
+            this.description = description;
+        }
+    }
+
+    public String getDescription(String lang) {
+        if (lang == null) {
+            lang = Common.Lang.local;
+        }
+        if (lang.equals(Common.Lang.local)) {
+            return description1 == null ? description : description1;
+        } else {
+            return description2 == null ? description : description2;
+        }
+    }
+
+    public int getStatus() {
+        return status;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+
+    public int getIsTop() {
+        return isTop;
+    }
+
+    public void setIsTop(int isTop) {
+        this.isTop = isTop;
+    }
+
+    public String getPrizeName() {
+        return prizeName;
+    }
+
+    public String getPrizeName1() {
+        return prizeName1;
+    }
+
+    public void setPrizeName1(String prizeName1) {
+        this.prizeName1 = prizeName1;
+    }
+
+    public String getDescription1() {
+        return description1;
+    }
+
+    public void setDescription1(String description1) {
+        this.description1 = description1;
+    }
+
+    public String getPrizeName2() {
+        return prizeName2;
+    }
+
+    public void setPrizeName2(String prizeName2) {
+        this.prizeName2 = prizeName2;
+    }
+
+    public String getDescription2() {
+        return description2;
+    }
+
+    public void setDescription2(String description2) {
+        this.description2 = description2;
+    }
+
+    public void setPrizeName(String prizeName) {
+        try {
+            JSONObject jo = new JSONObject(prizeName);
+            this.prizeName = jo.getString("prizeName");
+            this.prizeName1 = jo.getString("prizeName1");
+            this.prizeName2 = jo.getString("prizeName2");
+        } catch (Exception ex) {
+            this.prizeName = prizeName;
+        }
+    }
+
+    public String getPrizeName(String lang) {
+        if (lang == null) {
+            lang = Common.Lang.local;
+        }
+        if (lang.equals(Common.Lang.local)) {
+            return prizeName1 == null ? prizeName : prizeName1;
+        } else {
+            return prizeName2 == null ? prizeName : prizeName2;
+        }
+    }
+
+    public int getSubGroupPrize() {
+        return subGroupPrize;
+    }
+
+    public void setSubGroupPrize(int subGroupPrize) {
+        this.subGroupPrize = subGroupPrize;
+    }
+
+    public String getPrefixMsisdn() {
+        return prefixMsisdn;
+    }
+
+    public void setPrefixMsisdn(String prefixMsisdn) {
+        this.prefixMsisdn = prefixMsisdn;
+    }
+
+    @Override
+    public String toString() {
+        return this.prizeName;
+    }
+
+}

+ 217 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/PrizeWinner.java

@@ -0,0 +1,217 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+import com.vas.wsfw.common.Common;
+import org.json.JSONObject;
+
+/**
+ *
+ * @author
+ */
+public class PrizeWinner {
+
+    private int id;
+    private String msisdn;
+    private String code;
+    private String codeTime;
+    private String processTime;
+    private String expireTime;
+    private String channel;
+    private int prizeId;
+    private int period;
+    private String prizeDescription;
+    private String prizeDescription1;
+    private String prizeDescription2;
+    private String prizeName;
+    private String prizeName1;
+    private String prizeName2;
+    private int page;
+    private int codeType;
+    private String actionCode;
+
+    public String getActionCode() {
+        return actionCode;
+    }
+
+    public void setActionCode(String actionCode) {
+        this.actionCode = actionCode;
+    }
+
+    public int getCodeType() {
+        return codeType;
+    }
+
+    public void setCodeType(int codeType) {
+        this.codeType = codeType;
+    }
+
+    public String getPrizeDescription1() {
+        return prizeDescription1;
+    }
+
+    public void setPrizeDescription1(String prizeDescription1) {
+        this.prizeDescription1 = prizeDescription1;
+    }
+
+    public String getPrizeDescription2() {
+        return prizeDescription2;
+    }
+
+    public void setPrizeDescription2(String prizeDescription2) {
+        this.prizeDescription2 = prizeDescription2;
+    }
+
+    public String getPrizeName1() {
+        return prizeName1;
+    }
+
+    public void setPrizeName1(String prizeName1) {
+        this.prizeName1 = prizeName1;
+    }
+
+    public String getPrizeName2() {
+        return prizeName2;
+    }
+
+    public void setPrizeName2(String prizeName2) {
+        this.prizeName2 = prizeName2;
+    }
+
+    public String getExpireTime() {
+        return expireTime;
+    }
+
+    public void setExpireTime(String expireTime) {
+        this.expireTime = expireTime;
+    }
+
+    public int getPage() {
+        return page;
+    }
+
+    public void setPage(int page) {
+        this.page = page;
+    }
+
+    public String getChannel() {
+        return channel;
+    }
+
+    public void setChannel(String channel) {
+        this.channel = channel;
+    }
+
+    public int getPeriod() {
+        return period;
+    }
+
+    public void setPeriod(int period) {
+        this.period = period;
+    }
+
+    public int getId() {
+        return id;
+    }
+
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public String getCodeTime() {
+        return codeTime;
+    }
+
+    public void setCodeTime(String codeTime) {
+        this.codeTime = codeTime;
+    }
+
+    public String getProcessTime() {
+        return processTime;
+    }
+
+    public void setProcessTime(String processTime) {
+        this.processTime = processTime;
+    }
+
+    public int getPrizeId() {
+        return prizeId;
+    }
+
+    public void setPrizeId(int prizeId) {
+        this.prizeId = prizeId;
+    }
+
+    public String getPrizeDescription() {
+        return prizeDescription;
+    }
+
+    public void setPrizeDescription(String prizeDescription) {
+        try {
+            JSONObject jo = new JSONObject(prizeDescription);
+            this.prizeDescription = jo.getString("description");
+            this.prizeDescription1 = jo.getString("description1");
+            this.prizeDescription2 = jo.getString("description2");
+        } catch (Exception ex) {
+            this.prizeDescription = prizeDescription;
+        }
+    }
+
+    public String getPrizeDescription(String lang) {
+        if (lang == null) {
+            lang = Common.Lang.local;
+        }
+        if (lang.equals(Common.Lang.local)) {
+            return prizeDescription1 == null ? prizeDescription : prizeDescription1;
+        } else {
+            return prizeDescription2 == null ? prizeDescription : prizeDescription1;
+        }
+    }
+
+    public String getPrizeName() {
+        return prizeName;
+    }
+
+//    public void setPrizeName(String prizeName) {
+//        this.prizeName = prizeName;
+//    }
+    public void setPrizeName(String prizeName) {
+        try {
+            JSONObject jo = new JSONObject(prizeName);
+            this.prizeName = jo.getString("prizeName");
+            this.prizeName1 = jo.getString("prizeName1");
+            this.prizeName2 = jo.getString("prizeName2");
+        } catch (Exception ex) {
+            this.prizeName = prizeName;
+        }
+    }
+
+    public String getPrizeName(String lang) {
+        if (lang == null) {
+            lang = Common.Lang.local;
+        }
+        if (lang.equals(Common.Lang.local)) {
+            return prizeName1 == null ? prizeName : prizeName1;
+        } else {
+            return prizeName2 == null ? prizeName : prizeName2;
+        }
+    }
+}

+ 175 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Product.java

@@ -0,0 +1,175 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author nvta8hp0
+ */
+public class Product {
+
+    private int product_id;
+    private String product_name;
+    private String list_group;
+    private String description;
+    private String descriptionFr;
+    private String path;
+    private String image_path;
+    private String insert_time;
+    private int play_times;
+    private String rate_value;
+    private int rate_times;
+    private String last_update;
+    private String tags;
+    private int status;
+    private String product_group_name;
+    private String product_info;
+    private int display_height;
+    private int ratio_percent;
+
+    public String getDescriptionFr() {
+        return descriptionFr;
+    }
+
+    public void setDescriptionFr(String descriptionFr) {
+        this.descriptionFr = descriptionFr;
+    }
+
+    public int getRatio_percent() {
+        return ratio_percent;
+    }
+
+    public void setRatio_percent(int ratio_percent) {
+        this.ratio_percent = ratio_percent;
+    }
+
+    public int getProduct_id() {
+        return product_id;
+    }
+
+    public void setProduct_id(int product_id) {
+        this.product_id = product_id;
+    }
+
+    public String getProduct_name() {
+        return product_name;
+    }
+
+    public void setProduct_name(String product_name) {
+        this.product_name = product_name;
+    }
+
+    public String getList_group() {
+        return list_group;
+    }
+
+    public void setList_group(String list_group) {
+        this.list_group = list_group;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public String getPath() {
+        return path;
+    }
+
+    public void setPath(String path) {
+        this.path = path;
+    }
+
+    public String getImage_path() {
+        return image_path;
+    }
+
+    public void setImage_path(String image_path) {
+        this.image_path = image_path;
+    }
+
+    public String getInsert_time() {
+        return insert_time;
+    }
+
+    public void setInsert_time(String insert_time) {
+        this.insert_time = insert_time;
+    }
+
+    public int getPlay_times() {
+        return play_times;
+    }
+
+    public void setPlay_times(int play_times) {
+        this.play_times = play_times;
+    }
+
+    public String getRate_value() {
+        return rate_value;
+    }
+
+    public void setRate_value(String rate_value) {
+        this.rate_value = rate_value;
+    }
+
+    public int getRate_times() {
+        return rate_times;
+    }
+
+    public void setRate_times(int rate_times) {
+        this.rate_times = rate_times;
+    }
+
+    public String getLast_update() {
+        return last_update;
+    }
+
+    public void setLast_update(String last_update) {
+        this.last_update = last_update;
+    }
+
+    public String getTags() {
+        return tags;
+    }
+
+    public void setTags(String tags) {
+        this.tags = tags;
+    }
+
+    public int getStatus() {
+        return status;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+
+    public String getProduct_group_name() {
+        return product_group_name;
+    }
+
+    public void setProduct_group_name(String product_group_name) {
+        this.product_group_name = product_group_name;
+    }
+
+    public String getProduct_info() {
+        return product_info;
+    }
+
+    public void setProduct_info(String product_info) {
+        this.product_info = product_info;
+    }
+
+    public int getDisplay_height() {
+        return display_height;
+    }
+
+    public void setDisplay_height(int display_height) {
+        this.display_height = display_height;
+    }
+}

+ 138 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/ProductInfo.java

@@ -0,0 +1,138 @@
+package com.vas.ws.obj;
+
+import com.vas.wsfw.common.Common;
+import org.json.JSONObject;
+
+/**
+ *
+ * @author sungroup
+ */
+public class ProductInfo {
+
+    private int productId;
+    private String productName;
+    private String smsSyntax;
+    private double fee;
+    private int numberSpin;
+    private int bizId;
+    private int expireDays;
+    private String description;
+    private String displayName;
+    private String displayName1;
+    private String displayName2;
+    private String imageUrl;
+
+    public String getImageUrl() {
+        return imageUrl;
+    }
+
+    public void setImageUrl(String imageUrl) {
+        this.imageUrl = imageUrl;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public String getDisplayName() {
+        return displayName;
+    }
+
+    public String getDisplayName1() {
+        return displayName1;
+    }
+
+    public void setDisplayName1(String displayName1) {
+        this.displayName1 = displayName1;
+    }
+
+    public String getDisplayName2() {
+        return displayName2;
+    }
+
+    public void setDisplayName2(String displayName2) {
+        this.displayName2 = displayName2;
+    }
+
+    public void setDisplayName(String displayName) {
+        try {
+            JSONObject jo = new JSONObject(displayName);
+            this.displayName = jo.getString("displayName");
+            this.displayName1 = jo.getString("displayName1");
+            this.displayName2 = jo.getString("displayName2");
+        } catch (Exception ex) {
+            this.displayName = displayName;
+        }
+    }
+
+    public String getDisplayName(String lang) {
+        if (lang == null) {
+            lang = Common.Lang.local;
+        }
+        if (lang.equals(Common.Lang.local)) {
+            return displayName1 == null ? displayName : displayName1;
+        } else {
+            return displayName2 == null ? displayName : displayName2;
+        }
+    }
+
+    public int getExpireDays() {
+        return expireDays;
+    }
+
+    public void setExpireDays(int expireDays) {
+        this.expireDays = expireDays;
+    }
+
+    public int getBizId() {
+        return bizId;
+    }
+
+    public void setBizId(int bizId) {
+        this.bizId = bizId;
+    }
+
+    public int getProductId() {
+        return productId;
+    }
+
+    public void setProductId(int productId) {
+        this.productId = productId;
+    }
+
+    public String getProductName() {
+        return productName;
+    }
+
+    public void setProductName(String productName) {
+        this.productName = productName;
+    }
+
+    public String getSmsSyntax() {
+        return smsSyntax;
+    }
+
+    public void setSmsSyntax(String smsSyntax) {
+        this.smsSyntax = smsSyntax;
+    }
+
+    public double getFee() {
+        return fee;
+    }
+
+    public void setFee(double fee) {
+        this.fee = fee;
+    }
+
+    public int getNumberSpin() {
+        return numberSpin;
+    }
+
+    public void setNumberSpin(int numberSpin) {
+        this.numberSpin = numberSpin;
+    }
+}

+ 104 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionConfig.java

@@ -0,0 +1,104 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author Windows 10 Version 2
+ */
+public class QuestionConfig {
+
+    private Long id;
+    private int accountMinus;
+    private int accountPlus;
+    private int numQuestionToPlay;
+    private Long moneyAddToPackage1;
+    private Long moneyAddToPackage2;
+    private Long moneyAddToPackage3;
+    private int totalTimeForPackage1;
+    private int totalTimeForPackage2;
+    private int totalTimeForPackage3;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public int getAccountMinus() {
+        return accountMinus;
+    }
+
+    public void setAccountMinus(int accountMinus) {
+        this.accountMinus = accountMinus;
+    }
+
+    public int getAccountPlus() {
+        return accountPlus;
+    }
+
+    public void setAccountPlus(int accountPlus) {
+        this.accountPlus = accountPlus;
+    }
+
+    public int getNumQuestionToPlay() {
+        return numQuestionToPlay;
+    }
+
+    public void SetNumQuestionToPlay(int numQuestionToPlay) {
+        this.numQuestionToPlay = numQuestionToPlay;
+    }
+
+    public Long getMoneyAddToPackage1() {
+        return moneyAddToPackage1;
+    }
+
+    public void setMoneyAddToPackage1(Long moneyAddToPackage1) {
+        this.moneyAddToPackage1 = moneyAddToPackage1;
+    }
+
+    public Long getMoneyAddToPackage2() {
+        return moneyAddToPackage2;
+    }
+
+    public void setMoneyAddToPackage2(Long moneyAddToPackage2) {
+        this.moneyAddToPackage2 = moneyAddToPackage2;
+    }
+
+    public Long getMoneyAddToPackage3() {
+        return moneyAddToPackage3;
+    }
+
+    public void setMoneyAddToPackage3(Long moneyAddToPackage3) {
+        this.moneyAddToPackage3 = moneyAddToPackage3;
+    }
+
+    public int getTotalTimeForPackage1() {
+        return totalTimeForPackage1;
+    }
+
+    public void setTotalTimeForPackage1(int totalTimeForPackage1) {
+        this.totalTimeForPackage1 = totalTimeForPackage1;
+    }
+
+    public int getTotalTimeForPackage2() {
+        return totalTimeForPackage2;
+    }
+
+    public void setTotalTimeForPackage2(int totalTimeForPackage2) {
+        this.totalTimeForPackage2 = totalTimeForPackage2;
+    }
+
+    public int getTotalTimeForPackage3() {
+        return totalTimeForPackage3;
+    }
+
+    public void setTotalTimeForPackage3(int totalTimeForPackage3) {
+        this.totalTimeForPackage3 = totalTimeForPackage3;
+    }
+}

+ 49 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionInvitation.java

@@ -0,0 +1,49 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author DanhTV1
+ */
+public class QuestionInvitation {
+
+    private Long id;
+    private String msisdn;
+    private String msisdnFriend;
+    private int confirmation;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long Id) {
+        this.id = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getMsisdnFriend() {
+        return msisdnFriend;
+    }
+
+    public void setMsisdnFriend(String msisdnFriend) {
+        this.msisdnFriend = msisdnFriend;
+    }
+
+    public int getConfirmation() {
+        return confirmation;
+    }
+
+    public void setConfirmation(int confirmation) {
+        this.confirmation = confirmation;
+    }
+}

+ 41 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionLevel.java

@@ -0,0 +1,41 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author Sungroup
+ */
+public class QuestionLevel {
+
+    private int fromNum;
+    private int toNum;
+    private int questionLevel;
+
+    public int getFromNum() {
+        return fromNum;
+    }
+
+    public void setFromNum(int fromNum) {
+        this.fromNum = fromNum;
+    }
+
+    public int getToNum() {
+        return toNum;
+    }
+
+    public void setToNum(int toNum) {
+        this.toNum = toNum;
+    }
+
+    public int getQuestionLevel() {
+        return questionLevel;
+    }
+
+    public void setQuestionLevel(int questionLevel) {
+        this.questionLevel = questionLevel;
+    }
+}

+ 49 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionList.java

@@ -0,0 +1,49 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author DanhTV1
+ */
+public class QuestionList {
+
+    private Long id;
+    private String questionName;
+    private String answer;
+    private int questionLevel;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long Id) {
+        this.id = id;
+    }
+
+    public String getQuestionName() {
+        return questionName;
+    }
+
+    public void setQuestionName(String questionName) {
+        this.questionName = questionName;
+    }
+
+    public String getAnswer() {
+        return answer;
+    }
+
+    public void setAnswer(String answer) {
+        this.answer = answer;
+    }
+
+    public int getQuestionLevel() {
+        return questionLevel;
+    }
+
+    public void setQuestionLevel(int questionLevel) {
+        this.questionLevel = questionLevel;
+    }
+}

+ 79 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionNumberTimesPlay.java

@@ -0,0 +1,79 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+import java.util.Date;
+
+/**
+ *
+ * @author DanhTV1
+ */
+public class QuestionNumberTimesPlay {
+
+    private long id;
+    private String msisdn;
+    private int playedInDay;
+    private int totalTimesInDay;
+    private Date datePlay;
+    private String gamePackage;
+    private int active;
+
+    public long getId() {
+        return id;
+    }
+
+    public void setId(long id) {
+        this.id = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public int getPlayedInDay() {
+        return playedInDay;
+    }
+
+    public void setPlayedInDay(int playedInDay) {
+        this.playedInDay = playedInDay;
+    }
+
+    public int getTotalTimesInDay() {
+        return totalTimesInDay;
+    }
+
+    public void setTotalTimesInDay(int totalTimesInDay) {
+        this.totalTimesInDay = totalTimesInDay;
+    }
+
+    public Date getDatePlay() {
+        return datePlay;
+    }
+
+    public void setDatePlay(Date datePlay) {
+        this.datePlay = datePlay;
+    }
+
+    public String getGamePackage() {
+        return gamePackage;
+    }
+
+    public void setGamePackage(String gamePackage) {
+        this.gamePackage = gamePackage;
+    }
+
+    public int getActive() {
+        return active;
+    }
+
+    public void setActive(int active) {
+        this.active = active;
+    }
+}

+ 69 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionPlayHis.java

@@ -0,0 +1,69 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+import java.util.Date;
+
+/**
+ *
+ * @author DanhTV1
+ */
+public class QuestionPlayHis {
+
+    private Long id;
+    private String msisdn;
+    private String typeMsisdn;
+    private int money;
+    private String typeAdd;
+    private Date insertDate;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long Id) {
+        this.id = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getTypeMsisdn() {
+        return typeMsisdn;
+    }
+
+    public void setTypeMsisdn(String typeMsisdn) {
+        this.typeMsisdn = typeMsisdn;
+    }
+
+    public int getMoney() {
+        return money;
+    }
+
+    public void setMoney(int money) {
+        this.money = money;
+    }
+
+    public String getTypeAdd() {
+        return typeAdd;
+    }
+
+    public void setTypeAdd(String typeAdd) {
+        this.typeAdd = typeAdd;
+    }
+
+    public Date getInsertDate() {
+        return insertDate;
+    }
+
+    public void setInsertDate(Date insertDate) {
+        this.insertDate = insertDate;
+    }
+}

+ 154 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/QuestionStockObj.java

@@ -0,0 +1,154 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author nvta8hp0
+ */
+public class QuestionStockObj {
+
+    public static final String QUESTION_ID = "QUESTION_ID";
+    public static final String TOPIC_ID = "TOPIC_ID";
+    public static final String NAME_0 = "NAME_0";
+    public static final String NAME_1 = "NAME_1";
+    public static final String TITLE_0 = "TITLE_0";
+    public static final String TITLE_1 = "TITLE_1";
+    public static final String DESCRIPTION_0 = "DESCRIPTION_0";
+    public static final String DESCRIPTION_1 = "DESCRIPTION_1";
+    public static final String PASSED_SCORE = "PASSED_SCORE";
+    public static final String GAME_URL = "GAME_URL";
+    public static final String QUESTION_AUDIO = "QUESTION_AUDIO";
+    public static final String QUESTION_IMG = "QUESTION_IMG";
+    public static final String QUESTION_LEVEL = "QUESTION_LEVEL";
+    public static final String STATUS = "STATUS";
+    private long questionId;
+    private int topicId;
+    private String name0;
+    private String name1;
+    private String title0;
+    private String title1;
+    private String description0;
+    private String description1;
+    private int passedScore;
+    private String gameUrl;
+    private String questionAudio;
+    private String questionImg;
+    private int questionLevel;
+    private int status;
+
+    public long getQuestionId() {
+        return questionId;
+    }
+
+    public void setQuestionId(long questionId) {
+        this.questionId = questionId;
+    }
+
+    public int getTopicId() {
+        return topicId;
+    }
+
+    public void setTopicId(int topicId) {
+        this.topicId = topicId;
+    }
+
+    public String getName0() {
+        return name0;
+    }
+
+    public void setName0(String name0) {
+        this.name0 = name0;
+    }
+
+    public String getName1() {
+        return name1;
+    }
+
+    public void setName1(String name1) {
+        this.name1 = name1;
+    }
+
+    public String getTitle0() {
+        return title0;
+    }
+
+    public void setTitle0(String title0) {
+        this.title0 = title0;
+    }
+
+    public String getTitle1() {
+        return title1;
+    }
+
+    public void setTitle1(String title1) {
+        this.title1 = title1;
+    }
+
+    public String getDescription0() {
+        return description0;
+    }
+
+    public void setDescription0(String description0) {
+        this.description0 = description0;
+    }
+
+    public String getDescription1() {
+        return description1;
+    }
+
+    public void setDescription1(String description1) {
+        this.description1 = description1;
+    }
+
+    public int getPassedScore() {
+        return passedScore;
+    }
+
+    public void setPassedScore(int passedScore) {
+        this.passedScore = passedScore;
+    }
+
+    public String getGameUrl() {
+        return gameUrl;
+    }
+
+    public void setGameUrl(String gameUrl) {
+        this.gameUrl = gameUrl;
+    }
+
+    public String getQuestionAudio() {
+        return questionAudio;
+    }
+
+    public void setQuestionAudio(String questionAudio) {
+        this.questionAudio = questionAudio;
+    }
+
+    public String getQuestionImg() {
+        return questionImg;
+    }
+
+    public void setQuestionImg(String questionImg) {
+        this.questionImg = questionImg;
+    }
+
+    public int getQuestionLevel() {
+        return questionLevel;
+    }
+
+    public void setQuestionLevel(int questionLevel) {
+        this.questionLevel = questionLevel;
+    }
+
+    public int getStatus() {
+        return status;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+
+}

+ 67 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Questions.java

@@ -0,0 +1,67 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author SunGroup
+ */
+public class Questions {
+
+    private long questionId;
+    private String questionContent;
+    private String answer;
+    private int questionLevel;
+    private int timeout;
+    private long startTime;
+
+    public long getStartTime() {
+        return startTime;
+    }
+
+    public void setStartTime(long startTime) {
+        this.startTime = startTime;
+    }
+
+    public int getTimeout() {
+        return timeout;
+    }
+
+    public void setTimeout(int timeout) {
+        this.timeout = timeout;
+    }
+
+    public long getQuestionId() {
+        return questionId;
+    }
+
+    public void setQuestionId(long questionId) {
+        this.questionId = questionId;
+    }
+
+    public String getQuestionContent() {
+        return questionContent;
+    }
+
+    public void setQuestionContent(String questionContent) {
+        this.questionContent = questionContent;
+    }
+
+    public String getAnswer() {
+        return answer;
+    }
+
+    public void setAnswer(String answer) {
+        this.answer = answer;
+    }
+
+    public int getQuestionLevel() {
+        return questionLevel;
+    }
+
+    public void setQuestionLevel(int questionLevel) {
+        this.questionLevel = questionLevel;
+    }
+}

+ 86 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/RegInfoWs.java

@@ -0,0 +1,86 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author Sungroup
+ */
+public class RegInfoWs {
+
+    private String productName;
+    private String registerTime;
+    private String expireTime;
+    private String extendStatus;
+    private String lastExtend;
+    private int numberSpin;
+    private int freeQuestion;
+    private int playedTimes;
+
+    public int getFreeQuestion() {
+        return freeQuestion;
+    }
+
+    public void setFreeQuestion(int freeQuestion) {
+        this.freeQuestion = freeQuestion;
+    }
+
+    public int getNumberSpin() {
+        return numberSpin;
+    }
+
+    public void setNumberSpin(int numberSpin) {
+        this.numberSpin = numberSpin;
+    }
+
+    public int getPlayedTimes() {
+        return playedTimes;
+    }
+
+    public void setPlayedTimes(int playedTimes) {
+        this.playedTimes = playedTimes;
+    }
+
+    public String getProductName() {
+        return productName;
+    }
+
+    public void setProductName(String productName) {
+        this.productName = productName;
+    }
+
+    public String getRegisterTime() {
+        return registerTime;
+    }
+
+    public void setRegisterTime(String registerTime) {
+        this.registerTime = registerTime;
+    }
+
+    public String getExpireTime() {
+        return expireTime;
+    }
+
+    public void setExpireTime(String expireTime) {
+        this.expireTime = expireTime;
+    }
+
+    public String getExtendStatus() {
+        return extendStatus;
+    }
+
+    public void setExtendStatus(String extendStatus) {
+        this.extendStatus = extendStatus;
+    }
+
+    public String getLastExtend() {
+        return lastExtend;
+    }
+
+    public void setLastExtend(String lastExtend) {
+        this.lastExtend = lastExtend;
+    }
+}

+ 23 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Register.java

@@ -0,0 +1,23 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author ThuyNhung
+ */
+public class Register {
+
+    public static final String PRODUCT_NAME = "PRODUCT_NAME";
+    private String productName;
+
+    public String getProductName() {
+        return productName;
+    }
+
+    public void setProductName(String productName) {
+        this.productName = productName;
+    }
+}

+ 129 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/RegisterInfo.java

@@ -0,0 +1,129 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+import java.sql.Timestamp;
+
+/**
+ *
+ * @author sungroup
+ */
+public class RegisterInfo {
+
+    private long registerId;
+    private String msisdn;
+    private String productName;
+    private Timestamp registerTime;
+    private Timestamp endTime;
+    private Timestamp expireTime;
+    private Timestamp lastExtend;
+    private int numberSpin;
+    private int playedTimes;
+    private int extendStatus;
+    private int status;
+    private String channel;
+
+    public String getChannel() {
+        return channel;
+    }
+
+    public void setChannel(String channel) {
+        this.channel = channel;
+    }
+
+    public Timestamp getLastExtend() {
+        return lastExtend;
+    }
+
+    public void setLastExtend(Timestamp lastExtend) {
+        this.lastExtend = lastExtend;
+    }
+
+    public int getPlayedTimes() {
+        return playedTimes;
+    }
+
+    public void setPlayedTimes(int playedTimes) {
+        this.playedTimes = playedTimes;
+    }
+
+    public int getExtendStatus() {
+        return extendStatus;
+    }
+
+    public void setExtendStatus(int extendStatus) {
+        this.extendStatus = extendStatus;
+    }
+
+    public int getStatus() {
+        return status;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+
+    public long getRegisterId() {
+        return registerId;
+    }
+
+    public void setRegisterId(long id) {
+        this.registerId = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getProductName() {
+        return productName;
+    }
+
+    public void setProductName(String productName) {
+        this.productName = productName;
+    }
+
+    public Timestamp getRegisterTime() {
+        return registerTime;
+    }
+
+    public void setRegisterTime(Timestamp registerTime) {
+        this.registerTime = registerTime;
+    }
+
+    public int getNumberSpin() {
+        return numberSpin;
+    }
+
+    public void setNumberSpin(int numberSpin) {
+        this.numberSpin = numberSpin;
+    }
+
+    public Timestamp getEndTime() {
+        return endTime;
+    }
+
+    public void setEndTime(Timestamp endTime) {
+        this.endTime = endTime;
+    }
+
+    public Timestamp getExpireTime() {
+        return expireTime;
+    }
+
+    public void setExpireTime(Timestamp expireTime) {
+        this.expireTime = expireTime;
+    }
+
+    @Override
+    public String toString() {
+        return msisdn + "-" + productName;
+    }
+}

+ 296 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Request.java

@@ -0,0 +1,296 @@
+package com.vas.ws.obj;
+
+///*
+// * Copyright 2011 Viettel Telecom. All rights reserved.
+// * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
+// */
+//package com.vas.wsfw.obj;
+//
+///**
+// *
+// * @author kdvt_tungtt8
+// * @version x.x
+// * @since May 27, 2011
+// */
+//public class Request {
+//
+//    private String requestId;
+//    private String userId;//msisdn
+//    private String receiverId;
+//    private String serviceId;
+//    private String service;
+//    private String info;
+//    private String receiveTime;
+//    private String user;
+//    private String pass;
+//    private String remainSecond;
+//    private String msisdn;
+//    private String isSms;
+//    private String param;
+//    private String isdn;
+//    private String amount;
+//    private String benIsdn;
+//    private String message;
+//    private String msgType;
+//    private String channel;
+//    private String froDate;
+//    private String toDate;
+//    private String fee;
+//    private String day;
+//    private String Issentsms;
+//    private String oldPass;
+//    private String newPass;
+//    private String parentIsdn;
+//    private String childIsdn;
+//
+//    public String getParentIsdn() {
+//        return parentIsdn;
+//    }
+//
+//    public void setParentIsdn(String parentIsdn) {
+//        this.parentIsdn = parentIsdn;
+//    }
+//
+//    public String getChildIsdn() {
+//        return childIsdn;
+//    }
+//
+//    public void setChildIsdn(String childIsdn) {
+//        this.childIsdn = childIsdn;
+//    }
+//
+//    public String getOldPass() {
+//        return oldPass;
+//    }
+//
+//    public void setOldPass(String oldPass) {
+//        this.oldPass = oldPass;
+//    }
+//
+//    public String getNewPass() {
+//        return newPass;
+//    }
+//
+//    public void setNewPass(String newPass) {
+//        this.newPass = newPass;
+//    }
+//
+//    public String getDay() {
+//        return day;
+//    }
+//
+//    public void setDay(String day) {
+//        this.day = day;
+//    }
+//
+//    public String getIssentsms() {
+//        return Issentsms;
+//    }
+//
+//    public void setIssentsms(String Issentsms) {
+//        this.Issentsms = Issentsms;
+//    }
+//
+//    public String getFee() {
+//        return fee;
+//    }
+//
+//    public void setFee(String fee) {
+//        this.fee = fee;
+//    }
+//
+//    public String getFroDate() {
+//        return froDate;
+//    }
+//
+//    public void setFroDate(String froDate) {
+//        this.froDate = froDate;
+//    }
+//
+//    public String getToDate() {
+//        return toDate;
+//    }
+//
+//    public void setToDate(String toDate) {
+//        this.toDate = toDate;
+//    }
+//
+//    public String getChannel() {
+//        return channel;
+//    }
+//
+//    public void setChannel(String channel) {
+//        this.channel = channel;
+//    }
+//
+//    public String getMsgType() {
+//        return msgType;
+//    }
+//
+//    public void setMsgType(String msgType) {
+//        this.msgType = msgType;
+//    }
+//
+//    public String getMessage() {
+//        return message;
+//    }
+//
+//    public void setMessage(String message) {
+//        this.message = message;
+//    }
+//
+//    public String getBenIsdn() {
+//        return benIsdn;
+//    }
+//
+//    public void setBenIsdn(String benIsdn) {
+//        this.benIsdn = benIsdn;
+//    }
+//
+//    public String getIsdn() {
+//        return isdn;
+//    }
+//
+//    public void setIsdn(String isdn) {
+//        this.isdn = isdn;
+//    }
+//
+//    public String getAmount() {
+//        return amount;
+//    }
+//
+//    public void setAmount(String amount) {
+//        this.amount = amount;
+//    }
+//
+//    public String getParam() {
+//        return param;
+//    }
+//
+//    public void setParam(String param) {
+//        this.param = param;
+//    }
+//
+//    public String getIsSms() {
+//        return isSms;
+//    }
+//
+//    public void setIsSms(String isSms) {
+//        this.isSms = isSms;
+//    }
+//
+//    public String getMsisdn() {
+//        return msisdn;
+//    }
+//
+//    public void setMsisdn(String msisdn) {
+//        this.msisdn = msisdn;
+//    }
+//
+//    public String getRemainSecond() {
+//        return remainSecond;
+//    }
+//
+//    public void setRemainSecond(String remainSecond) {
+//        this.remainSecond = remainSecond;
+//    }
+//
+//    public String getUser() {
+//        return user;
+//    }
+//
+//    public void setUser(String user) {
+//        this.user = user;
+//    }
+//
+//    public String getPass() {
+//        return pass;
+//    }
+//
+//    public void setPass(String pass) {
+//        this.pass = pass;
+//    }
+//
+//    @Override
+//    public String toString() {
+//        StringBuilder br = new StringBuilder();
+//        if (user != null) {
+//            br.append("<User>").append(user).append("</User>").append("\n");
+//        }
+//        if (user != null) {
+//            br.append("<Msisdn>").append(msisdn).append("</Msisdn>").append("\n");
+//        }
+//        if (service != null) {
+//            br.append("<Service>").append(service).append("</Service>").append("\n");
+//        }
+//        if (param != null) {
+//            br.append("<Param>").append(param).append("</Param>").append("\n");
+//        }
+//        if (message != null) {
+//            br.append("<Message>").append(message).append("</Message>").append("\n");
+//        }
+//        if (msgType != null) {
+//            br.append("<MsgType>").append(msgType).append("</MsgTypec>").append("\n");
+//        }
+//        if (channel != null) {
+//            br.append("<Channel>").append(channel).append("</Channel>").append("\n");
+//        }
+//        return br.toString();
+//    }
+//
+//    public String getRequestId() {
+//        return requestId;
+//    }
+//
+//    public void setRequestId(String requestId) {
+//        this.requestId = requestId;
+//    }
+//
+//    public String getUserId() {
+//        return userId;
+//    }
+//
+//    public void setUserId(String userId) {
+//        this.userId = userId;
+//    }
+//
+//    public String getReceiverId() {
+//        return receiverId;
+//    }
+//
+//    public void setReceiverId(String receiverId) {
+//        this.receiverId = receiverId;
+//    }
+//
+//    public String getServiceId() {
+//        return serviceId;
+//    }
+//
+//    public void setServiceId(String serviceId) {
+//        this.serviceId = serviceId;
+//    }
+//
+//    public String getInfo() {
+//        return info;
+//    }
+//
+//    public void setInfo(String info) {
+//        this.info = info;
+//    }
+//
+//    public String getReceiveTime() {
+//        return receiveTime;
+//    }
+//
+//    public void setReceiveTime(String receiveTime) {
+//        this.receiveTime = receiveTime;
+//    }
+//
+//    public String getService() {
+//        return service;
+//    }
+//
+//    public void setService(String service) {
+//        this.service = service;
+//    }
+//}

+ 236 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Response.java

@@ -0,0 +1,236 @@
+/*
+ * Copyright 2011 Viettel Telecom. All rights reserved.
+ * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
+ */
+package com.vas.ws.obj;
+
+import java.util.List;
+
+/**
+ *
+ * @author
+ */
+public class Response {
+
+    private String errorCode;
+    private String resultCode;
+    private String content;
+    private String msisdn;
+    private String registerTime;
+    private String expireTime;
+    private String lockUntil;
+    private String status;
+    private String extendStatus;
+    private String lastExtend;
+    private String lastLogin;
+    private List<ProductInfo> listProduct;
+    private List<TopPlayer> listTopPlayer;
+    private List<RegInfoWs> listRegInfo;
+    private List<LuckyCode> listLuckyCode;
+    private List<PrizeWinner> listWinner;
+    private List<UserCoinObj> listUserCoin;
+    private List<HistoryPrizeObj> listHistoryPlay;
+    private List<PrizeObj> listPrize;
+    private List<TicketUserObj> listTicket;
+    private List<TicketPackgObj> listTicketPackg;
+    private int totalPage;
+    private SpinResultObj spinResult;
+    private UserCoinObj userCoin;
+
+    public List<TicketUserObj> getListTicket() {
+        return listTicket;
+    }
+
+    public void setListTicket(List<TicketUserObj> listTicket) {
+        this.listTicket = listTicket;
+    }
+
+    public List<TicketPackgObj> getListTicketPackg() {
+        return listTicketPackg;
+    }
+
+    public void setListTicketPackg(List<TicketPackgObj> listTicketPackg) {
+        this.listTicketPackg = listTicketPackg;
+    }
+
+    public List<HistoryPrizeObj> getListHistoryPlay() {
+        return listHistoryPlay;
+    }
+
+    public void setListHistoryPlay(List<HistoryPrizeObj> listHistoryPlay) {
+        this.listHistoryPlay = listHistoryPlay;
+    }
+
+    public UserCoinObj getUserCoin() {
+        return userCoin;
+    }
+
+    public void setUserCoin(UserCoinObj userCoin) {
+        this.userCoin = userCoin;
+    }
+
+    public List<PrizeObj> getListPrize() {
+        return listPrize;
+    }
+
+    public void setListPrize(List<PrizeObj> listPrize) {
+        this.listPrize = listPrize;
+    }
+
+    public List<UserCoinObj> getListUserCoin() {
+        return listUserCoin;
+    }
+
+    public void setListUserCoin(List<UserCoinObj> listUserCoin) {
+        this.listUserCoin = listUserCoin;
+    }
+
+    public SpinResultObj getSpinResult() {
+        return spinResult;
+    }
+
+    public void setSpinResult(SpinResultObj spinResult) {
+        this.spinResult = spinResult;
+    }
+
+    public int getTotalPage() {
+        return totalPage;
+    }
+
+    public void setTotalPage(int totalPage) {
+        this.totalPage = totalPage;
+    }
+
+    public List<PrizeWinner> getListWinner() {
+        return listWinner;
+    }
+
+    public void setListWinner(List<PrizeWinner> listWinner) {
+        this.listWinner = listWinner;
+    }
+
+    public List<LuckyCode> getListLuckyCode() {
+        return listLuckyCode;
+    }
+
+    public void setListLuckyCode(List<LuckyCode> listLuckyCode) {
+        this.listLuckyCode = listLuckyCode;
+    }
+
+    public List<RegInfoWs> getListRegInfo() {
+        return listRegInfo;
+    }
+
+    public void setListRegInfo(List<RegInfoWs> listRegInfo) {
+        this.listRegInfo = listRegInfo;
+    }
+
+    public String getResultCode() {
+        return resultCode;
+    }
+
+    public void setResultCode(String resultCode) {
+        this.resultCode = resultCode;
+    }
+
+    public List<TopPlayer> getListTopPlayer() {
+        return listTopPlayer;
+    }
+
+    public void setListTopPlayer(List<TopPlayer> listTopPlayer) {
+        this.listTopPlayer = listTopPlayer;
+    }
+
+    public List<ProductInfo> getListProduct() {
+        return listProduct;
+    }
+
+    public void setListProduct(List<ProductInfo> listProduct) {
+        this.listProduct = listProduct;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getRegisterTime() {
+        return registerTime;
+    }
+
+    public void setRegisterTime(String registerTime) {
+        this.registerTime = registerTime;
+    }
+
+    public String getExpireTime() {
+        return expireTime;
+    }
+
+    public void setExpireTime(String expireTime) {
+        this.expireTime = expireTime;
+    }
+
+    public String getLockUntil() {
+        return lockUntil;
+    }
+
+    public void setLockUntil(String lockUntil) {
+        this.lockUntil = lockUntil;
+    }
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+    public String getExtendStatus() {
+        return extendStatus;
+    }
+
+    public void setExtendStatus(String extendStatus) {
+        this.extendStatus = extendStatus;
+    }
+
+    public String getLastExtend() {
+        return lastExtend;
+    }
+
+    public void setLastExtend(String lastExtend) {
+        this.lastExtend = lastExtend;
+    }
+
+    public String getLastLogin() {
+        return lastLogin;
+    }
+
+    public void setLastLogin(String lastLogin) {
+        this.lastLogin = lastLogin;
+    }
+
+    public String getErrorCode() {
+        return errorCode;
+    }
+
+    public void setErrorCode(String errorCode) {
+        this.errorCode = errorCode;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+    @Override
+    public String toString() {
+        return errorCode + "|" + content;
+    }
+}

+ 54 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/ResponseMps.java

@@ -0,0 +1,54 @@
+/*
+ * Copyright 2011 Viettel Telecom. All rights reserved.
+ * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author
+ */
+public class ResponseMps {
+
+    private String errorCode;
+    private String content;
+    private Questions question;
+    private Boolean correct;
+
+    public Boolean isCorrect() {
+        return correct;
+    }
+
+    public void setCorrect(Boolean correct) {
+        this.correct = correct;
+    }
+
+    public String getErrorCode() {
+        return errorCode;
+    }
+
+    public void setErrorCode(String errorCode) {
+        this.errorCode = errorCode;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+    public Questions getQuestion() {
+        return question;
+    }
+
+    public void setQuestion(Questions question) {
+        this.question = question;
+    }
+
+    @Override
+    public String toString() {
+        return errorCode + "|" + content;
+    }
+}

+ 63 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/ResponseQuest.java

@@ -0,0 +1,63 @@
+/*
+ * Copyright 2011 Viettel Telecom. All rights reserved.
+ * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author
+ */
+public class ResponseQuest {
+
+    private String errorCode;
+    private String resultCode;
+    private String content;
+    private HistoryPlayObj playInfo;
+    private SpinResultObj spinInfo;
+
+    public SpinResultObj getSpinInfo() {
+        return spinInfo;
+    }
+
+    public void setSpinInfo(SpinResultObj spinInfo) {
+        this.spinInfo = spinInfo;
+    }
+
+    public String getErrorCode() {
+        return errorCode;
+    }
+
+    public void setErrorCode(String errorCode) {
+        this.errorCode = errorCode;
+    }
+
+    public String getResultCode() {
+        return resultCode;
+    }
+
+    public void setResultCode(String resultCode) {
+        this.resultCode = resultCode;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+    public HistoryPlayObj getPlayInfo() {
+        return playInfo;
+    }
+
+    public void setPlayInfo(HistoryPlayObj playInfo) {
+        this.playInfo = playInfo;
+    }
+
+    @Override
+    public String toString() {
+        return errorCode + "|" + content;
+    }
+}

+ 55 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Route.java

@@ -0,0 +1,55 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author MinhNH
+ */
+public class Route {
+    
+    private String name;
+    private String prefixMsisdn;
+    private String listDbName;
+    
+    public String getListDbName() {
+        return listDbName;
+    }
+    
+    public void setListDbName(String listDbName) {
+        this.listDbName = listDbName;
+    }
+    
+    public String getName() {
+        return name;
+    }
+    
+    public void setName(String name) {
+        this.name = name;
+    }
+    
+    public String getPrefixMsisdn() {
+        return prefixMsisdn;
+    }
+    
+    public void setPrefixMsisdn(String prefixMsisdn) {
+        this.prefixMsisdn = prefixMsisdn;
+    }
+    
+    public String getDbNamebyMsisdn(String msisdn) {
+        String result = "";
+        String[] listDb = listDbName.split(",");
+        String[] listPrefix = prefixMsisdn.split(",");
+        for (int i = 0; i < listPrefix.length; i++) {
+            if (msisdn.substring(0, listPrefix[i].length()).equals(listPrefix[i])) {
+                int tail = Integer.parseInt(msisdn.substring(msisdn.length() - 2, msisdn.length()));
+                int mod = tail % listDb.length;
+                result = listDb[mod];
+                break;
+            }
+        }
+        return result;
+    }
+}

+ 40 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/SmsMtObj.java

@@ -0,0 +1,40 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author Tung
+ */
+public class SmsMtObj {
+
+    private String msisdn;
+    private String message;
+    private String channel;
+
+    public String getChannel() {
+        return channel;
+    }
+
+    public void setChannel(String channel) {
+        this.channel = channel;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getMessage() {
+        return message;
+    }
+
+    public void setMessage(String message) {
+        this.message = message;
+    }
+}

+ 240 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/SpinResultObj.java

@@ -0,0 +1,240 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author sungroup
+ */
+public class SpinResultObj {
+
+    private int prizeId;
+    private long playId;
+    private long playDetailId;
+    private int topicId;
+    private int passed;
+    private int addedPoint;
+    private int addedMoney;
+    private int loyaltyPoint;
+    private int luckyTicket;
+    private String errorCode;
+
+    // play times
+    private int totalTurn;
+//    private int usedTurn;
+//    private int remainTurn;
+
+    // lucky draw
+//    private int totalSpin;
+//    private int usedSpin;
+//    private int remainSpin;
+//    private long luckySpinId;
+    private int dailyCoin;
+    private int monthlyCoin;
+    // ticket
+    private String messageKey;
+    private String ticketList;
+    private String drawTime;
+    private int numTicket;
+    private String publicKey;
+    private int remainTurn;
+
+    public int getRemainTurn() {
+        return remainTurn;
+    }
+
+    public void setRemainTurn(int remainTurn) {
+        this.remainTurn = remainTurn;
+    }
+
+    public String getPublicKey() {
+        return publicKey;
+    }
+
+    public void setPublicKey(String publicKey) {
+        this.publicKey = publicKey;
+    }
+
+    public int getTotalTurn() {
+        return totalTurn;
+    }
+
+    public void setTotalTurn(int totalTurn) {
+        this.totalTurn = totalTurn;
+    }
+
+    public int getAddedMoney() {
+        return addedMoney;
+    }
+
+    public void setAddedMoney(int addedMoney) {
+        this.addedMoney = addedMoney;
+    }
+
+    public int getLoyaltyPoint() {
+        return loyaltyPoint;
+    }
+
+    public void setLoyaltyPoint(int loyaltyPoint) {
+        this.loyaltyPoint = loyaltyPoint;
+    }
+
+//    public int getUsedTurn() {
+//        return usedTurn;
+//    }
+//
+//    public void setUsedTurn(int usedTurn) {
+//        this.usedTurn = usedTurn;
+//    }
+//
+//    public int getRemainTurn() {
+//        return remainTurn;
+//    }
+//
+//    public void setRemainTurn(int remainTurn) {
+//        this.remainTurn = remainTurn;
+//    }
+//    public long getLuckySpinId() {
+//        return luckySpinId;
+//    }
+//
+//    public void setLuckySpinId(long luckySpinId) {
+//        this.luckySpinId = luckySpinId;
+//    }
+
+//    public int getRemainSpin() {
+//        return remainSpin;
+//    }
+//
+//    public void setRemainSpin(int remainSpin) {
+//        this.remainSpin = remainSpin;
+//    } 
+    public int getDailyCoin() {
+        return dailyCoin;
+    }
+
+    public void setDailyCoin(int dailyCoin) {
+        this.dailyCoin = dailyCoin;
+    }
+
+    public int getMonthlyCoin() {
+        return monthlyCoin;
+    }
+
+    public void setMonthlyCoin(int monthlyCoin) {
+        this.monthlyCoin = monthlyCoin;
+    }
+
+    public String getMessageKey() {
+        return messageKey;
+    }
+
+    public void setMessageKey(String messageKey) {
+        this.messageKey = messageKey;
+    }
+
+    public String getTicketList() {
+        return ticketList;
+    }
+
+    public void setTicketList(String ticketList) {
+        this.ticketList = ticketList;
+    }
+
+    public String getDrawTime() {
+        return drawTime;
+    }
+
+    public void setDrawTime(String drawTime) {
+        this.drawTime = drawTime;
+    }
+
+    public int getNumTicket() {
+        return numTicket;
+    }
+
+    public void setNumTicket(int numTicket) {
+        this.numTicket = numTicket;
+    }
+
+    public long getPlayDetailId() {
+        return playDetailId;
+    }
+
+    public void setPlayDetailId(long playDetailId) {
+        this.playDetailId = playDetailId;
+    }
+
+    public int getLuckyTicket() {
+        return luckyTicket;
+    }
+
+    public void setLuckyTicket(int luckyTicket) {
+        this.luckyTicket = luckyTicket;
+    }
+
+    public int getPassed() {
+        return passed;
+    }
+
+    public void setPassed(int passed) {
+        this.passed = passed;
+    }
+
+    public int getAddedPoint() {
+        return addedPoint;
+    }
+
+    public void setAddedPoint(int addedPoint) {
+        this.addedPoint = addedPoint;
+    }
+
+    public long getPlayId() {
+        return playId;
+    }
+
+    public void setPlayId(long playId) {
+        this.playId = playId;
+    }
+
+    public int getTopicId() {
+        return topicId;
+    }
+
+    public void setTopicId(int topicId) {
+        this.topicId = topicId;
+    }
+
+    public String getErrorCode() {
+        return errorCode;
+    }
+
+    public void setErrorCode(String errorCode) {
+        this.errorCode = errorCode;
+    }
+
+//    public int getTotalSpin() {
+//        return totalSpin;
+//    }
+//
+//    public void setTotalSpin(int totalSpin) {
+//        this.totalSpin = totalSpin;
+//    }
+
+//    public int getUsedSpin() {
+//        return usedSpin;
+//    }
+//
+//    public void setUsedSpin(int usedSpin) {
+//        this.usedSpin = usedSpin;
+//    }
+    public int getPrizeId() {
+        return prizeId;
+    }
+
+    public void setPrizeId(int prizeId) {
+        this.prizeId = prizeId;
+    }
+}

+ 50 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/SubInfo.java

@@ -0,0 +1,50 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author Sungroup
+ */
+public class SubInfo {
+
+    private int questionOrder;
+    private long lastTime;
+    private Questions question;
+
+    public SubInfo() {
+
+    }
+
+    public SubInfo(int questionOrder, long lastTime) {
+        this.questionOrder = questionOrder;
+        this.lastTime = lastTime;
+    }
+
+    public int getQuestionOrder() {
+        return questionOrder;
+    }
+
+    public void setQuestionOrder(int questionOrder) {
+        this.questionOrder = questionOrder;
+    }
+
+    public long getLastTime() {
+        return lastTime;
+    }
+
+    public void setLastTime(long lastTime) {
+        this.lastTime = lastTime;
+    }
+
+    public Questions getQuestion() {
+        return question;
+    }
+
+    public void setQuestion(Questions question) {
+        this.question = question;
+    }
+
+}

+ 472 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/Subscriber.java

@@ -0,0 +1,472 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ *
+ * @author BinhBM
+ */
+public class Subscriber
+{
+    protected Long subId;
+    protected String isdn;
+    protected String imsi;
+    protected String serial;
+    protected Long custId;
+    protected String custName;
+    protected String subName;
+    protected Date birthDate;
+    protected String gender;
+    protected String productCode;
+    protected String orgProductCode;
+    protected String actStatus;
+    protected Date validDatetime;
+    protected Date staDatetime;
+    protected Date endDatetime;
+    protected Long status;
+    protected Long finishReasonId;
+    protected String userCreated;
+    protected String shopCode;
+    protected String firstShopCode;
+    protected Long staffId;
+    protected String subType;
+    protected String vip;
+    protected String subCosHuawei;
+    protected String subCosZte;
+    protected String startMoney;
+    protected String passWord;
+    protected Long quota;
+    protected String promotionCode;
+    protected String regType;
+    protected Long reasonDepositId;
+    protected String ipStatic;
+    protected Long isNewSub;
+    protected Long offerId;
+    protected String offerName;
+    protected Date changeDatetime;
+    Map resourceMap = new HashMap();
+    protected Map attributeMap = new HashMap();
+    protected Map vasMap = new HashMap();
+    protected Map vasCheckBoxMap = new HashMap();
+    protected String message;
+    protected String address;
+    protected String province;
+    protected String district;
+    protected String precinct;
+
+    protected Long contractId;
+
+    // add by TuanTM2 - 17/12/2009
+    protected Long numResetZone;
+
+    public String getAddress() {
+        return address;
+    }
+
+    public void setAddress(String address) {
+        this.address = address;
+    }
+
+    public String getDistrict() {
+        return district;
+    }
+
+    public void setDistrict(String district) {
+        this.district = district;
+    }
+
+    public String getPrecinct() {
+        return precinct;
+    }
+
+    public void setPrecinct(String precinct) {
+        this.precinct = precinct;
+    }
+
+    public String getProvince() {
+        return province;
+    }
+
+    public void setProvince(String province) {
+        this.province = province;
+    }
+
+    public Long getNumResetZone() {
+        return numResetZone;
+    }
+
+    public void setNumResetZone(Long numResetZone) {
+        this.numResetZone = numResetZone;
+    }
+    
+
+    public Map getAttributeMap() {
+        return attributeMap;
+    }
+
+    public void setAttributeMap(Map attributeMap) {
+        this.attributeMap = attributeMap;
+    }
+
+    public Date getBirthDate() {
+        return birthDate;
+    }
+
+    public void setBirthDate(Date birthDate) {
+        this.birthDate = birthDate;
+    }
+
+//    public Date getCreateDate() {
+//        return createDate;
+//    }
+//
+//    public void setCreateDate(Date createDate) {
+//        this.createDate = createDate;
+//    }
+
+    public Long getCustId() {
+        return custId;
+    }
+
+    public void setCustId(Long custId) {
+        this.custId = custId;
+    }
+
+    public Date getEndDatetime() {
+        return endDatetime;
+    }
+
+    public void setEndDatetime(Date endDatetime) {
+        this.endDatetime = endDatetime;
+    }
+
+    public Long getFinishReasonId() {
+        return finishReasonId;
+    }
+
+    public void setFinishReasonId(Long finishReasonId) {
+        this.finishReasonId = finishReasonId;
+    }
+
+    public String getGender() {
+        return gender;
+    }
+
+    public void setGender(String gender) {
+        this.gender = gender;
+    }
+
+    public String getIpStatic() {
+        return ipStatic;
+    }
+
+    public void setIpStatic(String ipStatic) {
+        this.ipStatic = ipStatic;
+    }
+
+    public Long getIsNewSub() {
+        return isNewSub;
+    }
+
+    public void setIsNewSub(Long isNewSub) {
+        this.isNewSub = isNewSub;
+    }
+
+    public String getMessage() {
+        return message;
+    }
+
+    public void setMessage(String message) {
+        this.message = message;
+    }
+
+    public Long getOfferId() {
+        return offerId;
+    }
+
+    public void setOfferId(Long offerId) {
+        this.offerId = offerId;
+    }
+
+    public String getProductCode() {
+        return productCode;
+    }
+
+    public void setProductCode(String productCode) {
+        this.productCode = productCode;
+    }
+
+    
+
+    public Long getQuota() {
+        return quota;
+    }
+
+    public void setQuota(Long quota) {
+        this.quota = quota;
+    }
+
+    public Long getReasonDepositId() {
+        return reasonDepositId;
+    }
+
+    public void setReasonDepositId(Long reasonDepositId) {
+        this.reasonDepositId = reasonDepositId;
+    }
+
+//    public Long getRegReasonId() {
+//        return regReasonId;
+//    }
+//
+//    public void setRegReasonId(Long regReasonId) {
+//        this.regReasonId = regReasonId;
+//    }
+
+    public String getPromotionCode() {
+        return promotionCode;
+    }
+
+    public void setPromotionCode(String promotionCode) {
+        this.promotionCode = promotionCode;
+    }
+
+    public String getRegType() {
+        return regType;
+    }
+
+    public void setRegType(String regType) {
+        this.regType = regType;
+    }
+
+    public Map getResourceMap() {
+        return resourceMap;
+    }
+
+    public void setResourceMap(Map resourceMap) {
+        this.resourceMap = resourceMap;
+    }
+
+    public String getShopCode() {
+        return shopCode;
+    }
+
+    public void setShopCode(String shopCode) {
+        this.shopCode = shopCode;
+    }
+
+    public Date getStaDatetime() {
+        return staDatetime;
+    }
+
+    public void setStaDatetime(Date staDatetime) {
+        this.staDatetime = staDatetime;
+    }    
+
+    public Long getSubId() {
+        return subId;
+    }
+
+    public void setSubId(Long subId) {
+        this.subId = subId;
+    }
+
+    public String getSubName() {
+        return subName;
+    }
+
+    public void setSubName(String subName) {
+        this.subName = subName;
+    }
+
+    public String getSubType() {
+        return subType;
+    }
+
+    public void setSubType(String subType) {
+        this.subType = subType;
+    }
+
+    public String getUserCreated() {
+        return userCreated;
+    }
+
+    public void setUserCreated(String userCreated) {
+        this.userCreated = userCreated;
+    }
+
+    public Map getVasCheckBoxMap() {
+        return vasCheckBoxMap;
+    }
+
+    public void setVasCheckBoxMap(Map vasCheckBoxMap) {
+        this.vasCheckBoxMap = vasCheckBoxMap;
+    }
+
+    public Map getVasMap() {
+        return vasMap;
+    }
+
+    public void setVasMap(Map vasMap) {
+        this.vasMap = vasMap;
+    }
+
+    public String getVip() {
+        return vip;
+    }
+
+    public void setVip(String vip) {
+        this.vip = vip;
+    }
+
+    public String getStartMoney() {
+        return startMoney;
+    }
+
+    public void setStartMoney(String startMoney) {
+        this.startMoney = startMoney;
+    }
+
+    public String getSubCosHuawei() {
+        return subCosHuawei;
+    }
+
+    public void setSubCosHuawei(String subCosHuawei) {
+        this.subCosHuawei = subCosHuawei;
+    }
+
+    public String getSubCosZte() {
+        return subCosZte;
+    }
+
+    public void setSubCosZte(String subCosZte) {
+        this.subCosZte = subCosZte;
+    }
+
+    public String getOfferName() {
+        return offerName;
+    }
+
+    public void setOfferName(String offerName) {
+        this.offerName = offerName;
+    }
+
+    public String getCustName() {
+        return custName;
+    }
+
+    public void setCustName(String custName) {
+        this.custName = custName;
+    }
+
+    public String getSerial() {
+        return serial;
+    }
+
+    public void setSerial(String serial) {
+        this.serial = serial;
+    }
+
+    public String getActStatus() {
+        return actStatus;
+    }
+
+    public void setActStatus(String actStatus) {
+        this.actStatus = actStatus;
+    }
+
+    public String getImsi() {
+        return imsi;
+    }
+
+    public void setImsi(String imsi) {
+        this.imsi = imsi;
+    }
+
+    public String getIsdn() {
+        return isdn;
+    }
+
+    public void setIsdn(String isdn) {
+        this.isdn = isdn;
+    }
+
+    public Long getStatus() {
+        return status;
+    }
+
+    public void setStatus(Long status) {
+        this.status = status;
+    }
+    
+   
+
+    public String getPassWord() {
+        return passWord;
+    }
+
+    public void setPassWord(String passWord) {
+        this.passWord = passWord;
+    }
+
+    public Date getValidDatetime()
+    {
+        return validDatetime;
+    }
+
+    public void setValidDatetime(Date validDatetime)
+    {
+        this.validDatetime = validDatetime;
+    }
+
+    public String getOrgProductCode()
+    {
+        return orgProductCode;
+    }
+
+    public void setOrgProductCode(String orgProductCode)
+    {
+        this.orgProductCode = orgProductCode;
+    }
+
+    public Long getStaffId()
+    {
+        return staffId;
+    }
+
+    public void setStaffId(Long staffId)
+    {
+        this.staffId = staffId;
+    }
+
+    public String getFirstShopCode()
+    {
+        return firstShopCode;
+    }
+
+    public void setFirstShopCode(String firstShopCode)
+    {
+        this.firstShopCode = firstShopCode;
+    }
+
+    public Date getChangeDatetime() {
+        return changeDatetime;
+    }
+
+    public void setChangeDatetime(Date changeDatetime) {
+        this.changeDatetime = changeDatetime;
+    }
+
+    public Long getContractId() {
+        return contractId;
+    }
+
+    public void setContractId(Long contractId) {
+        this.contractId = contractId;
+    }
+}

+ 94 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/TicketPackgObj.java

@@ -0,0 +1,94 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author nvta8
+ */
+public class TicketPackgObj {
+
+    public static final String ID = "ID";
+    public static final String TICKET_NUM = "TICKET_NUM";
+    public static final String EXCHANGE_TYPE = "EXCHANGE_TYPE";
+    public static final String EXCHANGE_VALUE = "EXCHANGE_VALUE";
+    public static final String DISPLAY_ORDER = "DISPLAY_ORDER";
+    public static final String STATUS = "STATUS";
+    public static final String DISPLAY_NAME = "DISPLAY_NAME";
+    public static final String PACKAGE_CODE = "PACKAGE_CODE";
+    private int id;
+    private int ticketNum;
+    private int exchangeType;
+    private int exchangeValue;
+    private int displayOrder;
+    private int status;
+    private String displayName;
+    private String packageCode;
+
+    public String getPackageCode() {
+        return packageCode;
+    }
+
+    public void setPackageCode(String packageCode) {
+        this.packageCode = packageCode;
+    }
+
+    public int getId() {
+        return id;
+    }
+
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    public int getTicketNum() {
+        return ticketNum;
+    }
+
+    public void setTicketNum(int ticketNum) {
+        this.ticketNum = ticketNum;
+    }
+
+    public int getExchangeType() {
+        return exchangeType;
+    }
+
+    public void setExchangeType(int exchangeType) {
+        this.exchangeType = exchangeType;
+    }
+
+    public int getExchangeValue() {
+        return exchangeValue;
+    }
+
+    public void setExchangeValue(int exchangeValue) {
+        this.exchangeValue = exchangeValue;
+    }
+
+    public int getDisplayOrder() {
+        return displayOrder;
+    }
+
+    public void setDisplayOrder(int displayOrder) {
+        this.displayOrder = displayOrder;
+    }
+
+    public int getStatus() {
+        return status;
+    }
+
+    public void setStatus(int status) {
+        this.status = status;
+    }
+
+    public String getDisplayName() {
+        return displayName;
+    }
+
+    public void setDisplayName(String displayName) {
+        this.displayName = displayName;
+    }
+
+}

+ 94 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/TicketUserObj.java

@@ -0,0 +1,94 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author nvta8
+ */
+public class TicketUserObj {
+
+    public static final String ID = "ID";
+    public static final String MSISDN = "MSISDN";
+    public static final String TICKET_CODE = "TICKET_CODE";
+    public static final String INSERT_TIME = "INSERT_TIME";
+    public static final String EXPIRE_TIME = "EXPIRE_TIME";
+    public static final String DRAW_TIME = "DRAW_TIME";
+    public static final String TICKET_SRC = "TICKET_SRC";
+    private long id;
+    private String msisdn;
+    private String ticketCode;
+    private String insertTime;
+    private String expireTime;
+    private String drawTime;
+    private int ticketSrc;
+    // prize
+    private int prizeId;
+
+    public int getPrizeId() {
+        return prizeId;
+    }
+
+    public void setPrizeId(int prizeId) {
+        this.prizeId = prizeId;
+    }
+
+    public long getId() {
+        return id;
+    }
+
+    public void setId(long id) {
+        this.id = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public String getTicketCode() {
+        return ticketCode;
+    }
+
+    public void setTicketCode(String ticketCode) {
+        this.ticketCode = ticketCode;
+    }
+
+    public String getInsertTime() {
+        return insertTime;
+    }
+
+    public void setInsertTime(String insertTime) {
+        this.insertTime = insertTime;
+    }
+
+    public String getExpireTime() {
+        return expireTime;
+    }
+
+    public void setExpireTime(String expireTime) {
+        this.expireTime = expireTime;
+    }
+
+    public String getDrawTime() {
+        return drawTime;
+    }
+
+    public void setDrawTime(String drawTime) {
+        this.drawTime = drawTime;
+    }
+
+    public int getTicketSrc() {
+        return ticketSrc;
+    }
+
+    public void setTicketSrc(int ticketSrc) {
+        this.ticketSrc = ticketSrc;
+    }
+
+}

+ 74 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/TopPlayer.java

@@ -0,0 +1,74 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author sungroup
+ */
+public class TopPlayer {
+
+    public static final String ACCOUNT_ID = "ACCOUNT_ID";
+    public static final String POINT = "POINT";
+    private int point;
+    private String accountId;
+    private String msisdn;
+    private int rank;
+    private String money;
+    private String scores;
+
+    public String getMoney() {
+        return money;
+    }
+
+    public void setMoney(String money) {
+        this.money = money;
+    }
+
+    public String getScores() {
+        return scores;
+    }
+
+    public void setScores(String scores) {
+        this.scores = scores;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public int getRank() {
+        return rank;
+    }
+
+    public void setRank(int rank) {
+        this.rank = rank;
+    }
+
+    public int getPoint() {
+        return point;
+    }
+
+    public void setPoint(int point) {
+        this.point = point;
+    }
+
+    public String getAccountId() {
+        return accountId;
+    }
+
+    public void setAccountId(String accountId) {
+        this.accountId = accountId;
+    }
+
+    @Override
+    public String toString() {
+        return accountId;
+    }
+}

+ 93 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/UserCoinObj.java

@@ -0,0 +1,93 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package com.vas.ws.obj;
+
+/**
+ *
+ * @author nvta8hp0
+ */
+public class UserCoinObj {
+
+    public static final String ID = "ID";
+    public static final String MSISDN = "MSISDN";
+    public static final String TOTAL_COIN = "TOTAL_COIN";
+    public static final String START_TIME = "START_TIME";
+    public static final String END_TIME = "END_TIME";
+    public static final String LAST_UPDATE = "LAST_UPDATE";
+    public static final String PERIOD = "PERIOD";
+    private long id;
+    private String msisdn;
+    private long totalCoin;
+    private String startTime;
+    private String endTime;
+    private String lastUpdate;
+    private int rownum;
+    private int period;
+
+    public int getPeriod() {
+        return period;
+    }
+
+    public void setPeriod(int period) {
+        this.period = period;
+    }
+
+    public int getRownum() {
+        return rownum;
+    }
+
+    public void setRownum(int rownum) {
+        this.rownum = rownum;
+    }
+
+    public long getId() {
+        return id;
+    }
+
+    public void setId(long id) {
+        this.id = id;
+    }
+
+    public String getMsisdn() {
+        return msisdn;
+    }
+
+    public void setMsisdn(String msisdn) {
+        this.msisdn = msisdn;
+    }
+
+    public long getTotalCoin() {
+        return totalCoin;
+    }
+
+    public void setTotalCoin(long totalCoin) {
+        this.totalCoin = totalCoin;
+    }
+
+    public String getStartTime() {
+        return startTime;
+    }
+
+    public void setStartTime(String startTime) {
+        this.startTime = startTime;
+    }
+
+    public String getEndTime() {
+        return endTime;
+    }
+
+    public void setEndTime(String endTime) {
+        this.endTime = endTime;
+    }
+
+    public String getLastUpdate() {
+        return lastUpdate;
+    }
+
+    public void setLastUpdate(String lastUpdate) {
+        this.lastUpdate = lastUpdate;
+    }
+
+}

+ 141 - 0
HappyFootballWs/HappyFootballWs/src/com/vas/ws/obj1/WebServiceLog.java

@@ -0,0 +1,141 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.vas.ws.obj;
+
+import java.sql.Timestamp;
+
+/**
+ *
+ * @author tungnv6
+ */
+public class WebServiceLog {
+
+    long Id;
+    double Fee;
+    String IpClient;
+    String Msisdn;
+    String Request;
+    String Response;
+    String ResponseCode;
+    Timestamp RequestTime;
+    Timestamp ResponseTime;
+    String Type;
+    long UserId;
+    String Channel;
+    String UserName;
+    String WsName;
+
+    public String getWsName() {
+        return WsName;
+    }
+
+    public void setWsName(String WsName) {
+        this.WsName = WsName;
+    }
+
+    public String getUserName() {
+        return UserName;
+    }
+
+    public void setUserName(String UserName) {
+        this.UserName = UserName;
+    }
+
+    public String getChannel() {
+        return Channel;
+    }
+
+    public void setChannel(String Channel) {
+        this.Channel = Channel;
+    }
+
+    public double getFee() {
+        return Fee;
+    }
+
+    public void setFee(double Fee) {
+        this.Fee = Fee;
+    }
+
+    public long getId() {
+        return Id;
+    }
+
+    public void setId(long Id) {
+        this.Id = Id;
+    }
+
+    public String getIpClient() {
+        return IpClient;
+    }
+
+    public void setIpClient(String IpClient) {
+        this.IpClient = IpClient;
+    }
+
+    public String getMsisdn() {
+        return Msisdn;
+    }
+
+    public void setMsisdn(String Msisdn) {
+        this.Msisdn = Msisdn;
+    }
+
+    public String getRequest() {
+        return Request;
+    }
+
+    public void setRequest(String Request) {
+        this.Request = Request;
+    }
+
+    public Timestamp getRequestTime() {
+        return RequestTime;
+    }
+
+    public void setRequestTime(Timestamp RequestTime) {
+        this.RequestTime = RequestTime;
+    }
+
+    public String getResponse() {
+        return Response;
+    }
+
+    public void setResponse(String Response) {
+        this.Response = Response;
+    }
+
+    public String getResponseCode() {
+        return ResponseCode;
+    }
+
+    public void setResponseCode(String ResponseCode) {
+        this.ResponseCode = ResponseCode;
+    }
+
+    public Timestamp getResponseTime() {
+        return ResponseTime;
+    }
+
+    public void setResponseTime(Timestamp ResponseTime) {
+        this.ResponseTime = ResponseTime;
+    }
+
+    public String getType() {
+        return Type;
+    }
+
+    public void setType(String Type) {
+        this.Type = Type;
+    }
+
+    public long getUserId() {
+        return UserId;
+    }
+
+    public void setUserId(long UserId) {
+        this.UserId = UserId;
+    }
+}

BIN
HappyFootballWs/VAS_FW_Webservice.jar.zip