Esempio n. 1
0
 public Challenge(IntPtr o)
 {
     CreationType = CAPI.ovr_Challenge_GetCreationType(o);
     Description  = CAPI.ovr_Challenge_GetDescription(o);
     EndDate      = CAPI.ovr_Challenge_GetEndDate(o);
     ID           = CAPI.ovr_Challenge_GetID(o);
     {
         var pointer = CAPI.ovr_Challenge_GetInvitedUsers(o);
         InvitedUsers = new UserList(pointer);
         if (pointer == IntPtr.Zero)
         {
             InvitedUsersOptional = null;
         }
         else
         {
             InvitedUsersOptional = InvitedUsers;
         }
     }
     Leaderboard = new Leaderboard(CAPI.ovr_Challenge_GetLeaderboard(o));
     {
         var pointer = CAPI.ovr_Challenge_GetParticipants(o);
         Participants = new UserList(pointer);
         if (pointer == IntPtr.Zero)
         {
             ParticipantsOptional = null;
         }
         else
         {
             ParticipantsOptional = Participants;
         }
     }
     StartDate  = CAPI.ovr_Challenge_GetStartDate(o);
     Title      = CAPI.ovr_Challenge_GetTitle(o);
     Visibility = CAPI.ovr_Challenge_GetVisibility(o);
 }
Esempio n. 2
0
 public void SetVisibility(ChallengeVisibility value)
 {
     CAPI.ovr_ChallengeOptions_SetVisibility(Handle, value);
 }