You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/sdk/src/main/java/com/batch/android/BatchEventAttributes.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ public String getLabel() {
79
79
* Add a string attribute for the specified key
80
80
*
81
81
* @param key Attribute key. Should be made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters.
82
-
* @param value String value to add. Can't be longer than 64 characters, and can't be empty or null. For better results, you should trim/lowercase your strings, and use slugs when possible.
82
+
* @param value String value to add. Can't be longer than 300 characters, and can't be empty or null. For better results, you should trim/lowercase your strings, and use slugs when possible.
83
83
* @return Same BatchEventAttributes instance, for chaining
* @param key Attribute key, can't be null. It should be made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters.
278
-
* @param value Attribute value, can't be null or empty. Must be a string not longer than 64 characters. For better results, you should make them upper/lowercase and trim the whitespaces.
278
+
* @param value Attribute value, can't be null or empty. Must be a string not longer than 300 characters. For better results, you should make them upper/lowercase and trim the whitespaces.
279
279
* @return This object instance, for method chaining
if (ProfileDataHelper.isNotValidStringArray(value)) {
359
-
Logger.error(
360
-
TAG,
361
-
"Array of string attributes must not be longer than 25 items, only values of type String and must respect the string attribute limitations. Ignoring attribute '" +
@@ -406,23 +388,12 @@ public BatchProfileAttributeEditor removeAttribute(@NonNull String key) {
406
388
* Add a string value in the specified array attribute. If empty, the collection will automatically be created.
407
389
*
408
390
* @param key The array attribute to add the value to. Cannot be null. Must be a string of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters.
409
-
* @param value The value to add. Cannot be null or empty. Must be a string no longer than 64 characters.
391
+
* @param value The value to add. Cannot be null or empty. Must be a string no longer than 300 characters.
410
392
* @return This object instance, for method chaining
@@ -436,21 +407,12 @@ public BatchProfileAttributeEditor addToArray(final @NonNull String key, final @
436
407
* Add a list of strings in the specified array attribute. If empty, the collection will automatically be created.
437
408
*
438
409
* @param key The array attribute to add the value to. Cannot be null. Must be a string of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters.
439
-
* @param values The strings to add. Cannot be null or empty. Must be strings no longer than 64 characters and max 25 items
410
+
* @param values The strings to add. Cannot be null or empty. Must be strings no longer than 300 characters and max 25 items
440
411
* @return This object instance, for method chaining
if (ProfileDataHelper.isNotValidStringArray(values)) {
446
-
Logger.error(
447
-
TAG,
448
-
"Array of string attributes must not be longer than 25 items, only values of type String and must respect the string attribute limitations. Ignoring attribute '" +
@@ -464,26 +426,15 @@ public BatchProfileAttributeEditor addToArray(final @NonNull String key, final @
464
426
465
427
/**
466
428
* Removes a string from an array attribute.
467
-
* Does nothing if the tag does not exist.
429
+
* Does nothing if the value does not exist.
468
430
*
469
-
* @param key Array attribute name
470
-
* @param value The value to remove
431
+
* @param key The array attribute to remove the value to. Cannot be null. Must be a string of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters.
432
+
* @param value The value to remove. Cannot be null or empty. Must be a string no longer than 300 characters.
471
433
* @return This object instance, for method chaining
if (ProfileDataHelper.isNotValidStringValue(value)) {
477
-
Logger.error(
478
-
TAG,
479
-
"Strings in Array attributes can't be null or longer than " +
480
-
ProfileDataHelper.ATTR_STRING_MAX_LENGTH +
481
-
" characters. Ignoring attribute '" +
482
-
key +
483
-
"'"
484
-
);
485
-
returnthis;
486
-
}
487
438
this.profileUpdateOperation.removeFromList(
488
439
normalizedKey,
489
440
newArrayList<>(Collections.singletonList(value))
@@ -498,24 +449,15 @@ public BatchProfileAttributeEditor removeFromArray(final @NonNull String key, fi
498
449
499
450
/**
500
451
* Removes a list of strings from an array attribute.
501
-
* Does nothing if the tag does not exist.
452
+
* Does nothing if an item does not exist.
502
453
*
503
-
* @param key Array attribute name
504
-
* @param values The values to remove
454
+
* @param key The array attribute to remove the value from. Cannot be null. Must be a string of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters.
455
+
* @param values The strings to remove. Cannot be null or empty. Must be strings no longer than 300 characters and max 25 items
505
456
* @return This object instance, for method chaining
if (ProfileDataHelper.isNotValidStringArray(values)) {
511
-
Logger.error(
512
-
TAG,
513
-
"Array of string attributes must not be longer than 25 items, only values of type String and must respect the string attribute limitations. Ignoring attribute '" +
0 commit comments