aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices-Source/OpenGrid.Framework.Data/UserProfileData.cs
blob: 3f4276203f6cd351e9ab404905b77b756d9de1cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;

namespace OpenGrid.Framework.Data
{
    public class UserProfileData
    {
        public LLUUID UUID;
        public string username;    // The configurable part of the users username
        public string surname;     // The users surname (can be used to indicate user class - eg 'Test User' or 'Test Admin')

        public string passwordHash; // Hash of the users password
        public string passwordSalt; // Salt for the users password

        public ulong homeRegion;       // RegionHandle of home
        public LLVector3 homeLocation; // Home Location inside the sim
        public LLVector3 homeLookAt;   // Coordinates where the user is looking


        public int created;    // UNIX Epoch Timestamp (User Creation)
        public int lastLogin;  // UNIX Epoch Timestamp (Last Login Time)

        public string userInventoryURI; // URI to inventory server for this user
        public string userAssetURI;     // URI to asset server for this user

        public uint profileCanDoMask; // Profile window "I can do" mask
        public uint profileWantDoMask; // Profile window "I want to" mask

        public string profileAboutText; // My about window text
        public string profileFirstText; // First Life Text

        public LLUUID profileImage; // My avatars profile image
        public LLUUID profileFirstImage; // First-life image
        public UserAgentData currentAgent; // The users last agent
    }

    public class UserAgentData
    {
        public LLUUID UUID;             // Account ID
        public string agentIP;          // The IP of the agent
        public uint agentPort;          // The port of the agent
        public bool agentOnline;        // The online status of the agent
        public LLUUID sessionID;        // The session ID for the agent (used by client)
        public LLUUID secureSessionID;  // The secure session ID for the agent (used by client)
        public LLUUID regionID;         // The region ID the agent occupies
        public int loginTime;          // EPOCH based Timestamp
        public int logoutTime;         // Timestamp or 0 if N/A
        public LLUUID currentRegion;    // UUID of the users current region
        public ulong currentHandle;     // RegionHandle of the users current region
        public LLVector3 currentPos;    // Current position in the region
    }
}