Ejemplo n.º 1
0
        private static async void _holoOASIS_OnInitialized(object sender, EventArgs e)
        {
            Console.WriteLine("Initialized.");
            Console.WriteLine("Saving Profile...");

            _savedProfile = new NextGenSoftware.OASIS.API.Providers.HoloOASIS.Core.Profile {
                Username = "******", Email = "*****@*****.**", Password = "******", FirstName = "David", LastName = "Ellams", DOB = "11/04/1980", Id = Guid.NewGuid(), Title = "Mr", PlayerAddress = "blahahahaha"
            };
            await _savedProfile.KarmaEarnt(KarmaType.HelpingTheEnvironment, KarmaSourceType.hApp, "Our World", "XR Educational Game To Make The World A Better Place", false);

            await _holoOASIS.SaveProfileAsync(_savedProfile);
        }
 public GenericReference(Core.Profile arena)
 {
     ID    = arena.ProfileID;
     Title = arena.Name;
 }
 public ProfileSettingsUserControl(Core.Profile profile)
 {
     this._profile = profile;
     InitializeComponent();
 }
Ejemplo n.º 4
0
        public Profile FromArena(Core.Profile arena)
        {
            Profile profile = new Profile();


            if (ShouldShow("ProfileID") == true)
            {
                profile.ProfileID = arena.ProfileID;
            }

            if (ShouldShow("ParentID") == true)
            {
                profile.ParentID = arena.ParentProfileID;
            }

            if (ShouldShow("Name") == true)
            {
                profile.Name = arena.Name;
            }

            if (ShouldShow("ProfileType") == true)
            {
                profile.ProfileType = (int)arena.ProfileType;
            }

            if (ShouldShow("ProfileTypeString") == true)
            {
                profile.ProfileTypeString = arena.ProfileType.ToString();
            }

            if (ShouldShow("Active") == true)
            {
                profile.Active = arena.Active;
            }

            if (ShouldShow("ProfileActiveMemberCount") == true)
            {
                profile.ProfileActiveMemberCount = arena.ProfileActiveMemberCount;
            }

            if (ShouldShow("ProfileMemberCount") == true)
            {
                profile.ProfileMemberCount = arena.ProfileMemberCount;
            }

            if (ShouldShow("CampusID") == true && arena.Campus != null)
            {
                profile.CampusID = arena.Campus.CampusId;
            }

            if (ShouldShow("Notes") == true)
            {
                profile.Notes = arena.Notes;
            }

            if (ShouldShow("OwnerID") == true)
            {
                profile.Owner = new GenericReference(arena.Owner);
            }

            if (ShouldShow("CreatedBy") == true)
            {
                profile.CreatedBy = arena.CreatedBy;
            }

            if (ShouldShow("DateCreated") == true)
            {
                profile.DateCreated = arena.DateCreated;
            }

            if (ShouldShow("ModifiedBy") == true)
            {
                profile.ModifiedBy = arena.ModifiedBy;
            }

            if (ShouldShow("DateModified") == true)
            {
                profile.DateModified = arena.DateModified;
            }

            if (ShouldShow("CriticalMembers") == true)
            {
                profile.CriticalMembers = arena.CriticalMembers;
            }

            if (ShouldShow("ActiveMembers") == true)
            {
                profile.ActiveMembers = arena.ActiveMembers;
            }

            if (ShouldShow("InReviewMembers") == true)
            {
                profile.InReviewMembers = arena.InReviewMembers;
            }

            if (ShouldShow("NoContactMembers") == true)
            {
                profile.NoContactMembers = arena.NoContactMembers;
            }

            if (ShouldShow("PendingMembers") == true)
            {
                profile.PendingMembers = arena.PendingMembers;
            }

            if (ShouldShow("TotalMembers") == true)
            {
                profile.TotalMembers = arena.TotalMembers;
            }

            if (ShouldShow("NavigationUrl") == true)
            {
                profile.NavigationUrl = arena.NavigationUrl;
            }

            if (ShouldShow("OwnerRelationshipStrength") == true)
            {
                profile.OwnerRelationshipStrength = arena.OwnerRelationshipStrength;
            }

            if (ShouldShow("PeerRelationshipStrength") == true)
            {
                profile.PeerRelationshipStrength = arena.PeerRelationshipStrength;
            }

            return(profile);
        }
Ejemplo n.º 5
0
 public ProfileSettingsUserControl(Core.Profile profile)
 {
     this._profile = profile;
     InitializeComponent();
 }
Ejemplo n.º 6
0
 public ColourExtractionPluginSelectUserControl(Core.Profile profile)
 {
     this._profile = profile;
     InitializeComponent();
 }
 public LightSetupPluginSelectUserControl(Core.Profile profile)
 {
     this._profile = profile;
     InitializeComponent();
 }
 public ColourExtractionPluginSelectUserControl(Core.Profile profile)
 {
     this._profile = profile;
     InitializeComponent();
 }
 public LightSetupPluginSelectUserControl(Core.Profile profile)
 {
     this._profile = profile;
     InitializeComponent();
 }