コード例 #1
0
 private static ImageFace CreateImageFace(XElement xmlElement)
 {
     return(new ImageFace
     {
         FaceKey = XElementParser.ParseIntValue(xmlElement, "face key"),
         FaceIndex = XElementParser.ParseNullableIntValue(xmlElement, "face index"),
         Rectangle = ParseRectangle(XElementParser.GetElementForKey(xmlElement, "rectangle")),
     });
 }
コード例 #2
0
 private static Face CreateFace(XElement xmlElement)
 {
     return(new Face
     {
         Key = XElementParser.ParseIntValue(xmlElement, "key"),
         Name = XElementParser.ParseStringValue(xmlElement, "name"),
         KeyImage = XElementParser.ParseStringValue(xmlElement, "key image"),
         KeyImageFaceIndex = XElementParser.ParseNullableIntValue(xmlElement, "key image face index"),
         PhotoCount = XElementParser.ParseNullableIntValue(xmlElement, "PhotoCount"),
         Order = XElementParser.ParseNullableIntValue(xmlElement, "Order"),
     });
 }
コード例 #3
0
 private static Album CreateAlbum(XElement xmlElement)
 {
     return(new Album
     {
         AlbumId = XElementParser.ParseIntValue(xmlElement, "AlbumId"),
         AlbumName = XElementParser.ParseStringValue(xmlElement, "AlbumName"),
         AlbumType = XElementParser.ParseStringValue(xmlElement, "Album Type"),
         GUID = XElementParser.ParseStringValue(xmlElement, "GUID"),
         SortOrder = XElementParser.ParseNullableIntValue(xmlElement, "Sort Order"),
         KeyList = XElementParser.ParseIntArray(xmlElement, "KeyList"),
     });
 }
コード例 #4
0
 private static Roll CreateRoll(XElement xmlElement)
 {
     return(new Roll
     {
         RollID = XElementParser.ParseIntValue(xmlElement, "RollID"),
         ProjectUuid = XElementParser.ParseStringValue(xmlElement, "ProjectUuid"),
         RollName = XElementParser.ParseStringValue(xmlElement, "RollName"),
         RollDateAsTimerInterval = XElementParser.ParseNullableDoubleValue(xmlElement, "RollDateAsTimerInterval"),
         KeyPhotoKey = XElementParser.ParseNullableIntValue(xmlElement, "KeyPhotoKey"),
         PhotoCount = XElementParser.ParseNullableIntValue(xmlElement, "PhotoCount"),
         KeyList = XElementParser.ParseIntArray(xmlElement, "KeyList"),
     });
 }