Пример #1
0
    public string getImageURL(ImageURLType imageURLType, ImageOrientation pictureOrientation, ImageType imageType) {
     	if(imageURLs == null || !imageURLs.ContainsKey(imageURLType)) return null;
				var imageURLTypeDict = imageURLs[imageURLType];
     	if(imageURLTypeDict == null || !imageURLTypeDict.ContainsKey(pictureOrientation)) return null;
				var pictureOrientationDict = imageURLTypeDict[pictureOrientation];
    	if(pictureOrientationDict == null || !pictureOrientationDict.ContainsKey(imageType)) return null;
      	return pictureOrientationDict[imageType];
    	}
Пример #2
0
    public void setImageURL(string url, ImageURLType imageURLType, ImageOrientation pictureOrientation, ImageType imageType) { 
    	if(url == null || imageURLs == null || !imageURLs.ContainsKey(imageURLType)) return;
      	var imageURLTypeDict = imageURLs[imageURLType];
      if(imageURLTypeDict == null || !imageURLTypeDict.ContainsKey(pictureOrientation)) return;
      	var pictureOrientationDict = imageURLTypeDict[pictureOrientation];
			if(pictureOrientationDict == null) return;
				pictureOrientationDict[imageType] = url;
			System.Console.WriteLine(pictureOrientationDict[imageType]);
    }
Пример #3
0
        public string getImageURL(ImageURLType imageURLType, ImageOrientation pictureOrientation, ImageType imageType)
        {
            if (imageURLs == null || !imageURLs.ContainsKey(imageURLType))
            {
                return(null);
            }
            var imageURLTypeDict = imageURLs[imageURLType];

            if (imageURLTypeDict == null || !imageURLTypeDict.ContainsKey(pictureOrientation))
            {
                return(null);
            }
            var pictureOrientationDict = imageURLTypeDict[pictureOrientation];

            if (pictureOrientationDict == null || !pictureOrientationDict.ContainsKey(imageType))
            {
                return(null);
            }
            return(pictureOrientationDict[imageType]);
        }
Пример #4
0
        public void setImageURL(string url, ImageURLType imageURLType, ImageOrientation pictureOrientation, ImageType imageType)
        {
            if (url == null || imageURLs == null || !imageURLs.ContainsKey(imageURLType))
            {
                return;
            }
            var imageURLTypeDict = imageURLs[imageURLType];

            if (imageURLTypeDict == null || !imageURLTypeDict.ContainsKey(pictureOrientation))
            {
                return;
            }
            var pictureOrientationDict = imageURLTypeDict[pictureOrientation];

            if (pictureOrientationDict == null)
            {
                return;
            }
            pictureOrientationDict[imageType] = url;
            System.Console.WriteLine(pictureOrientationDict[imageType]);
        }