Method and Apparatus for Importing and Exporting Contact
First Claim
1. A method for importing a contact comprising:
- receiving a user identifier of a user and a data package that are sent by a terminal, wherein the data package comprises a configuration file and a contact file corresponding to a contact group, wherein the configuration file is used to store a correspondence between a group identifier (ID) of the contact group and a file ID of the contact file, and wherein the contact file corresponding to the contact group is used to store contact information of a contact that is part of the contact group;
acquiring, from the data package, the group ID of the contact group and the file ID of the contact file corresponding to the contact group;
acquiring, from the data package according to the file ID of the contact file, the contact information of the contact that is part of the contact group; and
storing a correspondence between the user identifier of the user, the group ID of the contact group, and the contact information of the contact that is part of the contact group.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and an apparatus for importing and exporting a contact. The method includes: receiving a user identifier of a user and a data package sent by a terminal, where the data package includes a configuration file and a contact file corresponding to a contact group, the configuration file is used to store a correspondence between a group identifier (ID) and a file ID of the contact file, and the contact file is used to store contact information of a contact included in the contact group; acquiring, from the data package, the group ID and the file ID corresponding to the contact group; acquiring, from the data package according to the file ID, the contact information included in the contact group; and storing a correspondence between the user identifier, the group ID, and the contact information. In the present invention, group information can be retained.
-
Citations
14 Claims
-
1. A method for importing a contact comprising:
-
receiving a user identifier of a user and a data package that are sent by a terminal, wherein the data package comprises a configuration file and a contact file corresponding to a contact group, wherein the configuration file is used to store a correspondence between a group identifier (ID) of the contact group and a file ID of the contact file, and wherein the contact file corresponding to the contact group is used to store contact information of a contact that is part of the contact group; acquiring, from the data package, the group ID of the contact group and the file ID of the contact file corresponding to the contact group; acquiring, from the data package according to the file ID of the contact file, the contact information of the contact that is part of the contact group; and storing a correspondence between the user identifier of the user, the group ID of the contact group, and the contact information of the contact that is part of the contact group. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. An apparatus for importing a contact, wherein the apparatus comprises a memory and a processor which are jointly configured to:
-
receive a user identifier of a user and a data package that are sent by a terminal, wherein the data package comprises a configuration file and a contact file that is corresponding to a contact group, wherein the configuration file is used to store a correspondence between a group identifier (ID) of the contact group and a file ID of the contact file, and wherein the contact file corresponding to the contact group is used to store contact information of a contact that is part of the contact group; acquire, from the data package, the group ID of the contact group and the file ID of the contact file corresponding to the contact group; acquire, from the data package according to the file ID of the contact file, the contact information of the contact that is part of the contact group; and store a correspondence between the user identifier of the user, the group ID of the contact group, and the contact information of the contact that is part of the contact group. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification