Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/api/core.api
Original file line number Diff line number Diff line change
Expand Up @@ -7189,6 +7189,7 @@ public final class com/dropbox/core/v2/files/WriteError {
public static final field TEAM_FOLDER Lcom/dropbox/core/v2/files/WriteError;
public static final field TEAM_FOLDER_INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError;
public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/WriteError;
public static final field UPLOAD_TRAFFIC_LIMIT_REACHED Lcom/dropbox/core/v2/files/WriteError;
public static fun conflict (Lcom/dropbox/core/v2/files/WriteConflictError;)Lcom/dropbox/core/v2/files/WriteError;
public fun equals (Ljava/lang/Object;)Z
public fun getConflictValue ()Lcom/dropbox/core/v2/files/WriteConflictError;
Expand All @@ -7206,6 +7207,7 @@ public final class com/dropbox/core/v2/files/WriteError {
public fun isTeamFolder ()Z
public fun isTeamFolderInsufficientSpace ()Z
public fun isTooManyWriteOperations ()Z
public fun isUploadTrafficLimitReached ()Z
public static fun malformedPath ()Lcom/dropbox/core/v2/files/WriteError;
public static fun malformedPath (Ljava/lang/String;)Lcom/dropbox/core/v2/files/WriteError;
public fun tag ()Lcom/dropbox/core/v2/files/WriteError$Tag;
Expand All @@ -7226,6 +7228,7 @@ public final class com/dropbox/core/v2/files/WriteError$Tag : java/lang/Enum {
public static final field TEAM_FOLDER Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field TEAM_FOLDER_INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field UPLOAD_TRAFFIC_LIMIT_REACHED Lcom/dropbox/core/v2/files/WriteError$Tag;
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/WriteError$Tag;
public static fun values ()[Lcom/dropbox/core/v2/files/WriteError$Tag;
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public enum Tag {
* The user's member folder has reached its storage limit.
*/
MEMBER_FOLDER_INSUFFICIENT_SPACE,
/**
* The user has reached their monthly upload traffic limit.
*/
UPLOAD_TRAFFIC_LIMIT_REACHED,
/**
* Catch-all used for unknown tag values returned by the Dropbox
* servers.
Expand Down Expand Up @@ -133,6 +137,10 @@ public enum Tag {
* The user's member folder has reached its storage limit.
*/
public static final WriteError MEMBER_FOLDER_INSUFFICIENT_SPACE = new WriteError().withTag(Tag.MEMBER_FOLDER_INSUFFICIENT_SPACE);
/**
* The user has reached their monthly upload traffic limit.
*/
public static final WriteError UPLOAD_TRAFFIC_LIMIT_REACHED = new WriteError().withTag(Tag.UPLOAD_TRAFFIC_LIMIT_REACHED);
/**
* Catch-all used for unknown tag values returned by the Dropbox servers.
*
Expand Down Expand Up @@ -426,6 +434,17 @@ public boolean isMemberFolderInsufficientSpace() {
return this._tag == Tag.MEMBER_FOLDER_INSUFFICIENT_SPACE;
}

/**
* Returns {@code true} if this instance has the tag {@link
* Tag#UPLOAD_TRAFFIC_LIMIT_REACHED}, {@code false} otherwise.
*
* @return {@code true} if this instance is tagged as {@link
* Tag#UPLOAD_TRAFFIC_LIMIT_REACHED}, {@code false} otherwise.
*/
public boolean isUploadTrafficLimitReached() {
return this._tag == Tag.UPLOAD_TRAFFIC_LIMIT_REACHED;
}

/**
* Returns {@code true} if this instance has the tag {@link Tag#OTHER},
* {@code false} otherwise.
Expand Down Expand Up @@ -483,6 +502,8 @@ else if (obj instanceof WriteError) {
return true;
case MEMBER_FOLDER_INSUFFICIENT_SPACE:
return true;
case UPLOAD_TRAFFIC_LIMIT_REACHED:
return true;
case OTHER:
return true;
default:
Expand Down Expand Up @@ -572,6 +593,10 @@ public void serialize(WriteError value, JsonGenerator g) throws IOException, Jso
g.writeString("member_folder_insufficient_space");
break;
}
case UPLOAD_TRAFFIC_LIMIT_REACHED: {
g.writeString("upload_traffic_limit_reached");
break;
}
default: {
g.writeString("other");
}
Expand Down Expand Up @@ -642,6 +667,9 @@ else if ("team_folder_insufficient_space".equals(tag)) {
else if ("member_folder_insufficient_space".equals(tag)) {
value = WriteError.MEMBER_FOLDER_INSUFFICIENT_SPACE;
}
else if ("upload_traffic_limit_reached".equals(tag)) {
value = WriteError.UPLOAD_TRAFFIC_LIMIT_REACHED;
}
else {
value = WriteError.OTHER;
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/stone
Submodule stone updated 1 files
+3 −0 files.stone
Loading