Exemplo n.º 1
0
    public static int setUserInfo(string location, string signature, string singer, int sex, string rhythm, string emotion, string type, string language)
    {
        Modeluserinfo userinfo = new Modeluserinfo();

        userinfo.userId        = new inputuserinfo().getId();
        userinfo.userLocation  = location;
        userinfo.userSignature = signature;
        userinfo.userSinger    = singer;
        userinfo.userSex       = sex;
        userinfo.userRhythm    = rhythm;
        userinfo.userEmotion   = emotion;
        userinfo.userType      = type;
        userinfo.userLanguage  = language;
        return(blluserinfo.updateUserInfo(userinfo));
    }
Exemplo n.º 2
0
    public static int setUserInfo(string username, string userid, string usersex, string userlocation, string usersignature, string userrhythm, string useremotion, string usertype, string userlanguage, string usersinger)
    {
        Modeluserinfo userinfo = new Modeluserinfo();

        userinfo.userId        = int.Parse(userid);
        userinfo.userSex       = int.Parse(usersex);
        userinfo.userLocation  = userlocation;
        userinfo.userSignature = usersignature;
        userinfo.userRhythm    = userrhythm;
        userinfo.userEmotion   = useremotion;
        userinfo.userType      = usertype;
        userinfo.userLanguage  = userlanguage;
        userinfo.userSinger    = usersinger;
        blluserinfo.updateUserInfo(userinfo);
        blluser.updateUserName(int.Parse(userid), username);
        new updateuserinfo().updateusername(username);
        return(1);
    }