Ejemplo n.º 1
0
        public override void FromOSD(OSDMap map)
        {
            PrincipalID   = map["PrincipalID"].AsUUID();
            AllowPublish  = map["AllowPublish"].AsBoolean();
            MaturePublish = map["MaturePublish"].AsBoolean();

            //Interests
            Interests = new ProfileInterests
            {
                WantToMask = map["WantToMask"].AsUInteger(),
                WantToText = map["WantToText"].AsString(),
                CanDoMask  = map["CanDoMask"].AsUInteger(),
                CanDoText  = map["CanDoText"].AsString(),
                Languages  = map["Languages"].AsString()
            };
            //End interests

            try
            {
                if (map.ContainsKey("Notes"))
                {
                    Notes = (OSDMap)OSDParser.DeserializeJson(map["Notes"].AsString());
                }
            }
            catch
            {
            }

            AboutText          = map["AboutText"].AsString();
            FirstLifeImage     = map["FirstLifeImage"].AsUUID();
            FirstLifeAboutText = map["FirstLifeAboutText"].AsString();
            Image           = map["Image"].AsUUID();
            WebURL          = map["WebURL"].AsString();
            Created         = map["Created"].AsInteger();
            DisplayName     = map["DisplayName"].AsString();
            Partner         = map["Partner"].AsUUID();
            Visible         = map["Visible"].AsBoolean();
            AArchiveName    = map["AArchiveName"].AsString();
            CustomType      = map["CustomType"].AsString();
            IMViaEmail      = map["IMViaEmail"].AsBoolean();
            IsNewUser       = map["IsNewUser"].AsBoolean();
            MembershipGroup = map["MembershipGroup"].AsString();
        }
Ejemplo n.º 2
0
        public override void FromOSD(OSDMap map)
        {
            PrincipalID = map["PrincipalID"].AsUUID();
            AllowPublish = map["AllowPublish"].AsBoolean();
            MaturePublish = map["MaturePublish"].AsBoolean();

            //Interests
            Interests = new ProfileInterests
                            {
                                WantToMask = map["WantToMask"].AsUInteger(),
                                WantToText = map["WantToText"].AsString(),
                                CanDoMask = map["CanDoMask"].AsUInteger(),
                                CanDoText = map["CanDoText"].AsString(),
                                Languages = map["Languages"].AsString()
                            };
            //End interests

            try
            {
                if (map.ContainsKey("Notes"))
                    Notes = (OSDMap) OSDParser.DeserializeJson(map["Notes"].AsString());
            }
            catch
            {
            }

            AboutText = map["AboutText"].AsString();
            FirstLifeImage = map["FirstLifeImage"].AsUUID();
            FirstLifeAboutText = map["FirstLifeAboutText"].AsString();
            Image = map["Image"].AsUUID();
            WebURL = map["WebURL"].AsString();
            Created = map["Created"].AsInteger();
            DisplayName = map["DisplayName"].AsString();
            Partner = map["Partner"].AsUUID();
            Visible = map["Visible"].AsBoolean();
            AArchiveName = map["AArchiveName"].AsString();
            CustomType = map["CustomType"].AsString();
            IMViaEmail = map["IMViaEmail"].AsBoolean();
            IsNewUser = map["IsNewUser"].AsBoolean();
            MembershipGroup = map["MembershipGroup"].AsString();
        }