APISonar


org.addhen.smssync.data.entity.Log.Log

> org > addhen > smssync > data > entity > Log > Log
org APIs addhen APIs smssync APIs data APIs entity APIs Log APIs Log APIs

Example 1
public Observable<Log> getLog() {
        return Observable.create(subscriber -> {
            final String logString = readLogs(mName);
            if (logString != null) {
                Log log = new Log();
                log.setMessage(logString);
                subscriber.onNext(log);
                subscriber.onCompleted();
            } else {
                subscriber.onError(new LogNotFoundException());
            }
        });
    }
Example 2
public Log map(LogEntity logEntity) {
        Log log = null;
        if (logEntity != null) {
            log = new Log();
            log._id = logEntity._id;
            log.setMessage(logEntity.getMessage());
        }
        return log;
    }