Beispiel #1
0
 public static boolean isLogin() {
   Customer customer = Customer.getInstance();
   if (customer.getLogin() == true) {
     return true;
   }
   return false;
 }
Beispiel #2
0
 public static void setCustomer(Customer mc) {
   Customer customer = Customer.getInstance();
   customer.setId(mc.getId());
   customer.setSid(mc.getSid());
   customer.setName(mc.getName());
   customer.setSign(mc.getSign());
   customer.setFace(mc.getFace());
 }
Beispiel #3
0
 public static Customer getCustomer() {
   return Customer.getInstance();
 }
Beispiel #4
0
 public static void setLogin(Boolean status) {
   Customer customer = Customer.getInstance();
   customer.setLogin(status);
 }