Newer
Older
CosmosServer / src / main / java / com / example / cosmos_serversb / models / Users.java
package com.example.cosmos_serversb.models;

import com.example.cosmos_serversb.entities.*;

public class Users {
    User testUser=new User("test", "123456789","http://test.com","testpw","123456789","123456789","http://iconuri/123456789.com");
    public User createUser(String name,String pw,String iconImage) {
        //String uId ="123456789";
        //String token="123456789";
        return testUser;
    }

    public User getUserById() {
        return testUser;
    }

    public User getUserByToken() {
        return testUser;
    }

    public DeleteResult deleteUser() {
        return DeleteResult.SUCCESS;
    }

    public String login() {
        return "123456789";//testToken
    }

    public DeleteResult logout() {
        return DeleteResult.SUCCESS;
    }
}