Move all firbase dependencies from actions layer to firebaseService layer (#13)
This commit is contained in:
@@ -1,45 +1,43 @@
|
||||
export class SocialError{
|
||||
|
||||
constructor(code: string, description: string){
|
||||
this._code = code
|
||||
this._description = description
|
||||
this._isError = true
|
||||
}
|
||||
|
||||
export class SocialError {
|
||||
/**
|
||||
* Error code
|
||||
*
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SocialError
|
||||
*/
|
||||
private _code : string
|
||||
public get code() : string {
|
||||
return this._code
|
||||
}
|
||||
private _code: string
|
||||
public get code (): string {
|
||||
return this._code
|
||||
}
|
||||
|
||||
/**
|
||||
* Error description
|
||||
*
|
||||
* Error message
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SocialError
|
||||
*/
|
||||
|
||||
private _description : string
|
||||
public get description() : string {
|
||||
return this._description
|
||||
}
|
||||
|
||||
|
||||
private _message: string
|
||||
public get message (): string {
|
||||
return this._message
|
||||
}
|
||||
|
||||
/**
|
||||
* If is error {true} if not {false}
|
||||
*
|
||||
*
|
||||
* @type {Boolean}
|
||||
* @memberof SocialError
|
||||
*/
|
||||
|
||||
private _isError : Boolean
|
||||
public get isError() : Boolean {
|
||||
return this._isError
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private _isError: Boolean
|
||||
public get isError (): Boolean {
|
||||
return this._isError
|
||||
}
|
||||
|
||||
constructor (code: string, message: string) {
|
||||
this._code = code
|
||||
this._message = message
|
||||
this._isError = true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user