JSON interface to folder subscriptions

This commit is contained in:
Ludovic Marcotte
2014-07-24 14:00:57 -04:00
parent b52289904f
commit 4c21a050d9
3 changed files with 14 additions and 16 deletions
+2 -4
View File
@@ -442,10 +442,8 @@
[response setStatus: 200];
[response setHeader: @"text/plain; charset=utf-8"
forKey: @"Content-Type"];
foldersEnum = [folders objectEnumerator];
while ((currentFolder = [foldersEnum nextObject]))
[response appendContentString:
[currentFolder keysWithFormat: @";%{displayName}:%{name}:%{type}:%{formattedName}"]];
[response appendContentString: [folders JSONRepresentation]];
return response;
}