github.com/status-im/status-go@v1.1.0/protocol/protobuf/status_update.proto (about)

     1  syntax = "proto3";
     2  
     3  option go_package = "./;protobuf";
     4  package protobuf;
     5  
     6  /* Specs:
     7  :AUTOMATIC
     8  	To Send - "AUTOMATIC" status ping every 5 minutes
     9  	Display - Online for up to 5 minutes from the last clock, after that Offline
    10  :ALWAYS_ONLINE
    11  	To Send - "ALWAYS_ONLINE" status ping every 5 minutes
    12  	Display - Online for up to 2 weeks from the last clock, after that Offline
    13  :INACTIVE
    14  	To Send - A single "INACTIVE" status ping
    15  	Display - Offline forever
    16  Note: Only send pings if the user interacted with the app in the last x minutes. */
    17  message StatusUpdate {
    18    
    19    uint64 clock = 1;
    20    
    21    StatusType status_type = 2;
    22      
    23    string custom_text = 3;
    24    
    25    enum StatusType {
    26      UNKNOWN_STATUS_TYPE = 0;
    27      AUTOMATIC = 1;
    28      DO_NOT_DISTURB = 2;
    29      ALWAYS_ONLINE = 3;
    30      INACTIVE = 4;
    31    };
    32  
    33  }