{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/comments/72223153","id":72223153,"diff_hunk":"@@ -0,0 +1,225 @@\n+//\n+//  SearchTransactionViewController.swift\n+//  MoneyLove_1\n+//\n+//  Created by macmini-0017 on 7/22/16.\n+//  Copyright © 2016 vantientu. All rights reserved.\n+//\n+\n+import UIKit\n+\n+//\n+//  SearchTransactionViewController.swift\n+//  MoneyLove_1\n+//\n+//  Created by Quang Huy on 7/25/16.\n+//  Copyright © 2016 vantientu. All rights reserved.\n+//\n+\n+import UIKit\n+enum SelectRowType: Int {\n+    case Wallet = 0\n+    case MoneyNumber\n+    case CategoryType\n+    case Time\n+    case Category\n+    case Note\n+    static let arrayTypes = [Wallet, MoneyNumber, CategoryType, Time, Category, Note]\n+   func title() -> String {\n+        switch self {\n+        case .Wallet:\n+            return \"Wallet\"\n+        case .MoneyNumber:\n+            return \"MoneyNumber\"\n+        case .CategoryType:\n+            return \"Type\"\n+        case .Time:\n+            return \"Time\"\n+        case .Category:\n+            return \"Category\"\n+        default:\n+            return \"Note\"\n+        }\n+    }\n+}\n+class SearchTransactionViewController: UIViewController {\n+    let NUMBER_OF_ROW = 6\n+    let CELL_SELECTED_IDENTIFIER = \"CELL_SELECTED_IDENTIFIER\"\n+    let NOTE_CELL_IDENTIFIER = \"NOTE_CELL_IDENTIFIER\"\n+    let HEIGHT_OF_SEARCH_CELL: CGFloat = 50.0\n+    var walletName: String!\n+    var moneyNumber: String!\n+    var dateString: String!\n+    var groupName: String!\n+    var note: String?\n+    var categoryType: String!\n+    var predicates = [NSPredicate?](count: SelectRowType.arrayTypes.count, repeatedValue: nil)\n+    \n+    @IBOutlet weak var tableView: UITableView!\n+    override func viewDidLoad() {\n+        super.viewDidLoad()\n+        tableView.scrollEnabled = false\n+        self.automaticallyAdjustsScrollViewInsets = false\n+        self.registerCell()\n+        \n+    }\n+    \n+    func registerCell() {\n+        tableView.registerNib(UINib.init(nibName: \"SearchCell\", bundle: nil), forCellReuseIdentifier: CELL_SELECTED_IDENTIFIER)\n+        tableView.registerNib(UINib.init(nibName: \"NoteCell\", bundle: nil), forCellReuseIdentifier: NOTE_CELL_IDENTIFIER)\n+    }\n+    @IBAction func clickToSearch(sender: AnyObject) {\n+        \n+    }\n+}\n+\n+extension SearchTransactionViewController: UITableViewDataSource, UITableViewDelegate {\n+    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {\n+        return NUMBER_OF_ROW\n+    }\n+    \n+    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {\n+        let cellType = SelectRowType.arrayTypes[indexPath.row]\n+        if indexPath.row == SelectRowType.Note.rawValue {","path":"MoneyLove_1/Controllers/Transaction/Search Transaction ViewController/SearchTransactionViewController.swift","position":83,"original_position":83,"commit_id":"d3a1c2d198a53b48b942b4f19dadbc016189be51","original_commit_id":"d3a1c2d198a53b48b942b4f19dadbc016189be51","user":{"login":"minhtran129","id":16775570,"avatar_url":"https://avatars.githubusercontent.com/u/16775570?v=3","gravatar_id":"","url":"https://api.github.com/users/minhtran129","html_url":"https://github.com/minhtran129","followers_url":"https://api.github.com/users/minhtran129/followers","following_url":"https://api.github.com/users/minhtran129/following{/other_user}","gists_url":"https://api.github.com/users/minhtran129/gists{/gist_id}","starred_url":"https://api.github.com/users/minhtran129/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhtran129/subscriptions","organizations_url":"https://api.github.com/users/minhtran129/orgs","repos_url":"https://api.github.com/users/minhtran129/repos","events_url":"https://api.github.com/users/minhtran129/events{/privacy}","received_events_url":"https://api.github.com/users/minhtran129/received_events","type":"User","site_admin":false},"body":"xem cách sử dụng enum mà anh đã chỉ cho Tú. Dùng cách này dễ mắc lỗi. maintain khó ","created_at":"2016-07-26T10:20:05Z","updated_at":"2016-07-26T10:20:05Z","html_url":"https://github.com/framgia/MoneyLove_1/pull/31#discussion_r72223153","pull_request_url":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/comments/72223153"},"html":{"href":"https://github.com/framgia/MoneyLove_1/pull/31#discussion_r72223153"},"pull_request":{"href":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/31","id":78821459,"html_url":"https://github.com/framgia/MoneyLove_1/pull/31","diff_url":"https://github.com/framgia/MoneyLove_1/pull/31.diff","patch_url":"https://github.com/framgia/MoneyLove_1/pull/31.patch","issue_url":"https://api.github.com/repos/framgia/MoneyLove_1/issues/31","number":31,"state":"open","locked":false,"title":"70344 finish transaction","user":{"login":"doquanghuy","id":9291831,"avatar_url":"https://avatars.githubusercontent.com/u/9291831?v=3","gravatar_id":"","url":"https://api.github.com/users/doquanghuy","html_url":"https://github.com/doquanghuy","followers_url":"https://api.github.com/users/doquanghuy/followers","following_url":"https://api.github.com/users/doquanghuy/following{/other_user}","gists_url":"https://api.github.com/users/doquanghuy/gists{/gist_id}","starred_url":"https://api.github.com/users/doquanghuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doquanghuy/subscriptions","organizations_url":"https://api.github.com/users/doquanghuy/orgs","repos_url":"https://api.github.com/users/doquanghuy/repos","events_url":"https://api.github.com/users/doquanghuy/events{/privacy}","received_events_url":"https://api.github.com/users/doquanghuy/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-26T09:46:58Z","updated_at":"2016-07-26T10:20:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2611867caf646c64c29aad510892382d6f0affa4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/31/commits","review_comments_url":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/31/comments","review_comment_url":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/MoneyLove_1/issues/31/comments","statuses_url":"https://api.github.com/repos/framgia/MoneyLove_1/statuses/d3a1c2d198a53b48b942b4f19dadbc016189be51","head":{"label":"doquanghuy:70344_finish_transaction","ref":"70344_finish_transaction","sha":"d3a1c2d198a53b48b942b4f19dadbc016189be51","user":{"login":"doquanghuy","id":9291831,"avatar_url":"https://avatars.githubusercontent.com/u/9291831?v=3","gravatar_id":"","url":"https://api.github.com/users/doquanghuy","html_url":"https://github.com/doquanghuy","followers_url":"https://api.github.com/users/doquanghuy/followers","following_url":"https://api.github.com/users/doquanghuy/following{/other_user}","gists_url":"https://api.github.com/users/doquanghuy/gists{/gist_id}","starred_url":"https://api.github.com/users/doquanghuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doquanghuy/subscriptions","organizations_url":"https://api.github.com/users/doquanghuy/orgs","repos_url":"https://api.github.com/users/doquanghuy/repos","events_url":"https://api.github.com/users/doquanghuy/events{/privacy}","received_events_url":"https://api.github.com/users/doquanghuy/received_events","type":"User","site_admin":false},"repo":{"id":62687089,"name":"MoneyLove_1","full_name":"doquanghuy/MoneyLove_1","owner":{"login":"doquanghuy","id":9291831,"avatar_url":"https://avatars.githubusercontent.com/u/9291831?v=3","gravatar_id":"","url":"https://api.github.com/users/doquanghuy","html_url":"https://github.com/doquanghuy","followers_url":"https://api.github.com/users/doquanghuy/followers","following_url":"https://api.github.com/users/doquanghuy/following{/other_user}","gists_url":"https://api.github.com/users/doquanghuy/gists{/gist_id}","starred_url":"https://api.github.com/users/doquanghuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doquanghuy/subscriptions","organizations_url":"https://api.github.com/users/doquanghuy/orgs","repos_url":"https://api.github.com/users/doquanghuy/repos","events_url":"https://api.github.com/users/doquanghuy/events{/privacy}","received_events_url":"https://api.github.com/users/doquanghuy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/doquanghuy/MoneyLove_1","description":"Money Love (training)","fork":true,"url":"https://api.github.com/repos/doquanghuy/MoneyLove_1","forks_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/forks","keys_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/teams","hooks_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/hooks","issue_events_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/issues/events{/number}","events_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/events","assignees_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/assignees{/user}","branches_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/branches{/branch}","tags_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/tags","blobs_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/git/refs{/sha}","trees_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/statuses/{sha}","languages_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/languages","stargazers_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/stargazers","contributors_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/contributors","subscribers_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/subscribers","subscription_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/subscription","commits_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/commits{/sha}","git_commits_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/git/commits{/sha}","comments_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/comments{/number}","issue_comment_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/issues/comments{/number}","contents_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/contents/{+path}","compare_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/merges","archive_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/downloads","issues_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/issues{/number}","pulls_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/pulls{/number}","milestones_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/milestones{/number}","notifications_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/labels{/name}","releases_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/releases{/id}","deployments_url":"https://api.github.com/repos/doquanghuy/MoneyLove_1/deployments","created_at":"2016-07-06T03:08:00Z","updated_at":"2016-07-06T02:18:56Z","pushed_at":"2016-07-26T09:56:35Z","git_url":"git://github.com/doquanghuy/MoneyLove_1.git","ssh_url":"git@github.com:doquanghuy/MoneyLove_1.git","clone_url":"https://github.com/doquanghuy/MoneyLove_1.git","svn_url":"https://github.com/doquanghuy/MoneyLove_1","homepage":null,"size":448,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"15c48c995ef38f059323273e8e980d105dc75aeb","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":62684221,"name":"MoneyLove_1","full_name":"framgia/MoneyLove_1","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/MoneyLove_1","description":"Money Love (training)","fork":false,"url":"https://api.github.com/repos/framgia/MoneyLove_1","forks_url":"https://api.github.com/repos/framgia/MoneyLove_1/forks","keys_url":"https://api.github.com/repos/framgia/MoneyLove_1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/MoneyLove_1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/MoneyLove_1/teams","hooks_url":"https://api.github.com/repos/framgia/MoneyLove_1/hooks","issue_events_url":"https://api.github.com/repos/framgia/MoneyLove_1/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/MoneyLove_1/events","assignees_url":"https://api.github.com/repos/framgia/MoneyLove_1/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/MoneyLove_1/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/MoneyLove_1/tags","blobs_url":"https://api.github.com/repos/framgia/MoneyLove_1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/MoneyLove_1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/MoneyLove_1/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/MoneyLove_1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/MoneyLove_1/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/MoneyLove_1/languages","stargazers_url":"https://api.github.com/repos/framgia/MoneyLove_1/stargazers","contributors_url":"https://api.github.com/repos/framgia/MoneyLove_1/contributors","subscribers_url":"https://api.github.com/repos/framgia/MoneyLove_1/subscribers","subscription_url":"https://api.github.com/repos/framgia/MoneyLove_1/subscription","commits_url":"https://api.github.com/repos/framgia/MoneyLove_1/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/MoneyLove_1/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/MoneyLove_1/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/MoneyLove_1/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/MoneyLove_1/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/MoneyLove_1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/MoneyLove_1/merges","archive_url":"https://api.github.com/repos/framgia/MoneyLove_1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/MoneyLove_1/downloads","issues_url":"https://api.github.com/repos/framgia/MoneyLove_1/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/MoneyLove_1/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/MoneyLove_1/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/MoneyLove_1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/MoneyLove_1/labels{/name}","releases_url":"https://api.github.com/repos/framgia/MoneyLove_1/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/MoneyLove_1/deployments","created_at":"2016-07-06T02:18:56Z","updated_at":"2016-07-06T02:18:56Z","pushed_at":"2016-07-26T10:09:34Z","git_url":"git://github.com/framgia/MoneyLove_1.git","ssh_url":"git@github.com:framgia/MoneyLove_1.git","clone_url":"https://github.com/framgia/MoneyLove_1.git","svn_url":"https://github.com/framgia/MoneyLove_1","homepage":null,"size":708,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/31"},"html":{"href":"https://github.com/framgia/MoneyLove_1/pull/31"},"issue":{"href":"https://api.github.com/repos/framgia/MoneyLove_1/issues/31"},"comments":{"href":"https://api.github.com/repos/framgia/MoneyLove_1/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/MoneyLove_1/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/MoneyLove_1/statuses/d3a1c2d198a53b48b942b4f19dadbc016189be51"}}}}
{"actor":{"display_login":"minhtran129"}}