This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function insert(item, user, request) { | |
request.execute({ | |
success: function(){ | |
request.respond(); | |
sendNotifications(item); | |
}, | |
error: function(err){ | |
request.respond(500, "Error"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.microsoft.windowsazure.mobileservices.MobileServiceUser; | |
import com.microsoft.windowsazure.mobileservices.MobileServiceAuthenticationProvider; | |
import com.microsoft.windowsazure.mobileservices.UserAuthenticationCallback; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void LoadTodoItems() { | |
todoTable.where().equal("complete", false).selectAsync(new MobileServiceCallbackWithResults<TodoItem>() { | |
@Override | |
public void errorOccurred(MobileException exception) { | |
Toast.makeText(activity, "An error occurred loading: " + exception.getMessage(), Toast.LENGTH_SHORT).show(); | |
exception.printStackTrace(); | |
} | |
@Override | |
public void completedSuccessfully(List<TodoItem> results) { | |
todoItems = (ArrayList<TodoItem>)results; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface ViewController : UIViewController | |
@property (weak, nonatomic) IBOutlet UITextField *txtInfo; | |
- (IBAction)tappedButtonOne:(id)sender; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface ViewController : UIViewController | |
- (IBAction)tappedProcessStuff:(id)sender; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface ViewController : UIViewController | |
@property (weak, nonatomic) IBOutlet UILabel *lblInfo; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2012-12-27 12:27:35.942 DayTwentyFour[20082:c07] initWithCoder | |
2012-12-27 12:27:35.947 DayTwentyFour[20082:c07] loadView | |
2012-12-27 12:27:35.949 DayTwentyFour[20082:c07] viewDidLoad | |
2012-12-27 12:27:35.949 DayTwentyFour[20082:c07] viewWillAppear | |
2012-12-27 12:27:35.952 DayTwentyFour[20082:c07] viewWillLayoutSubviews | |
2012-12-27 12:27:35.952 DayTwentyFour[20082:c07] viewDidLayoutSubviews | |
2012-12-27 12:27:35.956 DayTwentyFour[20082:c07] viewDidAppear |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function AddTodoItem() { | |
var todoTable = tables.getTable('TodoItem'); | |
todoTable.insert({ | |
text: "Todo:" + new Date(), | |
complete: 0 | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface ViewController : UIViewController | |
- (IBAction)tappedProcessInForeground:(id)sender; | |
- (IBAction)tappedUpdateLabel:(id)sender; | |
- (IBAction)tappedProcessInBackground:(id)sender; | |
@property (weak, nonatomic) IBOutlet UILabel *lblInfo; | |
@end |