home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Trakt for MP2
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="aspik" data-source="post: 1240882" data-attributes="member: 72523"><p>Trakt <a href="https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/Trakt/Settings/TraktSettings.cs" target="_blank">settings</a> are already defined as per user. Do you mean this scope or is in 2.2 a different user scope?</p><p></p><p>Do I need to subscribe to the UserChanged event? In trakt there are two "entry points":</p><p>- in setup model. In <a href="https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/Trakt/Models/TraktSetupModel.cs#L1190" target="_blank">EnterContextModel</a> the trakt settings are loaded. So, each user will enter this setup with its own settings, right?</p><p>- in trakt handler. In the <a href="https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/Trakt/Service/TraktHandler.cs#L72" target="_blank">ConfigureHandler</a>, scrobbling will be enabled only if trakt is enabled. In the constructor the handler subscribes to the settingsChanged event. Do I get notified by this event also when the user changed? Or only when a user changes his settings?</p></blockquote><p></p>
[QUOTE="aspik, post: 1240882, member: 72523"] Trakt [URL='https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/Trakt/Settings/TraktSettings.cs']settings[/URL] are already defined as per user. Do you mean this scope or is in 2.2 a different user scope? Do I need to subscribe to the UserChanged event? In trakt there are two "entry points": - in setup model. In [URL='https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/Trakt/Models/TraktSetupModel.cs#L1190']EnterContextModel[/URL] the trakt settings are loaded. So, each user will enter this setup with its own settings, right? - in trakt handler. In the [URL='https://github.com/MediaPortal/MediaPortal-2/blob/master/MediaPortal/Incubator/Trakt/Service/TraktHandler.cs#L72']ConfigureHandler[/URL], scrobbling will be enabled only if trakt is enabled. In the constructor the handler subscribes to the settingsChanged event. Do I get notified by this event also when the user changed? Or only when a user changes his settings? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt for MP2
Contact us
RSS
Top
Bottom