mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
add new SubscriptionState.Expiring
This commit is contained in:
parent
95e3f26dca
commit
f02255ad6a
2 changed files with 7 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ public enum PublishState {
|
|||
Error(3),
|
||||
/**
|
||||
* Publish is about to expire. Application can trigger a refresh by calling {@link LinphoneCore.updatePublish()}
|
||||
* [sip]->refresh_generic_subscribe property is set to 0.
|
||||
*/
|
||||
Expiring(4),
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -28,8 +28,12 @@ public enum SubscriptionState {
|
|||
/**
|
||||
* Subscription encountered an error, indicated by { @link LinphoneEvent.getReason() }
|
||||
*/
|
||||
Error(6);
|
||||
Error(6),
|
||||
|
||||
/**
|
||||
* Subscription is about to expire, only notified if [sip]->refresh_generic_subscribe property is set to 0
|
||||
*/
|
||||
Expiring(7);
|
||||
protected final int mValue;
|
||||
private SubscriptionState(int value){
|
||||
mValue=value;
|
||||
|
|
@ -43,6 +47,7 @@ public enum SubscriptionState {
|
|||
case 4: return Active;
|
||||
case 5: return Terminated;
|
||||
case 6: return Error;
|
||||
case 7: return Expiring;
|
||||
default:
|
||||
throw new LinphoneCoreException("Unhandled enum value "+value+" for SubscriptionState");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue