RestKit API映射

时间:2013-07-31 10:05:49

标签: ios xcode4.5 restkit

response =     {
    result =         {
        Accounts =             {
            row =                 (
                                    {
                    FL =                         (
                                                    {
                            content = 892498000000115001;
                            val = ACCOUNTID;
                        },
                                                    {
                            content = 892498000000063001;
                            val = SMOWNERID;
                        },
                                                    {
                            content = harsha;
                            val = "Account Owner";
                        },
                                                    {
                            content = Basheer;
                            val = "Account Name";
                        },
                                                    {
                            content = "(null)";
                            val = Phone;
                        },
                                                    {
                            content = "(null)";
                            val = Fax;
                        },
                                                    {
                            content = "2013-07-30 03:46:16";
                            val = "Created Time";
                        },
                                                    {
                            content = "2013-07-30 03:46:16";
                            val = "Modified Time";
                        },
                                                    {
                            content = "2013-07-30 03:46:16";
                            val = "Last Activity Time";
                        },
                                                    {
                            content = "(null)";
                            val = Address;
                        },
                                                    {
                            content = "(null)";
                            val = Mobile;
                        },
                                                    {
                            content = "(null)";
                            val = Landline;
                        },
                                                    {
                            content = "(null)";
                            val = EmailId;
                        }
                    );
                    no = 1;
                },        {
    FL =         (
                    {
            content = 892498000000114001;
            val = ACCOUNTID;
        },
                    {
            content = 892498000000063001;
            val = SMOWNERID;
        },
                    {
            content = harsha;
            val = "Account Owner";
        },
                    {
            content = 333333333;
            val = "Account Name";
        },
                    {
            content = "(null)";
            val = Phone;
        },
                    {
            content = "(null)";
            val = Fax;
        },
                    {
            content = "2013-07-27 01:13:54";
            val = "Created Time";
        },
                    {
            content = "2013-07-27 01:13:54";
            val = "Modified Time";
        },
                    {
            content = "2013-07-27 01:13:54";
            val = "Last Activity Time";
        },
                    {
            content = "(null)";
            val = Address;
        },
                    {
            content = "(null)";
            val = Mobile;
        },
                    {
            content = "(null)";
            val = Landline;
        },
                    {
            content = "(null)";
            val = EmailId;
        }
    );
    no = 2;
}
            );
        };
    };
    uri = "/crm/private/json/Accounts/getMyRecords";
};

,这是我的Json回复。我有一个模型对象有四个属性(subject,Eventowner,ownerid,activityid)

在RestKit API中使用RKManagedObjectStore创建实体映射需要帮助

提前致谢

0 个答案:

没有答案