public static string GetPhoneBookStorageString(PhoneBookStorage storage) { switch (storage) { case PhoneBookStorage.CPHS_voice_mailbox_phonebook: return "VM"; case PhoneBookStorage.fixed_dialing_phonebook: return "FD"; case PhoneBookStorage.last_number_dialed_phonebook: return "LD"; case PhoneBookStorage.missed: return "MC"; case PhoneBookStorage.mobile_equipment_phonebook: return "ME"; case PhoneBookStorage.MSISDN_list: return "ON"; case PhoneBookStorage.received_call_list: return "RC"; case PhoneBookStorage.SIM_phonebook: return "SM"; default: return "UNKNOW"; } }
public PhoneBookStorageDetail() { this.Total = this.Used = -1; this.Storage = PhoneBookStorage.unkonow; }
public void Call(PhoneBookStorage Storage, string LocationID) { SendATCommand("ATD>" + PhoneBook.GetPhoneBookStorageString(Storage) + LocationID + ";"); }
/// <summary> /// AT^SPBD can be used to purge the selected phonebook "storage" manually, i.e. all entries stored in the /// selected phonebook storage will be deleted. CAUTION! The operation cannot be stopped nor reversed! /// The AT^SPBD test command returns the list of phonebooks which can be deleted with AT^SPBD. /// An automatic purge of the phonebooks is performed when the SIM card is removed and replaced with a different /// SIM card. This affects the ME based part of the "LD" storage, and storages "MC" and "RC". Storage "ME" is not affected. /// </summary> /// <param name="Storage"></param> /// <returns></returns> public bool Phonebook_Purge(PhoneBookStorage Storage) { return SendATCommand("AT^SPBD=" + PhoneBook.GetPhoneBookStorageString(Storage)).IsSuccess; }
public PhoneBook[] Phonebook_List(PhoneBookStorage Storage, string StartLocationID, string EndLocationID, bool Alphabetically) { this.Phonebook_Current_Storage = Storage; return Phonebook_List(StartLocationID, EndLocationID, Alphabetically); }
public PhoneBook[] Phonebook_List(PhoneBookStorage Storage, bool Alphabetically) { this.Phonebook_Current_Storage = Storage; string EndLocationID = this.Phonebook_Current_Storage_Detail.Used.ToString(); return Phonebook_List("1", EndLocationID, Alphabetically); }