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
//: Playground - noun: a place where people can play | |
import UIKit | |
var basic_premiuma = [ | |
[10000, 10000, 238], | |
[10001, 10500, 242], | |
[10501, 11000, 244], | |
[11001, 11500, 248], | |
[11501, 12000, 252], |
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
<?php | |
require 'path/to/vendor/autoload.php'; | |
use AwsSnsMessageValidatorMessage; | |
use AwsSnsMessageValidatorMessageValidator; | |
use GuzzleHttpClient; | |
if ($_SERVER['REQUEST_METHOD'] !== 'POST') { | |
http_response_code(405); |
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
{ | |
"task_types": [ | |
{ | |
"attributes": { | |
"type": "Service_Request_Task_Type__c", | |
"url": "/services/data/v40.0/sobjects/Service_Request_Task_Type__c/a3p550000008b7MAAQ" | |
}, | |
"Id": "a3p550000008b7MAAQ", | |
"OwnerId": "00555000001q9A9AAI", | |
"IsDeleted": false, |
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
using System; | |
using System.Collections.Generic; | |
using Foundation; | |
using System.Linq; | |
using UIKit; | |
namespace SharediOS.UI | |
{ | |
//This class has methods for buttons mainly |
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
testButton1.TouchUpInside += delegate { | |
Device.OpenUri(new Uri("mailto:[email protected]")); | |
}; | |
// Cleanup | |
testButton1.TouchUpInside -= HandleTouchUpInside; | |
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
partial void btnSupport_(UIButton sender) | |
{ | |
var uri = new Uri("mailto:" + Constants.SUPPORT_EMAIL); | |
UIApplication.SharedApplication.OpenUrl(new NSUrl(uri.ToString())); | |
} |
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
if (String.IsNullOrWhiteSpace(txtUserName.Text)) |
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 btnSign_touchUp(object sender, EventArgs e) | |
{ | |
if (!IsValid) | |
{ | |
var okAlertController = UIAlertController.Create("Alert", _validationError, UIAlertControllerStyle.Alert); | |
okAlertController.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, (action) => { })); | |
UIApplication.SharedApplication.KeyWindow.RootViewController.PresentViewController(okAlertController, true, null); | |
return; |
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
public override void TouchesBegan(NSSet touches, UIEvent evt) | |
{ | |
txtUserName.ResignFirstResponder(); | |
} | |
//Dismiss Keyboard After hitting return | |
txtPassword.ShouldReturn = (sender) => | |
{ | |
sender.ResignFirstResponder(); | |
return false; |