2019-10-15 15:59:28 +02:00
|
|
|
import { MotionEditNotificationType } from './motions.constants';
|
2019-02-21 12:18:10 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class to specify the notifications for editing a motion.
|
|
|
|
*/
|
2019-07-17 16:13:49 +02:00
|
|
|
export interface MotionEditNotification {
|
2019-02-21 12:18:10 +01:00
|
|
|
/**
|
|
|
|
* The id of the motion the user wants to edit.
|
|
|
|
* Necessary to identify if users edit the same motion.
|
|
|
|
*/
|
|
|
|
motionId: number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The id of the sender.
|
|
|
|
* Necessary if this differs from senderUserId.
|
|
|
|
*/
|
|
|
|
senderId: number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the sender.
|
|
|
|
* To show the names of the other editors
|
|
|
|
*/
|
|
|
|
senderName: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The type of the notification.
|
|
|
|
* Separates if the user is beginning the work or closing the edit-view.
|
|
|
|
*/
|
2019-07-17 16:13:49 +02:00
|
|
|
type: MotionEditNotificationType;
|
2019-02-21 12:18:10 +01:00
|
|
|
}
|