/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.xmr.net.client;

import com.xmr.core.Log;
import java.sql.ResultSet;

/**
 *
 * @author Admin
 */
public class SessionInfo {
    private Habbo Info;
	
	public void setDetails(Session client, Habbo Info, ResultSet Row) {
		
		try {
			
			this.Info = Info;
			
			if (Row != null) {
				
			    getInfo().setId(Row.getInt("id"));
			    getInfo().setName(Row.getString("username"));
			    getInfo().setFigure(Row.getString("figure"));
			    getInfo().setMotto(Row.getString("motto"));
			    getInfo().setGender(Row.getString("gender"));
			    getInfo().setCredits(Row.getInt("coins"));
			    
				//Cache all buddies and user requests, oh wait, you get/have none

			    
			}
		} catch (Exception e) {
			Log.WriteWarning("Something went wrong inside the session info class");
		}
	}
	private Habbo getInfo() {
		return Info;
	}
}

