-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: separate InitError into different file #447
- Loading branch information
1 parent
6b4799a
commit 90eb766
Showing
6 changed files
with
23 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
PrebidMobile/PrebidMobile-core/src/main/java/org/prebid/mobile/api/exceptions/InitError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.prebid.mobile.api.exceptions; | ||
|
||
public class InitError { | ||
|
||
private String error; | ||
|
||
public InitError(String error) { | ||
this.error = error; | ||
} | ||
|
||
public String getError() { | ||
return error; | ||
} | ||
|
||
} |
16 changes: 2 additions & 14 deletions
16
...e-core/src/main/java/org/prebid/mobile/rendering/listeners/SdkInitializationListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
package org.prebid.mobile.rendering.listeners; | ||
|
||
import org.prebid.mobile.api.exceptions.InitError; | ||
|
||
public interface SdkInitializationListener { | ||
|
||
void onSdkInit(); | ||
|
||
void onSdkFailedToInit(InitError error); | ||
|
||
class InitError { | ||
|
||
private String error; | ||
|
||
public InitError(String error) { | ||
this.error = error; | ||
} | ||
|
||
public String getError() { | ||
return error; | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters