mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
Add configTest to ResolverAccounts
This commit is contained in:
@@ -196,6 +196,13 @@ var TomahawkResolver = {
|
||||
},
|
||||
collection: function () {
|
||||
return {};
|
||||
},
|
||||
_testConfig: function (config) {
|
||||
return Promise.resolve(this.testConfig(config)).then(function() {
|
||||
return { result: Tomahawk.ConfigTestResultType.Success };
|
||||
});
|
||||
},
|
||||
testConfig: function () {
|
||||
}
|
||||
};
|
||||
|
||||
@@ -638,3 +645,15 @@ Tomahawk.PluginManager = {
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Tomahawk.ConfigTestResultType = {
|
||||
Other: 0,
|
||||
Success: 1,
|
||||
Logout: 2,
|
||||
CommunicationError: 3,
|
||||
InvalidCredentials: 4,
|
||||
InvalidAccount: 5,
|
||||
PlayingElsewhere: 6,
|
||||
AccountExpired: 7
|
||||
};
|
||||
|
Reference in New Issue
Block a user