public static MasevaMessage OneDriveError(string owner, string errorMessage) { var data = new StorageItemInfo() { Owner = owner, Description = errorMessage, IsFile = false }; return(new MasevaMessage() { Action = StorageAction.OneDriveError, PayloadData = data.ToJson() }); }
public static MasevaMessage FileSyncronizationProblem(string owner, string errorMessage) { var data = new StorageItemInfo() { Owner = owner, Description = errorMessage, IsFile = false }; return(new MasevaMessage() { Action = StorageAction.FileSyncronizationProblem, PayloadData = data.ToJson() }); }
public static MasevaMessage NewFileObtained(string owner, string pathToFile) { var data = new StorageItemInfo(pathToFile) { Owner = owner }; return(new MasevaMessage() { Action = StorageAction.NewFileObtained, PayloadData = data.ToJson() }); }