-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from omnt/fix/logging_notification
Draft: Fix Notification for LoggingService and Show Cell Parameter in Seperate Notification
- Loading branch information
Showing
13 changed files
with
483 additions
and
117 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
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
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
37 changes: 37 additions & 0 deletions
37
.../java/de/fraunhofer/fokus/OpenMobileNetworkToolkit/InfluxDB2x/InfluxdbWriteApiStatus.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,37 @@ | ||
package de.fraunhofer.fokus.OpenMobileNetworkToolkit.InfluxDB2x; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
public enum InfluxdbWriteApiStatus { | ||
Backpressure, | ||
WriteSuccess, | ||
WriteErrorEvent, | ||
WriteRetriableErrorEvent, | ||
Unknown; | ||
@NonNull | ||
public String toString() { | ||
switch(this) { | ||
case Backpressure: return "Backpressure"; | ||
case WriteSuccess: return "WriteSuccess"; | ||
case WriteErrorEvent: return "WriteErrorEvent"; | ||
case WriteRetriableErrorEvent: return "WriteRetriableErrorEvent"; | ||
case Unknown:; | ||
default: return "Unknown"; | ||
} | ||
} | ||
public static InfluxdbWriteApiStatus fromString(String str) { | ||
str = str.toLowerCase(); | ||
switch(str) { | ||
case "backpressure": return Backpressure; | ||
case "writesuccess": return WriteSuccess; | ||
case "writeerrorevent": return WriteErrorEvent; | ||
case "writeeetriableerrorevent": return WriteRetriableErrorEvent; | ||
case "unknown": return Unknown; | ||
default: return Unknown; | ||
} | ||
} | ||
|
||
public boolean isEquals(InfluxdbWriteApiStatus status) { | ||
return this==status; | ||
} | ||
} |
Oops, something went wrong.