{"action":"created","comment":{"url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/comments/26798967","id":26798967,"diff_hunk":"@@ -0,0 +1,102 @@\n+/*\n+ * To change this license header, choose License Headers in Project Properties.\n+ * To change this template file, choose Tools | Templates\n+ * and open the template in the editor.\n+ */\n+package tglabpractica;\n+\n+import java.io.Serializable;\n+import java.util.Calendar;\n+\n+/**\n+ *\n+ * @author KenyStev\n+ */\n+public class Loan implements Pagable, Serializable{\n+    private String name;\n+    private double montoPrestamo;\n+    private int totalCuotas;\n+    private Calendar fechaCreacionDelPrestamo;\n+    private Bill[] cuotas;\n+\n+    public Loan(String name, double montoPrestamo, int totalCuotas) throws LoanInvalidException{\n+        if(montoPrestamo<5000 || totalCuotas<5)\n+            throw new LoanInvalidException(montoPrestamo);\n+        \n+        this.name = name;\n+        this.montoPrestamo = montoPrestamo;\n+        this.totalCuotas = totalCuotas;\n+        fechaCreacionDelPrestamo = Calendar.getInstance();\n+        cuotas = new Bill[totalCuotas];\n+        initBills();\n+    }\n+\n+    @Override\n+    public void pay() throws AlreadyPaidException {\n+        Calendar now = Calendar.getInstance();\n+        int diff = now.get(Calendar.MONTH) - fechaCreacionDelPrestamo.get(Calendar.MONTH); //???","path":"src/tglabpractica/Loan.java","position":37,"original_position":37,"commit_id":"32e3bdb75f32a7b1085a486daa893bf9020a2be2","original_commit_id":"32e3bdb75f32a7b1085a486daa893bf9020a2be2","user":{"login":"gotchahn","id":587830,"avatar_url":"https://avatars.githubusercontent.com/u/587830?v=3","gravatar_id":"","url":"https://api.github.com/users/gotchahn","html_url":"https://github.com/gotchahn","followers_url":"https://api.github.com/users/gotchahn/followers","following_url":"https://api.github.com/users/gotchahn/following{/other_user}","gists_url":"https://api.github.com/users/gotchahn/gists{/gist_id}","starred_url":"https://api.github.com/users/gotchahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gotchahn/subscriptions","organizations_url":"https://api.github.com/users/gotchahn/orgs","repos_url":"https://api.github.com/users/gotchahn/repos","events_url":"https://api.github.com/users/gotchahn/events{/privacy}","received_events_url":"https://api.github.com/users/gotchahn/received_events","type":"User","site_admin":false},"body":"Esto no funcionara, tendría que sacar la diferencia en milisegundos y luego pasarlo a la cantidad de meses que han pasado. ","created_at":"2015-03-19T21:22:15Z","updated_at":"2015-03-19T21:22:15Z","html_url":"https://github.com/UnitecSPS/Programacion2_1_1_2015/pull/4#discussion_r26798967","pull_request_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/comments/26798967"},"html":{"href":"https://github.com/UnitecSPS/Programacion2_1_1_2015/pull/4#discussion_r26798967"},"pull_request":{"href":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/4","id":30170444,"html_url":"https://github.com/UnitecSPS/Programacion2_1_1_2015/pull/4","diff_url":"https://github.com/UnitecSPS/Programacion2_1_1_2015/pull/4.diff","patch_url":"https://github.com/UnitecSPS/Programacion2_1_1_2015/pull/4.patch","issue_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/issues/4","number":4,"state":"open","locked":false,"title":"Practica de Prestamos del Laboratorio, Uso de Excepciones","user":{"login":"KenyStev","id":6833682,"avatar_url":"https://avatars.githubusercontent.com/u/6833682?v=3","gravatar_id":"","url":"https://api.github.com/users/KenyStev","html_url":"https://github.com/KenyStev","followers_url":"https://api.github.com/users/KenyStev/followers","following_url":"https://api.github.com/users/KenyStev/following{/other_user}","gists_url":"https://api.github.com/users/KenyStev/gists{/gist_id}","starred_url":"https://api.github.com/users/KenyStev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenyStev/subscriptions","organizations_url":"https://api.github.com/users/KenyStev/orgs","repos_url":"https://api.github.com/users/KenyStev/repos","events_url":"https://api.github.com/users/KenyStev/events{/privacy}","received_events_url":"https://api.github.com/users/KenyStev/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-27T14:39:18Z","updated_at":"2015-03-19T21:22:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e93da5b250506d6b524db0faad05d5ab8d28d1f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/4/commits","review_comments_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/4/comments","review_comment_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/issues/4/comments","statuses_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/statuses/32e3bdb75f32a7b1085a486daa893bf9020a2be2","head":{"label":"UnitecSPS:practicadellab","ref":"practicadellab","sha":"32e3bdb75f32a7b1085a486daa893bf9020a2be2","user":{"login":"UnitecSPS","id":812441,"avatar_url":"https://avatars.githubusercontent.com/u/812441?v=3","gravatar_id":"","url":"https://api.github.com/users/UnitecSPS","html_url":"https://github.com/UnitecSPS","followers_url":"https://api.github.com/users/UnitecSPS/followers","following_url":"https://api.github.com/users/UnitecSPS/following{/other_user}","gists_url":"https://api.github.com/users/UnitecSPS/gists{/gist_id}","starred_url":"https://api.github.com/users/UnitecSPS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnitecSPS/subscriptions","organizations_url":"https://api.github.com/users/UnitecSPS/orgs","repos_url":"https://api.github.com/users/UnitecSPS/repos","events_url":"https://api.github.com/users/UnitecSPS/events{/privacy}","received_events_url":"https://api.github.com/users/UnitecSPS/received_events","type":"Organization","site_admin":false},"repo":{"id":29735831,"name":"Programacion2_1_1_2015","full_name":"UnitecSPS/Programacion2_1_1_2015","owner":{"login":"UnitecSPS","id":812441,"avatar_url":"https://avatars.githubusercontent.com/u/812441?v=3","gravatar_id":"","url":"https://api.github.com/users/UnitecSPS","html_url":"https://github.com/UnitecSPS","followers_url":"https://api.github.com/users/UnitecSPS/followers","following_url":"https://api.github.com/users/UnitecSPS/following{/other_user}","gists_url":"https://api.github.com/users/UnitecSPS/gists{/gist_id}","starred_url":"https://api.github.com/users/UnitecSPS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnitecSPS/subscriptions","organizations_url":"https://api.github.com/users/UnitecSPS/orgs","repos_url":"https://api.github.com/users/UnitecSPS/repos","events_url":"https://api.github.com/users/UnitecSPS/events{/privacy}","received_events_url":"https://api.github.com/users/UnitecSPS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UnitecSPS/Programacion2_1_1_2015","description":"El proyecto de la clase de Programacion 2 Semestre 1 Trimestre 1 Año 2015","fork":false,"url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015","forks_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/forks","keys_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/teams","hooks_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/hooks","issue_events_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/issues/events{/number}","events_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/events","assignees_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/assignees{/user}","branches_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/branches{/branch}","tags_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/tags","blobs_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/statuses/{sha}","languages_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/languages","stargazers_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/stargazers","contributors_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/contributors","subscribers_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/subscribers","subscription_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/subscription","commits_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/contents/{+path}","compare_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/merges","archive_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/downloads","issues_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/issues{/number}","pulls_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls{/number}","milestones_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/milestones{/number}","notifications_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/labels{/name}","releases_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/releases{/id}","created_at":"2015-01-23T14:24:54Z","updated_at":"2015-03-19T21:18:31Z","pushed_at":"2015-03-19T21:18:36Z","git_url":"git://github.com/UnitecSPS/Programacion2_1_1_2015.git","ssh_url":"git@github.com:UnitecSPS/Programacion2_1_1_2015.git","clone_url":"https://github.com/UnitecSPS/Programacion2_1_1_2015.git","svn_url":"https://github.com/UnitecSPS/Programacion2_1_1_2015","homepage":null,"size":392,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"UnitecSPS:master","ref":"master","sha":"30578522f8e1611bbe78bcb3c85aff02aad59f0c","user":{"login":"UnitecSPS","id":812441,"avatar_url":"https://avatars.githubusercontent.com/u/812441?v=3","gravatar_id":"","url":"https://api.github.com/users/UnitecSPS","html_url":"https://github.com/UnitecSPS","followers_url":"https://api.github.com/users/UnitecSPS/followers","following_url":"https://api.github.com/users/UnitecSPS/following{/other_user}","gists_url":"https://api.github.com/users/UnitecSPS/gists{/gist_id}","starred_url":"https://api.github.com/users/UnitecSPS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnitecSPS/subscriptions","organizations_url":"https://api.github.com/users/UnitecSPS/orgs","repos_url":"https://api.github.com/users/UnitecSPS/repos","events_url":"https://api.github.com/users/UnitecSPS/events{/privacy}","received_events_url":"https://api.github.com/users/UnitecSPS/received_events","type":"Organization","site_admin":false},"repo":{"id":29735831,"name":"Programacion2_1_1_2015","full_name":"UnitecSPS/Programacion2_1_1_2015","owner":{"login":"UnitecSPS","id":812441,"avatar_url":"https://avatars.githubusercontent.com/u/812441?v=3","gravatar_id":"","url":"https://api.github.com/users/UnitecSPS","html_url":"https://github.com/UnitecSPS","followers_url":"https://api.github.com/users/UnitecSPS/followers","following_url":"https://api.github.com/users/UnitecSPS/following{/other_user}","gists_url":"https://api.github.com/users/UnitecSPS/gists{/gist_id}","starred_url":"https://api.github.com/users/UnitecSPS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnitecSPS/subscriptions","organizations_url":"https://api.github.com/users/UnitecSPS/orgs","repos_url":"https://api.github.com/users/UnitecSPS/repos","events_url":"https://api.github.com/users/UnitecSPS/events{/privacy}","received_events_url":"https://api.github.com/users/UnitecSPS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UnitecSPS/Programacion2_1_1_2015","description":"El proyecto de la clase de Programacion 2 Semestre 1 Trimestre 1 Año 2015","fork":false,"url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015","forks_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/forks","keys_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/teams","hooks_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/hooks","issue_events_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/issues/events{/number}","events_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/events","assignees_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/assignees{/user}","branches_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/branches{/branch}","tags_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/tags","blobs_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/statuses/{sha}","languages_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/languages","stargazers_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/stargazers","contributors_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/contributors","subscribers_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/subscribers","subscription_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/subscription","commits_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/contents/{+path}","compare_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/merges","archive_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/downloads","issues_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/issues{/number}","pulls_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls{/number}","milestones_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/milestones{/number}","notifications_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/labels{/name}","releases_url":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/releases{/id}","created_at":"2015-01-23T14:24:54Z","updated_at":"2015-03-19T21:18:31Z","pushed_at":"2015-03-19T21:18:36Z","git_url":"git://github.com/UnitecSPS/Programacion2_1_1_2015.git","ssh_url":"git@github.com:UnitecSPS/Programacion2_1_1_2015.git","clone_url":"https://github.com/UnitecSPS/Programacion2_1_1_2015.git","svn_url":"https://github.com/UnitecSPS/Programacion2_1_1_2015","homepage":null,"size":392,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/4"},"html":{"href":"https://github.com/UnitecSPS/Programacion2_1_1_2015/pull/4"},"issue":{"href":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/issues/4"},"comments":{"href":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/UnitecSPS/Programacion2_1_1_2015/statuses/32e3bdb75f32a7b1085a486daa893bf9020a2be2"}}}}