Skip to content

Commit

Permalink
Remove RE,WE and RWE operation from model according to lwm2m spec
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Nov 23, 2017
1 parent b87781f commit 8c92892
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
public class ResourceModel {

public enum Operations {
NONE, R, W, RW, E, RE, WE, RWE;
NONE, R, W, RW, E;

public boolean isReadable() {
return this == R || this == RW || this == RE || this == RWE;
return this == R || this == RW;
}

public boolean isWritable() {
return this == W || this == RW || this == WE || this == RWE;
return this == W || this == RW;
}

public boolean isExecutable() {
return this == E || this == RE || this == WE || this == RWE;
return this == E;
}
}

Expand Down

0 comments on commit 8c92892

Please sign in to comment.