{"action":"closed","issue":{"url":"https://api.github.com/repos/fprochazka/fi-muni-PA165-project/issues/41","repository_url":"https://api.github.com/repos/fprochazka/fi-muni-PA165-project","labels_url":"https://api.github.com/repos/fprochazka/fi-muni-PA165-project/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/fprochazka/fi-muni-PA165-project/issues/41/comments","events_url":"https://api.github.com/repos/fprochazka/fi-muni-PA165-project/issues/41/events","html_url":"https://github.com/fprochazka/fi-muni-PA165-project/issues/41","id":190135412,"number":41,"title":"TeamMatch - Service and Facade layer","user":{"login":"TomasSmid","id":7386031,"avatar_url":"https://avatars.githubusercontent.com/u/7386031?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasSmid","html_url":"https://github.com/TomasSmid","followers_url":"https://api.github.com/users/TomasSmid/followers","following_url":"https://api.github.com/users/TomasSmid/following{/other_user}","gists_url":"https://api.github.com/users/TomasSmid/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasSmid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasSmid/subscriptions","organizations_url":"https://api.github.com/users/TomasSmid/orgs","repos_url":"https://api.github.com/users/TomasSmid/repos","events_url":"https://api.github.com/users/TomasSmid/events{/privacy}","received_events_url":"https://api.github.com/users/TomasSmid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"TomasSmid","id":7386031,"avatar_url":"https://avatars.githubusercontent.com/u/7386031?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasSmid","html_url":"https://github.com/TomasSmid","followers_url":"https://api.github.com/users/TomasSmid/followers","following_url":"https://api.github.com/users/TomasSmid/following{/other_user}","gists_url":"https://api.github.com/users/TomasSmid/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasSmid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasSmid/subscriptions","organizations_url":"https://api.github.com/users/TomasSmid/orgs","repos_url":"https://api.github.com/users/TomasSmid/repos","events_url":"https://api.github.com/users/TomasSmid/events{/privacy}","received_events_url":"https://api.github.com/users/TomasSmid/received_events","type":"User","site_admin":false},"assignees":[{"login":"TomasSmid","id":7386031,"avatar_url":"https://avatars.githubusercontent.com/u/7386031?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasSmid","html_url":"https://github.com/TomasSmid","followers_url":"https://api.github.com/users/TomasSmid/followers","following_url":"https://api.github.com/users/TomasSmid/following{/other_user}","gists_url":"https://api.github.com/users/TomasSmid/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasSmid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasSmid/subscriptions","organizations_url":"https://api.github.com/users/TomasSmid/orgs","repos_url":"https://api.github.com/users/TomasSmid/repos","events_url":"https://api.github.com/users/TomasSmid/events{/privacy}","received_events_url":"https://api.github.com/users/TomasSmid/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/fprochazka/fi-muni-PA165-project/milestones/2","html_url":"https://github.com/fprochazka/fi-muni-PA165-project/milestones/2nd%20Milestone","labels_url":"https://api.github.com/repos/fprochazka/fi-muni-PA165-project/milestones/2/labels","id":2104225,"number":2,"title":"2nd Milestone","description":"https://github.com/fprochazka/fi-muni-PA165-project/issues/29","creator":{"login":"fprochazka","id":158625,"avatar_url":"https://avatars.githubusercontent.com/u/158625?v=3","gravatar_id":"","url":"https://api.github.com/users/fprochazka","html_url":"https://github.com/fprochazka","followers_url":"https://api.github.com/users/fprochazka/followers","following_url":"https://api.github.com/users/fprochazka/following{/other_user}","gists_url":"https://api.github.com/users/fprochazka/gists{/gist_id}","starred_url":"https://api.github.com/users/fprochazka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fprochazka/subscriptions","organizations_url":"https://api.github.com/users/fprochazka/orgs","repos_url":"https://api.github.com/users/fprochazka/repos","events_url":"https://api.github.com/users/fprochazka/events{/privacy}","received_events_url":"https://api.github.com/users/fprochazka/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":18,"state":"open","created_at":"2016-10-31T13:45:05Z","updated_at":"2016-11-25T17:41:54Z","due_on":"2016-11-25T00:00:00Z","closed_at":null},"comments":0,"created_at":"2016-11-17T19:08:18Z","updated_at":"2016-11-25T17:41:54Z","closed_at":"2016-11-25T17:41:54Z","body":"### Facade layer\r\n- **createMatch** - ulozi novy zapas do DB\r\n- **deleteMatch** - smaze zapas z DB\r\n- **changeMatchTime** - aktualizuje zapas s novymi casy v DB\r\n- **endMatch** - ukonci dany zapas (nastavi mu hodnotu endTime ruznou od null)\r\n- **addNewScoredGoal** - ulozi vstreleny gol v zapase do DB\r\n- **deleteMatchGoal** - smaze gol z DB\r\n\r\n### Service layer\r\n- **createMatch** - kontrola, zda takovy zapas jiz neexistuje oproti zastoupeni domaci x hostujici tym, kontrola ze domaci a hostujici tymy nejsou totozne, vrati nove vytvoreny zapas\r\n- **changeMatchTime** - kontroly na spravnost casu (napr. ze endTime je po startTime), validace zda datetime object obsahuje korektni cas (treba ne 14 mesicu apod.)\r\n- **endMatch** - kontroly jako u changeMatchTime\r\n\r\n### TeamMatch\r\n- misto setteru na casy vytvorit metodu changeMatchTime\r\n- vytvorit metodu endMatch\r\n\r\n### TeamMatchRepository\r\n- **getAllPlayedMatches** - vrati vsechny odehrane zapasy\r\n- **getAllPlannedMatches** - vrati vsechny naplanovane neodehrane zapasy\r\n- **getAllPlayedMatchesOfTeam** - vrati vsechny odehrane zapasy konkretniho tymu\r\n- **getAllPlannedMatchesOfTeam** - vrati vsechny planovane neodehrane zapasy konkretniho tymu"}}
{"actor":{"display_login":"fprochazka"}}