You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			15 lines
		
	
	
		
			420 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			15 lines
		
	
	
		
			420 B
		
	
	
	
		
			TypeScript
		
	
import { Message } from '.';
 | 
						|
import { SignalService } from '../../../protobuf';
 | 
						|
import { TTL_DEFAULT } from '../../constants';
 | 
						|
 | 
						|
export abstract class ContentMessage extends Message {
 | 
						|
  public plainTextBuffer(): Uint8Array {
 | 
						|
    return SignalService.Content.encode(this.contentProto()).finish();
 | 
						|
  }
 | 
						|
 | 
						|
  public ttl(): number {
 | 
						|
    return TTL_DEFAULT.TTL_MAX;
 | 
						|
  }
 | 
						|
  public abstract contentProto(): SignalService.Content;
 | 
						|
}
 |