Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
biosprivacyservice.c
Go to the documentation of this file.
1 
6 {
11 };
12 
14 
18 {
23 };
24 
26 
28 {
29  EBiosPrivacyPermission m_Permission;
30  bool m_IsAllowed;
31 
33  {
34  return ( a.m_Permission == b.m_Permission && a.m_IsAllowed == b.m_IsAllowed );
35  }
36 };
37 
38 
40 
42 
44 {
45  string m_Uid;
46  ref BiosPrivacyPermissionResultArray m_Results;
47 };
48 
50 
52 
54 {
56 
67  proto native EBiosError GetPermissionsAsync(array<string> uid_list, array<EBiosPrivacyPermission> permission_list);
68 
70 
83  proto native EBiosError GetPrivilegeAsync(EBiosPrivacyPrivilege privilege, bool try_resolution);
84 
86 
91  void OnPermissions(BiosPrivacyUidResultArray result_list, EBiosError error)
92  {
93  if (result_list == null)
94  {
95  Print("biapi privacy error: " + error);
96  return;
97  }
98 
99  OnlineServices.OnPermissionsAsync( result_list, error );
100  }
101 
103 
107  void OnPrivilege(EBiosPrivacyPrivilege privilege, EBiosError error)
108  {
109  switch ( privilege )
110  {
111  case EBiosPrivacyPrivilege.MULTIPLAYER_GAMEPLAY:
112  {
113  OnlineServices.OnLoadMPPrivilege( error );
114  break;
115  }
116  case EBiosPrivacyPrivilege.COMMUNICATE_VOICE:
117  {
118  OnlineServices.OnLoadVoicePrivilege( error );
119  break;
120  }
121  }
122  }
123 };
BiosPrivacyService
BiosPrivacyService is used to query privacy permissions for a target user/s.
Definition: biosprivacyservice.c:53
Print
proto void Print(void var)
Prints content of variable to console/log.
MULTIPLAYER_GAMEPLAY
@ MULTIPLAYER_GAMEPLAY
Xbox: represents XPRIVILEGE_MULTIPLAYER_SESSIONS privilege, see Xbox Docs.
Definition: biosprivacyservice.c:21
COMMUNICATE_TEXT
@ COMMUNICATE_TEXT
Xbox: represents CommunicateUsingText permissions, see Xbox Docs.
Definition: biosprivacyservice.c:8
BiosPrivacyPermissionResultArray
array< ref BiosPrivacyPermissionResult > BiosPrivacyPermissionResultArray
Definition: biosprivacyservice.c:39
BiosPrivacyPermissionResult
BiosPrivacyPermissionResult represents the per permission result of the GetPermissionsAsync reqeust.
Definition: biosprivacyservice.c:27
COMMUNICATE_VOICE
@ COMMUNICATE_VOICE
Xbox: represents CommunicateUsingVoice permissions, see Xbox Docs.
Definition: biosprivacyservice.c:7
EBiosError
EBiosError
Possible Error codes for bios API. This is the list of errors that can be returned from bios API....
Definition: bioserrormodule.c:6
EBiosPrivacyPrivilege
EBiosPrivacyPrivilege
EBiosPrivacyPrivilege represents possible privacy privileges.
Definition: biosprivacyservice.c:17
MULTIPLAYER_LOBBY
@ MULTIPLAYER_LOBBY
Xbox: represents XPRIVILEGE_MULTIPLAYER_PARTIES privilege, see Xbox Docs.
Definition: biosprivacyservice.c:22
array
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition: isboxcollidinggeometryproxyclasses.c:27
EBiosPrivacyPermission
EBiosPrivacyPermission
EBiosPrivacyPermission represents possible privacy permissions.
Definition: biosprivacyservice.c:5
BiosPrivacyUidResult
BiosPrivacyUidResult represents the per user result of the GetPermissionsAsync request.
Definition: biosprivacyservice.c:43
BiosPrivacyUidResultArray
array< ref BiosPrivacyUidResult > BiosPrivacyUidResultArray
Definition: biosprivacyservice.c:49
VIEW_PRESENCE
@ VIEW_PRESENCE
Xbox: represents ViewTargetPresence permissions, see Xbox Docs.
Definition: biosprivacyservice.c:10
OnlineServices
Definition: onlineservices.c:1
VIEW_PROFILE
@ VIEW_PROFILE
Xbox: represents ViewTargetProfile permissions, see Xbox Docs.
Definition: biosprivacyservice.c:9