{"action":"created","issue":{"url":"https://api.github.com/repos/android10/Android-CleanArchitecture/issues/162","repository_url":"https://api.github.com/repos/android10/Android-CleanArchitecture","labels_url":"https://api.github.com/repos/android10/Android-CleanArchitecture/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/android10/Android-CleanArchitecture/issues/162/comments","events_url":"https://api.github.com/repos/android10/Android-CleanArchitecture/issues/162/events","html_url":"https://github.com/android10/Android-CleanArchitecture/issues/162","id":161537782,"number":162,"title":"What about things like AppSettings?","user":{"login":"risayew","id":2446408,"avatar_url":"https://avatars.githubusercontent.com/u/2446408?v=3","gravatar_id":"","url":"https://api.github.com/users/risayew","html_url":"https://github.com/risayew","followers_url":"https://api.github.com/users/risayew/followers","following_url":"https://api.github.com/users/risayew/following{/other_user}","gists_url":"https://api.github.com/users/risayew/gists{/gist_id}","starred_url":"https://api.github.com/users/risayew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/risayew/subscriptions","organizations_url":"https://api.github.com/users/risayew/orgs","repos_url":"https://api.github.com/users/risayew/repos","events_url":"https://api.github.com/users/risayew/events{/privacy}","received_events_url":"https://api.github.com/users/risayew/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/android10/Android-CleanArchitecture/labels/discussion","name":"discussion","color":"5319e7"},{"url":"https://api.github.com/repos/android10/Android-CleanArchitecture/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-06-21T20:58:13Z","updated_at":"2016-09-26T13:33:45Z","closed_at":null,"body":"Good Day! I have some difficulties with stuff like isAuthorized(), isFirstStart(), etc ... .\r\nIn particular isAuthorized is a flag indicating, that the user has been logged in. Which solution will be better?\r\n1. Should we write an interactor and access AppSettingsRepository? \r\n2. Or simply consider AppSettings as a kind of \"ui setting\" which lives in presentation layer. Therefore we can define, for example, an AppSettings interface and inject in particular AppSettingsImpl (wrapper-model built using SharedPreferences), which can be accessed even in \"ui thread\"? \r\n\r\nThanks in advance! "},"comment":{"url":"https://api.github.com/repos/android10/Android-CleanArchitecture/issues/comments/249570555","html_url":"https://github.com/android10/Android-CleanArchitecture/issues/162#issuecomment-249570555","issue_url":"https://api.github.com/repos/android10/Android-CleanArchitecture/issues/162","id":249570555,"user":{"login":"Trikke","id":2961842,"avatar_url":"https://avatars.githubusercontent.com/u/2961842?v=3","gravatar_id":"","url":"https://api.github.com/users/Trikke","html_url":"https://github.com/Trikke","followers_url":"https://api.github.com/users/Trikke/followers","following_url":"https://api.github.com/users/Trikke/following{/other_user}","gists_url":"https://api.github.com/users/Trikke/gists{/gist_id}","starred_url":"https://api.github.com/users/Trikke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trikke/subscriptions","organizations_url":"https://api.github.com/users/Trikke/orgs","repos_url":"https://api.github.com/users/Trikke/repos","events_url":"https://api.github.com/users/Trikke/events{/privacy}","received_events_url":"https://api.github.com/users/Trikke/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T13:33:45Z","updated_at":"2016-09-26T13:33:45Z","body":"@hdsplash why would you need to pass a context from your Interactor? There's no need for that.\r\n\r\nYou should inject your Application's Context into the Repository (which is probably an @singleton anyway).\r\n\r\n```java\r\n@Inject\r\n  public Repository(Context appContext ,....)\r\n```"}}
{"actor":{"display_login":"Trikke"}}