differentiate class and insance methods in ReturnCode class for native platforms
This commit is contained in:
parent
b142442551
commit
eee8d852b9
|
@ -688,7 +688,7 @@ public class FFmpegKitConfig {
|
|||
final int returnCodeValue = nativeFFprobeExecute(mediaInformationSession.getSessionId(), mediaInformationSession.getArguments());
|
||||
final ReturnCode returnCode = new ReturnCode(returnCodeValue);
|
||||
mediaInformationSession.complete(returnCode);
|
||||
if (returnCode.isSuccess()) {
|
||||
if (returnCode.isValueSuccess()) {
|
||||
MediaInformation mediaInformation = MediaInformationJsonParser.fromWithError(mediaInformationSession.getAllLogsAsString(waitTimeout));
|
||||
mediaInformationSession.setMediaInformation(mediaInformation);
|
||||
}
|
||||
|
|
|
@ -43,15 +43,15 @@ public class ReturnCode {
|
|||
return value;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
public boolean isValueSuccess() {
|
||||
return (value == SUCCESS);
|
||||
}
|
||||
|
||||
public boolean isError() {
|
||||
public boolean isValueError() {
|
||||
return ((value != SUCCESS) && (value != CANCEL));
|
||||
}
|
||||
|
||||
public boolean isCancel() {
|
||||
public boolean isValueCancel() {
|
||||
return (value == CANCEL);
|
||||
}
|
||||
|
||||
|
|
|
@ -37,11 +37,11 @@ typedef NS_ENUM(NSUInteger, ReturnCodeEnum) {
|
|||
|
||||
- (int)getValue;
|
||||
|
||||
- (BOOL)isSuccess;
|
||||
- (BOOL)isValueSuccess;
|
||||
|
||||
- (BOOL)isError;
|
||||
- (BOOL)isValueError;
|
||||
|
||||
- (BOOL)isCancel;
|
||||
- (BOOL)isValueCancel;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -44,15 +44,15 @@
|
|||
return _value;
|
||||
}
|
||||
|
||||
- (BOOL)isSuccess {
|
||||
- (BOOL)isValueSuccess {
|
||||
return (_value == ReturnCodeSuccess);
|
||||
}
|
||||
|
||||
- (BOOL)isError {
|
||||
- (BOOL)isValueError {
|
||||
return ((_value != ReturnCodeSuccess) && (_value != ReturnCodeCancel));
|
||||
}
|
||||
|
||||
- (BOOL)isCancel {
|
||||
- (BOOL)isValueCancel {
|
||||
return (_value == ReturnCodeCancel);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user