Commit 255eaef3 authored by Simon Morlat's avatar Simon Morlat
Browse files

add missing file

parent 90dd9fe8
package org.linphone.core;
public enum PublishState {
/**
* Initial state, should not be used.
*/
None(0),
/**
* Publish is in progress.
*/
Progress(1),
/**
* Publish succeeded.
*/
Ok(2),
/**
* Publish encountered an error. {@link LinphoneEvent.getReason()} gives more information about failure.
*/
Error(3),
/**
* Publish is about to expire. Application can trigger a refresh by calling {@link LinphoneCore.updatePublish()}
*/
Expiring(4),
/**
* Publish is terminated cleared.
*/
Cleared(5);
protected final int mValue;
private PublishState(int value){
mValue=value;
}
static protected PublishState fromInt(int value) throws LinphoneCoreException{
switch(value){
case 0: return None;
case 1: return Progress;
case 2: return Ok;
case 3: return Error;
case 4: return Expiring;
case 5: return Cleared;
default:
throw new LinphoneCoreException("Unhandled enum value "+value+" for PublishState");
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment