timeline rendering
This commit is contained in:
@@ -33,9 +33,20 @@ public static class ConversionExtensions
|
||||
Version = entry.Version,
|
||||
CameraId = entry.CameraId,
|
||||
Date = Google.Protobuf.WellKnownTypes.Timestamp.FromDateTime(entry.Date),
|
||||
Metadata = entry.Metadata.ToRpc(),
|
||||
FilePath = entry.Filepath,
|
||||
Id = entry.Id.ToString(),
|
||||
Type = entry.Type.ToRpc()
|
||||
};
|
||||
}
|
||||
|
||||
public static MediaMetadata ToRpc(this Models.MediaMetadata metadata)
|
||||
{
|
||||
return new MediaMetadata
|
||||
{
|
||||
Duration = metadata.Duration,
|
||||
Height = metadata.Height,
|
||||
Width = metadata.Width
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user