Skip to content

Instantly share code, notes, and snippets.

@pbrewczynski
Created November 6, 2014 09:07
Show Gist options
  • Save pbrewczynski/4f8f204f14ae82f9ea80 to your computer and use it in GitHub Desktop.
Save pbrewczynski/4f8f204f14ae82f9ea80 to your computer and use it in GitHub Desktop.
NSDictionary *params = @{
@"added" : @[
],
@"removed" : @[],
@"updated" : @{
@"3" : [repetition_phrase_descriptor createDictionaryFromFields]
},
@"my_version_id" : self.currentUser.version_id
};
NSLog(@"params %@", params);
// NSLogOutput
2014-11-06 10:03:50.265 Twigit[49951:3282339] params {
added = (
);
"my_version_id" = 93;
removed = (
);
updated = {
3 = { /* HERE SHOULD BE THE "3" NOT 3 without quotation makrs */
"easiness_factor" = "2.6"; /* this is nsnumber, why it is with quotattion makrs ? */
"last_interval_in_days" = 1;
"next_repetition_date" = 1415351023;
"phrase_descriptor_id" = 2521;
"repetition_count" = 1;
"repetition_phrase_descriptor_id" = 25;
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment