This is the required structure for a parse.com pointer to an object in another table.
Пример #1
0
 public void SetUploader(string id)
 {
     // The uploader is stored in a way that makes the json that parse.com requires for a 'pointer'
     // to an object in another table: in this case the special table of users.
     if (Uploader == null)
     {
         Uploader = new ParseDotComObjectPointer()
         {
             ClassName = "_User"
         }
     }
     ;
     Uploader.ObjectId = id;
 }
Пример #2
0
 public void SetUploader(string id)
 {
     // The uploader is stored in a way that makes the json that parse.com requires for a 'pointer'
     // to an object in another table: in this case the special table of users.
     if (Uploader == null)
         Uploader = new ParseDotComObjectPointer() { ClassName = "_User" };
     Uploader.ObjectId = id;
 }
Пример #3
0
 /// <summary>
 /// Get the language pointers we need to refer to a sequence of languages.
 /// If matching languages don't exist they will be created (requires user to be logged in)
 /// </summary>
 /// <param name="languages"></param>
 /// <returns></returns>
 internal ParseDotComObjectPointer[] GetLanguagePointers(LanguageDescriptor[] languages)
 {
     var result = new ParseDotComObjectPointer[languages.Length];
     for (int i = 0; i < languages.Length; i++)
     {
         var lang = languages[i];
         var id = LanguageId(lang);
         if (id == null)
         {
             var language = CreateLanguage(lang);
             id = language["objectId"].Value;
         }
         result[i] = new ParseDotComObjectPointer() {ClassName = "language", ObjectId = id};
     }
     return result;
 }