コード例 #1
0
    /// <summary>
    /// Stores every incoming message that reaches the application
    /// Values can be null depending on the level of how the message was decoded
    /// </summary>
    /// <param name="contact"> The contact of the user</param>
    /// <param name="RwRecievedMsg">The actual message recieved by the user</param>
    /// <param name="MessageKey">The key assigned to the incoming message</param>
    /// <param name="TimeRecieved">The time when the message has been recieved</param>
    /// <param name="username">The username of the user(is nullable)</param>
    /// <param name="labAcronym">LabAcronym given to the user to schedule for a given lab</param>
    /// <param name="startTimeRange">The star time range within the user would want to do the lab</param>
    /// <param name="EndTimeRange">The End time range within which the lab should be scheduled</param>
    public static void storeIncoming(string contact, string RwRecievedMsg,
        string MessageKey, DateTime TimeRecieved, string username, string labAcronym,
        DateTime startTimeRange, DateTime EndTimeRange)
    {
        DataClassesDataContext db = new DataClassesDataContext();
            InComingMessage InComing = new InComingMessage();

            InComing.Telephone = contact;
            InComing.RwRecievedMsg = RwRecievedMsg;
            InComing.MessageKey = MessageKey;
            InComing.TimeReceived = TimeRecieved;
            InComing.username = username;
            InComing.LabConfigurationID = isLabnamePresent(labAcronym);
            InComing.StartTimeRange = startTimeRange;
            InComing.EndTimeRange = EndTimeRange;

            db.InComingMessages.InsertOnSubmit(InComing);
            db.SubmitChanges();
    }
コード例 #2
0
	private void detach_InComingMessages(InComingMessage entity)
	{
		this.SendPropertyChanging();
		entity.LabConfiguration = null;
	}
コード例 #3
0
 partial void UpdateInComingMessage(InComingMessage instance);
コード例 #4
0
 partial void DeleteInComingMessage(InComingMessage instance);
コード例 #5
0
 partial void InsertInComingMessage(InComingMessage instance);