예제 #1
0
 public static SignalServiceMetadata FromProtobuf(MetadataProto metadata)
 {
     return(new SignalServiceMetadata(SignalServiceAddressProtobufSerializer.FromProtobuf(metadata.Address),
                                      metadata.SenderDevice,
                                      metadata.Timestamp,
                                      metadata.NeedsReceipt));
 }
예제 #2
0
 public static MetadataProto ToProtobuf(SignalServiceMetadata metadata)
 {
     return(new MetadataProto()
     {
         Address = SignalServiceAddressProtobufSerializer.ToProtobuf(metadata.Sender),
         SenderDevice = metadata.SenderDevice,
         NeedsReceipt = metadata.NeedsReceipt,
         Timestamp = metadata.Timestamp
     });
 }