Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
public class AdherenceService {
  public EventStreamAdherenceReport getEventStreamAdherenceReport(
      String appId, String studyId, String userId, DateTime now, boolean showActive) {
  }
  public WeeklyAdherenceReport getWeeklyAdherenceReport(
      String appId, String studyId, String userId, DateTime now) {
  }
  public PagedResourceList<WeeklyAdherenceReport> getPagedWeeklyAdherenceReports(
      App app, AdherenceSearch search) {
  }  
}

public class AdherenceSearch {
  int offsetBy;
  int pageSize;
 
// always and only searches accounts that are enrolled in a specific study
  String studyId;
  String emailFilter;
  String phoneFilter;
  Set<String> allOfGroups;
  Set<String> noneOfGroups; 
  String language;
  DateTime startTime;
  DateTime endTime;
  String externalIdFilter;
  AccountStatus status;
  String attributeKey;
  String attributeValueFilter;
  SearchTermPredicate predicateString sessionLabel;
  Integer weekNumber;
  String labelstudyBurstId;
// for exampleInteger "WeekstudyBurstNum;
1" or "StudyInteger BurstmaxAdherencePercent;
2"  SearchTermPredicate int maxWeeklyAdherencePercentpredicate;
  StringSearchPosition stringSearchPosition;
}

...