public CallInfo() { this.CallIndex = -1; this.Dir = CallDir.unknown; this.Status = CallState.unknown; this.CallMode = CallMode.unknownn; this.IsMultipartyConferenceCall = false; this.Number = this.EntryInPhonebook = "-1"; this.NumberType = CallNumberType.unknown; }
/// <summary> /// The AT+CPBW write command can be used to create, edit and delete a phonebook entry at a "location" of the active storage selected with AT+CPBS. /// If "storage"="FD" (SIM fixed dialing numbers) is selected, PIN2 authentication has to be performed prior to any write access. /// The AT+CPBW test command returns the location range supported by the current storage, the maximum length /// of the "number" field, the range of supported "type" values and the maximum length of the "text" field. /// Note: The length may not be available while SIM storage is selected. If storage does not offer format information, the format list contains empty parenthesizes. /// </summary> /// <param name="LocationID"></param> /// <param name="Number"></param> /// <param name="type"></param> /// <param name="Name"></param> /// <returns></returns> public bool Phonebook_Write(string LocationID, string Number, CallNumberType type, string Name) { return SendATCommand("AT+CPBW=" + LocationID + ",\"" + Number + "\"," + (int)type + ",\"" + Name + "\"").IsSuccess; }
public PhoneBook() { this.LocationID = "-1"; this.Number = this.Name = ""; this.NumberType = CallNumberType.unknown; }