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