private Galaxy.Api.GalaxyID StringToGalaxyID(string stringID) { ulong ulongID = ulong.Parse(stringID); Galaxy.Api.GalaxyID galaxyID = new Galaxy.Api.GalaxyID(ulongID); return(galaxyID); }
void DisplayFriendList() { uint friendsCount = GalaxyManager.Instance.Friends.GetFriendCount(); for (uint i = 0; i < friendsCount; i++) { Galaxy.Api.GalaxyID galaxyID = null; Galaxy.Api.PersonaState personaStateEnum = Galaxy.Api.PersonaState.PERSONA_STATE_OFFLINE; string personaStateName = null; GameObject currentObject = null; galaxyID = GalaxyManager.Instance.Friends.GetFriendByIndex(i); personaStateEnum = GalaxyManager.Instance.Friends.GetFriendPersonaState(galaxyID); personaStateEnumToStringMap.TryGetValue(personaStateEnum, out personaStateName); currentObject = Instantiate(entryPrefab, entries.transform); currentObject.transform.GetChild(0).GetComponent <Text>().text = GalaxyManager.Instance.Friends.GetFriendPersonaName(galaxyID); currentObject.transform.GetChild(1).GetComponent <Text>().text = (personaStateName != null) ? personaStateName : "Unknown"; entryList.Add(currentObject); } }
private void DownloadFileFromUser(string fileName, string stringGalaxyID) { Galaxy.Api.GalaxyID realGalaxyID; realGalaxyID = new Galaxy.Api.GalaxyID(ulong.Parse(stringGalaxyID)); GalaxyManager.Instance.Storage.DownloadSharedFileFromUser(realGalaxyID, fileName); }