You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oleg S edited this page Aug 14, 2014
·
2 revisions
###1. Implement DrupalEntity:
In order to implement drupal entity you just have to extend DrupalEntity, declare properties and implement following methods:
#####path
this method should return relative path to entity on the server:
Completion block is defined as: typedef void (^EntityActionHandler)(id result);. If response was gotten and deserialized result is an DrupalEntity object otherwise nil.
[bp pullFromServer:^(id result) {
if (!result) {
// Something went wrong, object was not pulled from server
} else {
// Do something with object
}
}];