public PXR_AchievementDefinitionList(AndroidJavaObject msg) { var count = PXR_AchievementAPI.UPxr_AchievementDefinitionArrayGetSize(msg); data = new List <PXR_AchievementDefinition>(count); for (int i = 0; i < count; i++) { data.Add(new PXR_AchievementDefinition(PXR_AchievementAPI.UPxr_AchievementDefinitionArrayGetElement(msg, i))); } nextUrl = PXR_AchievementAPI.UPxr_AchievementDefinitionArrayGetNextUrl(msg); }