Package ai.luciq.library.model
Class Report
-
- All Implemented Interfaces:
public class ReportCreated by tarek on 1/22/18.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceReport.OnReportCreatedListener
-
Field Summary
Fields Modifier and Type Field Description public ArrayList<LuciqLog.LogMessage>instabugLogspublic StringuserDatapublic HashMap<String, String>userAttributespublic HashMap<Uri, String>fileAttachments
-
Constructor Summary
Constructors Constructor Description Report()
-
Method Summary
Modifier and Type Method Description ArrayList<LuciqLog.LogMessage>getInstabugLogs()voidsetInstabugLogs(ArrayList<LuciqLog.LogMessage> instabugLogs)StringgetUserData()voidsetUserData(@NonNull() String userData)Adds specific user data that you need to be added to the reports HashMap<String, String>getUserAttributes()HashMap<Uri, String>getFileAttachments()voidaddTag(Array<String> tag)voidaddTag(ArrayList<String> tags)voidaddFileAttachment(@NonNull() Uri fileUri, @NonNull() String fileNameWithExtension)voidaddFileAttachment(@NonNull() Array<byte> data, @NonNull() String fileNameWithExtension)voidsetUserAttribute(@NonNull() String key, String value)Sets user attribute to overwrite it's value or create a new one if it doesn't exist. voidaddUserAttributes(HashMap<String, String> userAttributes)Sets user attribute to append on old values voidappendToConsoleLogs(String logMessage)voidlogVerbose(String logMessage)voidlogDebug(String logMessage)voidlogInfo(String logMessage)voidlogWarn(String logMessage)voidlogError(String logMessage)List<String>getTags()ArrayList<ConsoleLog>getConsoleLog()voidaddConsoleLogs(ArrayList<ConsoleLog> consoleLogArrayList)-
-
Method Detail
-
getInstabugLogs
ArrayList<LuciqLog.LogMessage> getInstabugLogs()
-
setInstabugLogs
void setInstabugLogs(ArrayList<LuciqLog.LogMessage> instabugLogs)
-
getUserData
@Nullable() String getUserData()
-
setUserData
void setUserData(@NonNull() String userData)
Adds specific user data that you need to be added to the reports
- Parameters:
userData- string representing user data
-
getUserAttributes
HashMap<String, String> getUserAttributes()
-
getFileAttachments
HashMap<Uri, String> getFileAttachments()
-
addFileAttachment
void addFileAttachment(@NonNull() Uri fileUri, @NonNull() String fileNameWithExtension)
-
addFileAttachment
void addFileAttachment(@NonNull() Array<byte> data, @NonNull() String fileNameWithExtension)
-
setUserAttribute
void setUserAttribute(@NonNull() String key, String value)
Sets user attribute to overwrite it's value or create a new one if it doesn't exist.
- Parameters:
key- the attributevalue- the value
-
addUserAttributes
void addUserAttributes(HashMap<String, String> userAttributes)
Sets user attribute to append on old values
- Parameters:
userAttributes- All new userAttributes to be added
-
appendToConsoleLogs
void appendToConsoleLogs(String logMessage)
-
logVerbose
void logVerbose(String logMessage)
-
getConsoleLog
ArrayList<ConsoleLog> getConsoleLog()
-
addConsoleLogs
void addConsoleLogs(ArrayList<ConsoleLog> consoleLogArrayList)
-
-
-
-