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 enum SSError { | |
| case error(description: String) | |
| case internetConnectionError | |
| } | |
| public protocol SSRequestRepresentable { | |
| typealias RequestParameters = [String: Any] | |
| typealias JSONBody = [String: Any] | |
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
| ... | |
| struct TextPresentableStruct: TextPresentable { | |
| var text: String = "Sample text..." | |
| } | |
| // Other implementations... | |
| ... | |
| func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | |
| let productCell = tableView.dequeueReusableCell(withIdentifier: ProductCell.cellID, for: indexPath) as! ProductCell | |
| let textStruct = TextPresentableStruct() |
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
| // Here we are creating representables for to take advantage of all representables. | |
| typealias Representables = protocol<TextPresentable, SwitchPresentable, ImagePresentable> | |
| class ProductListCell: UITableViewCell { | |
| @IBOutlet private weak var label: UILabel! | |
| @IBOutlet private weak var switch: UISwitch! | |
| @IBOutlet private weak var imageView: UIImageView! | |
| func configure(presenter: Representables) { |
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 | |
| // deneme notif gönder | |
| // ilk parametre kullanıcıdan alınan token | |
| // ikinci başlık | |
| // üçüncü mesaj body | |
| $rs = send_notification(array("eVvDD-zglFo:APA91bEW_KCwpC2vZ4Gndrr4Lk5rYXOMPaCTxC8wwqr6EVIKIixAHuikVM1vTryCCxg2vylikWdQgCBT3WRTun3_-h3glYHVETReQ1-jz9Xt2HtvfoZlOgqQJrYfEoaWqzrPYJje6Qw7"), | |
| array("message" => "Denemee", | |
| "title" => "titleee")); | |
| echo $rs; |
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 | |
| header('Content-Type: application/json; charset=UTF-8'); | |
| ini_set('default_socket_timeout', 900); | |
| $message = "serhat- hobi push"; | |
| $nData = array(); | |
| $nData["type"] = "normal"; | |
| sendNotification("8ba6c6b6dafba6482fde94d33d2a53a0c7ca660409f42200527497111266d882", $message, $nData); |
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
| { | |
| id: 123456 // Int | |
| deviceToken: "12312312334235235235235" // String | |
| } |
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
| // add a tap gesture recognizer | |
| let tapGesture = UITapGestureRecognizer(target: self, action: #selector(handleTap(_:))) | |
| scnView.addGestureRecognizer(tapGesture)` | |
| func handleTap(gestureRecognize: UIGestureRecognizer) { | |
| // retrieve the SCNView | |
| let scnView = self.view as! SCNView | |
| // check what nodes are tapped | |
| let p = gestureRecognize.locationInView(scnView) |
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
| Path: http://stageyeni.isverenmobilapi.kariyer.net/api/CandidateSearch/Application?page=1&pageSize=30 | |
| Client ID : b2e1feeb-d21c-4357-a001-8d6997d3fd79 | |
| Client Secret : 9bd4df1c-e072-4c8c-9e40-305e656d7241 | |
| AccessToken : 366b2644-cb9e-4877-93de-85a49c1a0438 | |
| App version : 2.0 | |
| Request body: { | |
| JobIds = ( | |
| 1585368 |
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
| [GoogleAnalyticsManager trackEventCategory:[self GATScreenName] actionName:@"Başvuruyu Tamamla" labelName:@"Bağlantı Hatası"]; | |
| [GoogleAnalyticsManager trackEventCategory:[self GATScreenName] actionName:@"Başvuruyu Tamamla" labelName:@"Başarılı"]; | |
| [GoogleAnalyticsManager trackEventCategory:[self GATScreenName] actionName:@"Başvuruyu Tamamla" labelName:@"Başarısız"]; |
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
| // track event category | |
| id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker]; | |
| [tracker send:[[GAIDictionaryBuilder createEventWithCategory:category // Event category (required) | |
| action:action // Event action (required) | |
| label:label // Event label | |
| value:nil] build]]; // Event value | |